#include <cpu/dmapool.h>


Go to the source code of this file.
Functions | |
| void | dma_pool_init_coherent_physmem (struct dma_pool *dmapool, struct physmem_pool *phys_pool, unsigned int nr_objects, size_t objsize, unsigned int align_order) |
| Initialize a DMA pool using the physmem allocator. | |
This file is just a wrapper around the CPU-specific DMA pool header.
Definition in file dmapool.h.
| void dma_pool_init_coherent_physmem | ( | struct dma_pool * | dmapool, | |
| struct physmem_pool * | phys_pool, | |||
| unsigned int | nr_objects, | |||
| size_t | objsize, | |||
| unsigned int | align_order | |||
| ) |
Initialize a DMA pool using the physmem allocator.
This function will grab enough physical memory for nr_objects from phys_pool and use this to initialize dmapool.
| dmapool | The DMA pool to be initialized. | |
| phys_pool | The physical memory pool from which to grab memory | |
| nr_objects | The number of objects in the pool | |
| objsize | The size of each object in bytes. | |
| align_order | log2 of the minimum object alignment in bytes. |
There must be enough available memory in phys_pool.
objsize must be larger than the size of a pointer.
Definition at line 30 of file dmapool.c.
References assert, dma_pool_init_coherent_physmem(), physmem_alloc(), PHYSMEM_ALLOC_ERR, and round_up().
Referenced by dma_pool_init_coherent_physmem().

1.5.8