diff options
author | Scott Wood <scottwood@freescale.com> | 2014-08-08 19:40:42 -0400 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-09-03 18:58:21 -0400 |
commit | 1c98025c6c95bc057a25e2c6596de23288c68160 (patch) | |
tree | 37475259871168c9835b78ecd3d233f870945fa1 /arch/powerpc/include/asm/pgtable.h | |
parent | 78eb9094ca08a40b8f9d3e113a2b88e0b7dbad1d (diff) |
powerpc: Dynamic DMA zone limits
Platform code can call limit_zone_pfn() to set appropriate limits
for ZONE_DMA and ZONE_DMA32, and dma_direct_alloc_coherent() will
select a suitable zone based on a device's mask and the pfn limits that
platform code has configured.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
Diffstat (limited to 'arch/powerpc/include/asm/pgtable.h')
-rw-r--r-- | arch/powerpc/include/asm/pgtable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgtable.h index d98c1ecc3266..6d74167bb6bf 100644 --- a/arch/powerpc/include/asm/pgtable.h +++ b/arch/powerpc/include/asm/pgtable.h | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | #ifndef __ASSEMBLY__ | 5 | #ifndef __ASSEMBLY__ |
6 | #include <linux/mmdebug.h> | 6 | #include <linux/mmdebug.h> |
7 | #include <linux/mmzone.h> | ||
7 | #include <asm/processor.h> /* For TASK_SIZE */ | 8 | #include <asm/processor.h> /* For TASK_SIZE */ |
8 | #include <asm/mmu.h> | 9 | #include <asm/mmu.h> |
9 | #include <asm/page.h> | 10 | #include <asm/page.h> |
@@ -281,6 +282,8 @@ extern unsigned long empty_zero_page[]; | |||
281 | 282 | ||
282 | extern pgd_t swapper_pg_dir[]; | 283 | extern pgd_t swapper_pg_dir[]; |
283 | 284 | ||
285 | void limit_zone_pfn(enum zone_type zone, unsigned long max_pfn); | ||
286 | int dma_pfn_limit_to_zone(u64 pfn_limit); | ||
284 | extern void paging_init(void); | 287 | extern void paging_init(void); |
285 | 288 | ||
286 | /* | 289 | /* |