Main Page Modules Alphabetical List Data Structures File List Data Fields Globals Related Pages
dma.h File ReferenceDMA (Direct Memory Access) driver header.
Go to the source code of this file.
| ||A structure used to store hardware definition of DMA channels. More...|
|typedef dma_channel ||dma_channel_t|
| ||A structure used to store hardware definition of DMA channels. |
|void ||dma_xfer (unsigned channel, addr_t physaddr, size_t length, bool read)|
| ||Set up a DMA transfer between a device and memory. |
The 8-bit channel number (0..3). |
The physical address of the buffer. |
The size of the buffer. |
If it is TRUE the transfer will be from memory to device, otherwise will be from device to memory.|
|void ||dma_alloc_init ()|
| ||Initialize the DMA memory allocator. |
|void * ||dma_phys_alloc (size_t len)|
| ||Return a pointer of |
len contiguous bytes into the DMA address space.
The size of the buffer we want to allocate. |
A pointer to the allocated buffer.
The pointer is the physical address of the buffer and not the virtual address!!!
Out of DMA memory area!|
|bool ||dma_phys_free (size_t dma_start, size_t len)|
| ||Free the DMA memory area from |
The beginning of the area to free. |
The size of the buffer to free. |
dma_start address is the physical address of the buffer to free and not the virtual address!!!
DMA (Direct Memory Access) driver header.
Andrea Righi <email@example.com>
Last update: 2003-11-08
Copyright (©) 2003 Andrea Righi
Definition in file dma.h.
A structure used to store hardware definition of DMA channels.
Generated on Fri Feb 20 15:32:17 2004 for Minirighi by