1
2
3
4
5
6
7
8
9
10
11#ifndef LINUX_DMAPOOL_H
12#define LINUX_DMAPOOL_H
13
14#include <asm/io.h>
15#include <asm/scatterlist.h>
16
17struct dma_pool *dma_pool_create(const char *name, struct device *dev,
18 size_t size, size_t align, size_t allocation);
19
20void dma_pool_destroy(struct dma_pool *pool);
21
22void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags,
23 dma_addr_t *handle);
24
25void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t addr);
26
27
28
29
30struct dma_pool *dmam_pool_create(const char *name, struct device *dev,
31 size_t size, size_t align, size_t allocation);
32void dmam_pool_destroy(struct dma_pool *pool);
33
34#endif
35
36