iPXE
|
DMA mappings. More...
Go to the source code of this file.
DMA mappings.
Definition in file dma.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
PROVIDE_DMAAPI_INLINE | ( | flat | , |
dma_map | |||
) |
PROVIDE_DMAAPI_INLINE | ( | flat | , |
dma_unmap | |||
) |
PROVIDE_DMAAPI_INLINE | ( | flat | , |
dma_alloc | |||
) |
PROVIDE_DMAAPI_INLINE | ( | flat | , |
dma_free | |||
) |
PROVIDE_DMAAPI_INLINE | ( | flat | , |
dma_umalloc | |||
) |
PROVIDE_DMAAPI_INLINE | ( | flat | , |
dma_ufree | |||
) |
PROVIDE_DMAAPI_INLINE | ( | flat | , |
dma_set_mask | |||
) |
PROVIDE_DMAAPI_INLINE | ( | flat | , |
dma_phys | |||
) |
|
static |
Map buffer for DMA.
dma | DMA device |
map | DMA mapping to fill in |
addr | Buffer address |
len | Length of buffer |
flags | Mapping flags |
rc | Return status code |
Definition at line 69 of file dma.c.
|
static |
Unmap buffer.
map | DMA mapping |
Definition at line 83 of file dma.c.
References assert(), dma_mapping::dma, dma(), map, and NULL.
|
static |
Allocate and map DMA-coherent buffer.
dma | DMA device |
map | DMA mapping to fill in |
len | Length of buffer |
align | Physical alignment |
addr | Buffer address, or NULL on error |
Definition at line 100 of file dma.c.
|
static |
Unmap and free DMA-coherent buffer.
map | DMA mapping |
addr | Buffer address |
len | Length of buffer |
Definition at line 116 of file dma.c.
References addr, assert(), dma_mapping::dma, dma(), len, map, and NULL.
|
static |
Allocate and map DMA-coherent buffer from external (user) memory.
dma | DMA device |
map | DMA mapping to fill in |
len | Length of buffer |
align | Physical alignment |
addr | Buffer address, or NULL on error |
Definition at line 133 of file dma.c.
|
static |
Unmap and free DMA-coherent buffer from external (user) memory.
map | DMA mapping |
addr | Buffer address |
len | Length of buffer |
Definition at line 150 of file dma.c.
References addr, assert(), dma_mapping::dma, dma(), len, map, and NULL.
|
static |
PROVIDE_DMAAPI | ( | op | , |
dma_map | , | ||
dma_op_map | |||
) |
PROVIDE_DMAAPI | ( | op | , |
dma_unmap | , | ||
dma_op_unmap | |||
) |
PROVIDE_DMAAPI | ( | op | , |
dma_alloc | , | ||
dma_op_alloc | |||
) |
PROVIDE_DMAAPI | ( | op | , |
dma_free | , | ||
dma_op_free | |||
) |
PROVIDE_DMAAPI | ( | op | , |
dma_umalloc | , | ||
dma_op_umalloc | |||
) |
PROVIDE_DMAAPI | ( | op | , |
dma_ufree | , | ||
dma_op_ufree | |||
) |
PROVIDE_DMAAPI | ( | op | , |
dma_set_mask | , | ||
dma_op_set_mask | |||
) |