Skip to content

Commit

Permalink
[ARM] Move common definition of MAX_DMA_ADDRESS to asm/dma.h
Browse files Browse the repository at this point in the history
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Jan 4, 2006
1 parent 6842b92 commit d4c6fc9
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 31 deletions.
1 change: 0 additions & 1 deletion include/asm-arm/arch-aaec2000/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0

#endif
2 changes: 0 additions & 2 deletions include/asm-arm/arch-clps711x/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff

#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */
Expand Down
1 change: 0 additions & 1 deletion include/asm-arm/arch-ebsa110/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */
Expand Down
5 changes: 0 additions & 5 deletions include/asm-arm/arch-ebsa285/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
#ifndef __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.
* On CATS hardware we have an additional eight ISA dma channels
Expand Down
2 changes: 0 additions & 2 deletions include/asm-arm/arch-epxa10db/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff

#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */
Expand Down
2 changes: 0 additions & 2 deletions include/asm-arm/arch-imx/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff

#define MAX_DMA_CHANNELS 0

/*
Expand Down
2 changes: 0 additions & 2 deletions include/asm-arm/arch-integrator/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff

#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */
Expand Down
2 changes: 0 additions & 2 deletions include/asm-arm/arch-iop3xx/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@
#ifndef _IOP3XX_DMA_H_P
#define _IOP3XX_DMA_H_P

#define MAX_DMA_ADDRESS 0xffffffff

#endif /* _ASM_ARCH_DMA_H_P */
2 changes: 0 additions & 2 deletions include/asm-arm/arch-ixp2000/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff

/* No DMA */
#define MAX_DMA_CHANNELS 0

Expand Down
1 change: 0 additions & 1 deletion include/asm-arm/arch-lh7a40x/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#ifndef __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 */

#endif /* _ASM_ARCH_DMA_H */
1 change: 0 additions & 1 deletion include/asm-arm/arch-omap/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0

/* Hardware registers for omap1 */
Expand Down
2 changes: 0 additions & 2 deletions include/asm-arm/arch-pxa/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff

/* No DMA as the rest of the world see it */
#define MAX_DMA_CHANNELS 0

Expand Down
1 change: 0 additions & 1 deletion include/asm-arm/arch-realview/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */
6 changes: 0 additions & 6 deletions include/asm-arm/arch-sa1100/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
#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
* SA1100 DMA model. None of the SA1100 specific drivers using
Expand Down
1 change: 0 additions & 1 deletion include/asm-arm/arch-versatile/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_ADDRESS 0xffffffff
#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */
7 changes: 7 additions & 0 deletions include/asm-arm/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ typedef unsigned int dmach_t;
#include <asm/scatterlist.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
*/
Expand Down

0 comments on commit d4c6fc9

Please sign in to comment.