mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
dma-direct: make dma_direct_{alloc,free} available to other implementations
So that they don't need to indirect through the operation vector. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
This commit is contained in:
parent
95f183916d
commit
19dca8c0ef
3 changed files with 11 additions and 9 deletions
|
@ -38,4 +38,9 @@ static inline void dma_mark_clean(void *addr, size_t size)
|
|||
}
|
||||
#endif /* CONFIG_ARCH_HAS_DMA_MARK_CLEAN */
|
||||
|
||||
void *dma_direct_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle,
|
||||
gfp_t gfp, unsigned long attrs);
|
||||
void dma_direct_free(struct device *dev, size_t size, void *cpu_addr,
|
||||
dma_addr_t dma_addr, unsigned long attrs);
|
||||
|
||||
#endif /* _LINUX_DMA_DIRECT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue