diff options
Diffstat (limited to 'include/linux/dma-contiguous.h')
| -rw-r--r-- | include/linux/dma-contiguous.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/dma-contiguous.h b/include/linux/dma-contiguous.h index 3b28f937d959..772eab5d524a 100644 --- a/include/linux/dma-contiguous.h +++ b/include/linux/dma-contiguous.h | |||
| @@ -88,7 +88,8 @@ static inline void dma_contiguous_set_default(struct cma *cma) | |||
| 88 | void dma_contiguous_reserve(phys_addr_t addr_limit); | 88 | void dma_contiguous_reserve(phys_addr_t addr_limit); |
| 89 | 89 | ||
| 90 | int __init dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base, | 90 | int __init dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base, |
| 91 | phys_addr_t limit, struct cma **res_cma); | 91 | phys_addr_t limit, struct cma **res_cma, |
| 92 | bool fixed); | ||
| 92 | 93 | ||
| 93 | /** | 94 | /** |
| 94 | * dma_declare_contiguous() - reserve area for contiguous memory handling | 95 | * dma_declare_contiguous() - reserve area for contiguous memory handling |
| @@ -108,7 +109,7 @@ static inline int dma_declare_contiguous(struct device *dev, phys_addr_t size, | |||
| 108 | { | 109 | { |
| 109 | struct cma *cma; | 110 | struct cma *cma; |
| 110 | int ret; | 111 | int ret; |
| 111 | ret = dma_contiguous_reserve_area(size, base, limit, &cma); | 112 | ret = dma_contiguous_reserve_area(size, base, limit, &cma, true); |
| 112 | if (ret == 0) | 113 | if (ret == 0) |
| 113 | dev_set_cma_area(dev, cma); | 114 | dev_set_cma_area(dev, cma); |
| 114 | 115 | ||
| @@ -136,7 +137,9 @@ static inline void dma_contiguous_set_default(struct cma *cma) { } | |||
| 136 | static inline void dma_contiguous_reserve(phys_addr_t limit) { } | 137 | static inline void dma_contiguous_reserve(phys_addr_t limit) { } |
| 137 | 138 | ||
| 138 | static inline int dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base, | 139 | static inline int dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base, |
| 139 | phys_addr_t limit, struct cma **res_cma) { | 140 | phys_addr_t limit, struct cma **res_cma, |
| 141 | bool fixed) | ||
| 142 | { | ||
| 140 | return -ENOSYS; | 143 | return -ENOSYS; |
| 141 | } | 144 | } |
| 142 | 145 | ||
