提交 d4c6fc99 编写于 作者: R Russell King 提交者: Russell King

[ARM] Move common definition of MAX_DMA_ADDRESS to asm/dma.h

Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 6842b929
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
#endif #endif
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
#endif /* _ASM_ARCH_DMA_H */ #endif /* _ASM_ARCH_DMA_H */
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
#endif /* _ASM_ARCH_DMA_H */ #endif /* _ASM_ARCH_DMA_H */
......
...@@ -9,11 +9,6 @@ ...@@ -9,11 +9,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
/*
* This is the maximum DMA address that can be DMAd to.
*/
#define MAX_DMA_ADDRESS 0xffffffff
/* /*
* The 21285 has two internal DMA channels; we call these 8 and 9. * The 21285 has two internal DMA channels; we call these 8 and 9.
* On CATS hardware we have an additional eight ISA dma channels * On CATS hardware we have an additional eight ISA dma channels
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
#endif /* _ASM_ARCH_DMA_H */ #endif /* _ASM_ARCH_DMA_H */
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
/* /*
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
#endif /* _ASM_ARCH_DMA_H */ #endif /* _ASM_ARCH_DMA_H */
......
...@@ -11,6 +11,4 @@ ...@@ -11,6 +11,4 @@
#ifndef _IOP3XX_DMA_H_P #ifndef _IOP3XX_DMA_H_P
#define _IOP3XX_DMA_H_P #define _IOP3XX_DMA_H_P
#define MAX_DMA_ADDRESS 0xffffffff
#endif /* _ASM_ARCH_DMA_H_P */ #endif /* _ASM_ARCH_DMA_H_P */
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
/* No DMA */ /* No DMA */
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0 /* All DMA is internal to CPU */ #define MAX_DMA_CHANNELS 0 /* All DMA is internal to CPU */
#endif /* _ASM_ARCH_DMA_H */ #endif /* _ASM_ARCH_DMA_H */
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
/* Hardware registers for omap1 */ /* Hardware registers for omap1 */
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
/* No DMA as the rest of the world see it */ /* No DMA as the rest of the world see it */
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
#endif /* _ASM_ARCH_DMA_H */ #endif /* _ASM_ARCH_DMA_H */
...@@ -14,12 +14,6 @@ ...@@ -14,12 +14,6 @@
#include "hardware.h" #include "hardware.h"
/*
* This is the maximum DMA address that can be DMAd to.
*/
#define MAX_DMA_ADDRESS 0xffffffff
/* /*
* The regular generic DMA interface is inappropriate for the * The regular generic DMA interface is inappropriate for the
* SA1100 DMA model. None of the SA1100 specific drivers using * SA1100 DMA model. None of the SA1100 specific drivers using
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#ifndef __ASM_ARCH_DMA_H #ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H #define __ASM_ARCH_DMA_H
#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0 #define MAX_DMA_CHANNELS 0
#endif /* _ASM_ARCH_DMA_H */ #endif /* _ASM_ARCH_DMA_H */
...@@ -9,6 +9,13 @@ typedef unsigned int dmach_t; ...@@ -9,6 +9,13 @@ typedef unsigned int dmach_t;
#include <asm/scatterlist.h> #include <asm/scatterlist.h>
#include <asm/arch/dma.h> #include <asm/arch/dma.h>
/*
* This is the maximum virtual address which can be DMA'd from.
*/
#ifndef MAX_DMA_ADDRESS
#define MAX_DMA_ADDRESS 0xffffffff
#endif
/* /*
* DMA modes * DMA modes
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册