mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 15:43:59 +08: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>
15 lines
226 B
C
15 lines
226 B
C
#ifndef ASMARM_DMA_CONTIGUOUS_H
|
|
#define ASMARM_DMA_CONTIGUOUS_H
|
|
|
|
#ifdef __KERNEL__
|
|
#ifdef CONFIG_DMA_CMA
|
|
|
|
#include <linux/types.h>
|
|
|
|
void dma_contiguous_early_fixup(phys_addr_t base, unsigned long size);
|
|
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|