mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
MIPS: Allow MAX_DMA32_PFN to be overridden.
DMA mapping may reduce the usable physical address range usable for 32-bit DMA. Signed-off-by: David Daney <ddaney@caviumnetworks.com> Patchwork: http://patchwork.linux-mips.org/patch/1633/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
f12990720c
commit
cfd570990f
1 changed files with 3 additions and 0 deletions
|
@ -91,7 +91,10 @@
|
||||||
#define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000)
|
#define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000)
|
||||||
#endif
|
#endif
|
||||||
#define MAX_DMA_PFN PFN_DOWN(virt_to_phys((void *)MAX_DMA_ADDRESS))
|
#define MAX_DMA_PFN PFN_DOWN(virt_to_phys((void *)MAX_DMA_ADDRESS))
|
||||||
|
|
||||||
|
#ifndef MAX_DMA32_PFN
|
||||||
#define MAX_DMA32_PFN (1UL << (32 - PAGE_SHIFT))
|
#define MAX_DMA32_PFN (1UL << (32 - PAGE_SHIFT))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* 8237 DMA controllers */
|
/* 8237 DMA controllers */
|
||||||
#define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */
|
#define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */
|
||||||
|
|
Loading…
Reference in a new issue