dma_buffer
struct dma_buffer *dma_buffer; // used dma buffer, or NULL
void *dma_buffer; /* buffer for dma*/
void *dma_buffer; /* buffer for dma*/
void *dma_buffer; /* As viewed from virtual memory */
void *dma_buffer; /* buffer for dma*/
void *dma_buffer; /* buffer for dma*/
si->dma_buffer = (void *)((char *)si->framebuffer
LOG(4, ("ACC_DMA: command buffer is at adress $%p\n", si->dma_buffer));
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = surf_depth; /* Format */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = cmd_depth; /* SetColorFormat */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = cmd_depth; /* SetColorFormat */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x00000000; /* SetShape: 0 = 8x8, 1 = 64x1, 2 = 1x64 */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0xffffffff; /* SetColor0 */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0xffffffff; /* SetColor1 */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0xffffffff; /* SetPattern[0] */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0xffffffff; /* SetPattern[1] */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x20000000;
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = ((size << 18) |
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = ((1 << 18) | ch);
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = (0x80000000 | handle);
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0xcc; /* SetRop5 */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x00000002; /* Format */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = cmd_depth; /* SetColorFormat */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x00000003; /* SetOperation */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = cmd_depth; /* SetColorFormat */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x00000000; /* Color1A */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0; /* SourceOrg */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x00000004; /* Format */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x00000002; /* Format */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = cmd_depth; /* SetColorFormat */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x00000003; /* SetOperation */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = cmd_depth; /* SetColorFormat */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x00000000; /* Color1A */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x00000004; /* Format */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0xcc; /* SetRop5 */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = colorIndex; /* Color1A */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0xcc; /* SetRop5 */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = colorIndex; /* Color1A */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x55; /* SetRop5 */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] = 0x00000000; /* Color1A */
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
((uint32*)(si->dma_buffer))[si->engine.dma.current++] =
scsi_dma_buffer_init(&device->dma_buffer);
scsi_dma_buffer_free(&device->dma_buffer);
dma_buffer *buffer = request->dma_buffer;
scsi_free_dma_buffer(dma_buffer *buffer)
scsi_alloc_dma_buffer(dma_buffer *buffer, dma_params *dma_params, uint32 size)
scsi_free_dma_buffer_sg_orig(dma_buffer *buffer)
scsi_alloc_dma_buffer_sg_orig(dma_buffer *buffer, size_t size)
scsi_dma_buffer_compose_sg_orig(dma_buffer *buffer, scsi_ccb *request)
dma_buffer *buffer;
buffer = &device->dma_buffer;
request->dma_buffer = buffer;
scsi_dma_buffer_compose_sg_orig(&device->dma_buffer, request);
dma_buffer *buffer = request->dma_buffer;
request->dma_buffer = NULL;
dma_buffer *buffer;
buffer = &device->dma_buffer;
scsi_dma_buffer_free(dma_buffer *buffer)
scsi_dma_buffer_init(dma_buffer *buffer)
struct dma_buffer dma_buffer; // DMA buffer
void scsi_dma_buffer_free(dma_buffer *buffer);
void scsi_dma_buffer_init(dma_buffer *buffer);
si->dma_buffer = NULL;
si->dma_buffer = NULL;
B_READ_AREA | B_WRITE_AREA, &(si->dma_buffer));
B_READ_AREA | B_WRITE_AREA, &(si->dma_buffer));