Make the dma_pool structure private to the LinuxKPI similar to Linux.
No functional change. Discussed with: kib @ Sponsored by: Mellanox Technologies
This commit is contained in:
parent
97e3e4a704
commit
c00a464559
@ -37,6 +37,7 @@
|
||||
#include <linux/device.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
struct dma_pool;
|
||||
struct dma_pool *linux_dma_pool_create(char *name, struct device *dev,
|
||||
size_t size, size_t align, size_t boundary);
|
||||
void linux_dma_pool_destroy(struct dma_pool *pool);
|
||||
@ -45,16 +46,6 @@ void *linux_dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags,
|
||||
void linux_dma_pool_free(struct dma_pool *pool, void *vaddr,
|
||||
dma_addr_t dma_addr);
|
||||
|
||||
struct dma_pool {
|
||||
struct device *pool_device;
|
||||
uma_zone_t pool_zone;
|
||||
struct mtx pool_dma_lock;
|
||||
bus_dma_tag_t pool_dmat;
|
||||
size_t pool_entry_size;
|
||||
struct mtx pool_ptree_lock;
|
||||
struct pctrie pool_ptree;
|
||||
};
|
||||
|
||||
static inline struct dma_pool *
|
||||
dma_pool_create(char *name, struct device *dev, size_t size,
|
||||
size_t align, size_t boundary)
|
||||
|
@ -658,6 +658,16 @@ linux_dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sgl,
|
||||
uma_zfree(linux_dma_obj_zone, obj);
|
||||
}
|
||||
|
||||
struct dma_pool {
|
||||
struct device *pool_device;
|
||||
uma_zone_t pool_zone;
|
||||
struct mtx pool_dma_lock;
|
||||
bus_dma_tag_t pool_dmat;
|
||||
size_t pool_entry_size;
|
||||
struct mtx pool_ptree_lock;
|
||||
struct pctrie pool_ptree;
|
||||
};
|
||||
|
||||
static inline int
|
||||
dma_pool_obj_ctor(void *mem, int size, void *arg, int flags)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user