1 #ifndef ASM_DMA_CONTIGUOUS_H
2 #define ASM_DMA_CONTIGUOUS_H
7 #include <linux/device.h>
8 #include <linux/dma-contiguous.h>
10 static inline struct cma
*dev_get_cma_area(struct device
*dev
)
12 if (dev
&& dev
->cma_area
)
14 return dma_contiguous_default_area
;
17 static inline void dev_set_cma_area(struct device
*dev
, struct cma
*cma
)
21 if (!dev
&& !dma_contiguous_default_area
)
22 dma_contiguous_default_area
= cma
;