mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 19:01:37 +00:00
a254738039
This patch cleans the initialization of dma contiguous framework. The all-in-one dma_declare_contiguous() function is now separated into dma_contiguous_reserve_area() which only steals the the memory from memblock allocator and dma_contiguous_add_device() function, which assigns given device to the specified reserved memory area. This improves the flexibility in defining contiguous memory areas and assigning device to them, because now it is possible to assign more than one device to the given contiguous memory area. Such split in initialization procedure is also required for upcoming device tree support. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Michal Nazarewicz <mina86@mina86.com> Acked-by: Tomasz Figa <t.figa@samsung.com>
13 lines
213 B
C
13 lines
213 B
C
#ifndef ASMX86_DMA_CONTIGUOUS_H
|
|
#define ASMX86_DMA_CONTIGUOUS_H
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
#include <linux/types.h>
|
|
|
|
static inline void
|
|
dma_contiguous_early_fixup(phys_addr_t base, unsigned long size) { }
|
|
|
|
#endif
|
|
#endif
|