#include <dma.h>
Public Methods | |
void | alloc () |
void | transfer (unsigned char channel, unsigned short int size, bool from_mem) |
void | free () |
Public Attributes | |
void * | data |
Eventually this class should be expanded to allow multi-page transfers.
|
Allocate this DMA buffer.
|
|
Free the memory used by this DMA buffer.
|
|
Perform a DMA transfer on the given channel of the given size in bytes. Transfer from memory to device if from_mem is true. Otherwise, transfer from device to memory.
|
|
DMA buffer: one physical page.
|
Torsion Operating System, Copyright (C) 2000-2002 Dan Helfman