projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: at91_udc: correct hanging while disconnecting usb cable
[powerpc.git]
/
include
/
asm-mips
/
dma.h
diff --git
a/include/asm-mips/dma.h
b/include/asm-mips/dma.h
index
23f789c
..
d6a6c21
100644
(file)
--- a/
include/asm-mips/dma.h
+++ b/
include/asm-mips/dma.h
@@
-74,7
+74,7
@@
*
*/
*
*/
-#ifndef GENERIC_ISA_DMA_SUPPORT_BROKEN
+#ifndef
CONFIG_
GENERIC_ISA_DMA_SUPPORT_BROKEN
#define MAX_DMA_CHANNELS 8
#endif
#define MAX_DMA_CHANNELS 8
#endif
@@
-91,6
+91,8
@@
#else
#define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000)
#endif
#else
#define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000)
#endif
+#define MAX_DMA_PFN PFN_DOWN(virt_to_phys((void *)MAX_DMA_ADDRESS))
+#define MAX_DMA32_PFN (1UL << (32 - PAGE_SHIFT))
/* 8237 DMA controllers */
#define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */
/* 8237 DMA controllers */
#define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */