diff options
-rw-r--r-- | arch/arm/kernel/dma.c | 28 | ||||
-rw-r--r-- | include/asm-arm/arch-aaec2000/dma.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-cl7500/dma.h | 1 | ||||
-rw-r--r-- | include/asm-arm/arch-clps711x/dma.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-ebsa110/dma.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-epxa10db/dma.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-imx/dma.h | 2 | ||||
-rw-r--r-- | include/asm-arm/arch-integrator/dma.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-iop3xx/dma.h | 5 | ||||
-rw-r--r-- | include/asm-arm/arch-ixp2000/dma.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-ixp4xx/dma.h | 3 | ||||
-rw-r--r-- | include/asm-arm/arch-l7200/dma.h | 1 | ||||
-rw-r--r-- | include/asm-arm/arch-lh7a40x/dma.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/dma.h | 2 | ||||
-rw-r--r-- | include/asm-arm/arch-pxa/dma.h | 3 | ||||
-rw-r--r-- | include/asm-arm/arch-realview/dma.h | 6 | ||||
-rw-r--r-- | include/asm-arm/arch-s3c2410/dma.h | 8 | ||||
-rw-r--r-- | include/asm-arm/arch-sa1100/dma.h | 8 | ||||
-rw-r--r-- | include/asm-arm/arch-versatile/dma.h | 6 |
19 files changed, 0 insertions, 122 deletions
diff --git a/arch/arm/kernel/dma.c b/arch/arm/kernel/dma.c index 3b325ef55a28..62c8966a8b77 100644 --- a/arch/arm/kernel/dma.c +++ b/arch/arm/kernel/dma.c | |||
@@ -22,8 +22,6 @@ | |||
22 | 22 | ||
23 | DEFINE_SPINLOCK(dma_spin_lock); | 23 | DEFINE_SPINLOCK(dma_spin_lock); |
24 | 24 | ||
25 | #if MAX_DMA_CHANNELS > 0 | ||
26 | |||
27 | static dma_t dma_chan[MAX_DMA_CHANNELS]; | 25 | static dma_t dma_chan[MAX_DMA_CHANNELS]; |
28 | 26 | ||
29 | /* | 27 | /* |
@@ -256,32 +254,6 @@ static int __init init_dma(void) | |||
256 | 254 | ||
257 | core_initcall(init_dma); | 255 | core_initcall(init_dma); |
258 | 256 | ||
259 | #else | ||
260 | |||
261 | int request_dma(dmach_t channel, const char *device_id) | ||
262 | { | ||
263 | return -EINVAL; | ||
264 | } | ||
265 | |||
266 | int get_dma_residue(dmach_t channel) | ||
267 | { | ||
268 | return 0; | ||
269 | } | ||
270 | |||
271 | #define GLOBAL_ALIAS(_a,_b) asm (".set " #_a "," #_b "; .globl " #_a) | ||
272 | GLOBAL_ALIAS(disable_dma, get_dma_residue); | ||
273 | GLOBAL_ALIAS(enable_dma, get_dma_residue); | ||
274 | GLOBAL_ALIAS(free_dma, get_dma_residue); | ||
275 | GLOBAL_ALIAS(get_dma_list, get_dma_residue); | ||
276 | GLOBAL_ALIAS(set_dma_mode, get_dma_residue); | ||
277 | GLOBAL_ALIAS(set_dma_page, get_dma_residue); | ||
278 | GLOBAL_ALIAS(set_dma_count, get_dma_residue); | ||
279 | GLOBAL_ALIAS(__set_dma_addr, get_dma_residue); | ||
280 | GLOBAL_ALIAS(set_dma_sg, get_dma_residue); | ||
281 | GLOBAL_ALIAS(set_dma_speed, get_dma_residue); | ||
282 | |||
283 | #endif | ||
284 | |||
285 | EXPORT_SYMBOL(request_dma); | 257 | EXPORT_SYMBOL(request_dma); |
286 | EXPORT_SYMBOL(free_dma); | 258 | EXPORT_SYMBOL(free_dma); |
287 | EXPORT_SYMBOL(enable_dma); | 259 | EXPORT_SYMBOL(enable_dma); |
diff --git a/include/asm-arm/arch-aaec2000/dma.h b/include/asm-arm/arch-aaec2000/dma.h index c42212c9ea79..e100b1e526fe 100644 --- a/include/asm-arm/arch-aaec2000/dma.h +++ b/include/asm-arm/arch-aaec2000/dma.h | |||
@@ -7,10 +7,3 @@ | |||
7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | |||
11 | #ifndef __ASM_ARCH_DMA_H | ||
12 | #define __ASM_ARCH_DMA_H | ||
13 | |||
14 | #define MAX_DMA_CHANNELS 0 | ||
15 | |||
16 | #endif | ||
diff --git a/include/asm-arm/arch-cl7500/dma.h b/include/asm-arm/arch-cl7500/dma.h index 1d6a8829d327..591ed2551892 100644 --- a/include/asm-arm/arch-cl7500/dma.h +++ b/include/asm-arm/arch-cl7500/dma.h | |||
@@ -15,7 +15,6 @@ | |||
15 | * bytes of RAM. | 15 | * bytes of RAM. |
16 | */ | 16 | */ |
17 | #define MAX_DMA_ADDRESS 0xd0000000 | 17 | #define MAX_DMA_ADDRESS 0xd0000000 |
18 | #define MAX_DMA_CHANNELS 0 | ||
19 | 18 | ||
20 | #define DMA_S0 0 | 19 | #define DMA_S0 0 |
21 | 20 | ||
diff --git a/include/asm-arm/arch-clps711x/dma.h b/include/asm-arm/arch-clps711x/dma.h index c35f87d0bf7a..610997938423 100644 --- a/include/asm-arm/arch-clps711x/dma.h +++ b/include/asm-arm/arch-clps711x/dma.h | |||
@@ -17,10 +17,3 @@ | |||
17 | * along with this program; if not, write to the Free Software | 17 | * along with this program; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | #ifndef __ASM_ARCH_DMA_H | ||
21 | #define __ASM_ARCH_DMA_H | ||
22 | |||
23 | #define MAX_DMA_CHANNELS 0 | ||
24 | |||
25 | #endif /* _ASM_ARCH_DMA_H */ | ||
26 | |||
diff --git a/include/asm-arm/arch-ebsa110/dma.h b/include/asm-arm/arch-ebsa110/dma.h index f1add1343edc..c52f9e2ab0bb 100644 --- a/include/asm-arm/arch-ebsa110/dma.h +++ b/include/asm-arm/arch-ebsa110/dma.h | |||
@@ -9,10 +9,3 @@ | |||
9 | * | 9 | * |
10 | * EBSA110 DMA definitions | 10 | * EBSA110 DMA definitions |
11 | */ | 11 | */ |
12 | #ifndef __ASM_ARCH_DMA_H | ||
13 | #define __ASM_ARCH_DMA_H | ||
14 | |||
15 | #define MAX_DMA_CHANNELS 0 | ||
16 | |||
17 | #endif /* _ASM_ARCH_DMA_H */ | ||
18 | |||
diff --git a/include/asm-arm/arch-epxa10db/dma.h b/include/asm-arm/arch-epxa10db/dma.h index 6e13e6bb8b1d..de20ec8e74b1 100644 --- a/include/asm-arm/arch-epxa10db/dma.h +++ b/include/asm-arm/arch-epxa10db/dma.h | |||
@@ -17,10 +17,3 @@ | |||
17 | * along with this program; if not, write to the Free Software | 17 | * along with this program; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | #ifndef __ASM_ARCH_DMA_H | ||
21 | #define __ASM_ARCH_DMA_H | ||
22 | |||
23 | #define MAX_DMA_CHANNELS 0 | ||
24 | |||
25 | #endif /* _ASM_ARCH_DMA_H */ | ||
26 | |||
diff --git a/include/asm-arm/arch-imx/dma.h b/include/asm-arm/arch-imx/dma.h index 0b8f39adc9a7..b45fa367d71e 100644 --- a/include/asm-arm/arch-imx/dma.h +++ b/include/asm-arm/arch-imx/dma.h | |||
@@ -20,8 +20,6 @@ | |||
20 | #ifndef __ASM_ARCH_DMA_H | 20 | #ifndef __ASM_ARCH_DMA_H |
21 | #define __ASM_ARCH_DMA_H | 21 | #define __ASM_ARCH_DMA_H |
22 | 22 | ||
23 | #define MAX_DMA_CHANNELS 0 | ||
24 | |||
25 | /* | 23 | /* |
26 | * DMA registration | 24 | * DMA registration |
27 | */ | 25 | */ |
diff --git a/include/asm-arm/arch-integrator/dma.h b/include/asm-arm/arch-integrator/dma.h index 6f934f6d838a..83fd6bbaf9d3 100644 --- a/include/asm-arm/arch-integrator/dma.h +++ b/include/asm-arm/arch-integrator/dma.h | |||
@@ -17,10 +17,3 @@ | |||
17 | * along with this program; if not, write to the Free Software | 17 | * along with this program; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | #ifndef __ASM_ARCH_DMA_H | ||
21 | #define __ASM_ARCH_DMA_H | ||
22 | |||
23 | #define MAX_DMA_CHANNELS 0 | ||
24 | |||
25 | #endif /* _ASM_ARCH_DMA_H */ | ||
26 | |||
diff --git a/include/asm-arm/arch-iop3xx/dma.h b/include/asm-arm/arch-iop3xx/dma.h index 58ec24db415d..1e808db8af2a 100644 --- a/include/asm-arm/arch-iop3xx/dma.h +++ b/include/asm-arm/arch-iop3xx/dma.h | |||
@@ -7,8 +7,3 @@ | |||
7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | |||
11 | #ifndef _IOP3XX_DMA_H_P | ||
12 | #define _IOP3XX_DMA_H_P | ||
13 | |||
14 | #endif /* _ASM_ARCH_DMA_H_P */ | ||
diff --git a/include/asm-arm/arch-ixp2000/dma.h b/include/asm-arm/arch-ixp2000/dma.h index 3af382551cda..548d8dc507eb 100644 --- a/include/asm-arm/arch-ixp2000/dma.h +++ b/include/asm-arm/arch-ixp2000/dma.h | |||
@@ -7,10 +7,3 @@ | |||
7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | #ifndef __ASM_ARCH_DMA_H | ||
11 | #define __ASM_ARCH_DMA_H | ||
12 | |||
13 | /* No DMA */ | ||
14 | #define MAX_DMA_CHANNELS 0 | ||
15 | |||
16 | #endif /* _ASM_ARCH_DMA_H */ | ||
diff --git a/include/asm-arm/arch-ixp4xx/dma.h b/include/asm-arm/arch-ixp4xx/dma.h index 312065dc0e7a..b1a071ecebc8 100644 --- a/include/asm-arm/arch-ixp4xx/dma.h +++ b/include/asm-arm/arch-ixp4xx/dma.h | |||
@@ -20,7 +20,4 @@ | |||
20 | 20 | ||
21 | #define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_64M) | 21 | #define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_64M) |
22 | 22 | ||
23 | /* No DMA */ | ||
24 | #define MAX_DMA_CHANNELS 0 | ||
25 | |||
26 | #endif /* _ASM_ARCH_DMA_H */ | 23 | #endif /* _ASM_ARCH_DMA_H */ |
diff --git a/include/asm-arm/arch-l7200/dma.h b/include/asm-arm/arch-l7200/dma.h index 6595b386cfc9..4c7eca63f035 100644 --- a/include/asm-arm/arch-l7200/dma.h +++ b/include/asm-arm/arch-l7200/dma.h | |||
@@ -17,7 +17,6 @@ | |||
17 | * bytes of RAM. | 17 | * bytes of RAM. |
18 | */ | 18 | */ |
19 | #define MAX_DMA_ADDRESS 0xd0000000 | 19 | #define MAX_DMA_ADDRESS 0xd0000000 |
20 | #define MAX_DMA_CHANNELS 0 | ||
21 | 20 | ||
22 | #define DMA_S0 0 | 21 | #define DMA_S0 0 |
23 | 22 | ||
diff --git a/include/asm-arm/arch-lh7a40x/dma.h b/include/asm-arm/arch-lh7a40x/dma.h index 18f13689a405..15492e3253f6 100644 --- a/include/asm-arm/arch-lh7a40x/dma.h +++ b/include/asm-arm/arch-lh7a40x/dma.h | |||
@@ -7,10 +7,3 @@ | |||
7 | * version 2 as published by the Free Software Foundation. | 7 | * version 2 as published by the Free Software Foundation. |
8 | * | 8 | * |
9 | */ | 9 | */ |
10 | |||
11 | #ifndef __ASM_ARCH_DMA_H | ||
12 | #define __ASM_ARCH_DMA_H | ||
13 | |||
14 | #define MAX_DMA_CHANNELS 0 /* All DMA is internal to CPU */ | ||
15 | |||
16 | #endif /* _ASM_ARCH_DMA_H */ | ||
diff --git a/include/asm-arm/arch-omap/dma.h b/include/asm-arm/arch-omap/dma.h index 40c045404613..d4e73efcb816 100644 --- a/include/asm-arm/arch-omap/dma.h +++ b/include/asm-arm/arch-omap/dma.h | |||
@@ -21,8 +21,6 @@ | |||
21 | #ifndef __ASM_ARCH_DMA_H | 21 | #ifndef __ASM_ARCH_DMA_H |
22 | #define __ASM_ARCH_DMA_H | 22 | #define __ASM_ARCH_DMA_H |
23 | 23 | ||
24 | #define MAX_DMA_CHANNELS 0 | ||
25 | |||
26 | /* Hardware registers for omap1 */ | 24 | /* Hardware registers for omap1 */ |
27 | #define OMAP_DMA_BASE (0xfffed800) | 25 | #define OMAP_DMA_BASE (0xfffed800) |
28 | #define OMAP_DMA_GCR (OMAP_DMA_BASE + 0x400) | 26 | #define OMAP_DMA_GCR (OMAP_DMA_BASE + 0x400) |
diff --git a/include/asm-arm/arch-pxa/dma.h b/include/asm-arm/arch-pxa/dma.h index 7402bdafc163..3e88a2a02a0f 100644 --- a/include/asm-arm/arch-pxa/dma.h +++ b/include/asm-arm/arch-pxa/dma.h | |||
@@ -12,9 +12,6 @@ | |||
12 | #ifndef __ASM_ARCH_DMA_H | 12 | #ifndef __ASM_ARCH_DMA_H |
13 | #define __ASM_ARCH_DMA_H | 13 | #define __ASM_ARCH_DMA_H |
14 | 14 | ||
15 | /* No DMA as the rest of the world see it */ | ||
16 | #define MAX_DMA_CHANNELS 0 | ||
17 | |||
18 | /* | 15 | /* |
19 | * Descriptor structure for PXA's DMA engine | 16 | * Descriptor structure for PXA's DMA engine |
20 | * Note: this structure must always be aligned to a 16-byte boundary. | 17 | * Note: this structure must always be aligned to a 16-byte boundary. |
diff --git a/include/asm-arm/arch-realview/dma.h b/include/asm-arm/arch-realview/dma.h index d595cc90b069..8342e3f9d6ec 100644 --- a/include/asm-arm/arch-realview/dma.h +++ b/include/asm-arm/arch-realview/dma.h | |||
@@ -18,9 +18,3 @@ | |||
18 | * along with this program; if not, write to the Free Software | 18 | * along with this program; if not, write to the Free Software |
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ | 20 | */ |
21 | #ifndef __ASM_ARCH_DMA_H | ||
22 | #define __ASM_ARCH_DMA_H | ||
23 | |||
24 | #define MAX_DMA_CHANNELS 0 | ||
25 | |||
26 | #endif /* _ASM_ARCH_DMA_H */ | ||
diff --git a/include/asm-arm/arch-s3c2410/dma.h b/include/asm-arm/arch-s3c2410/dma.h index e830a40e573a..b011e14f3bc6 100644 --- a/include/asm-arm/arch-s3c2410/dma.h +++ b/include/asm-arm/arch-s3c2410/dma.h | |||
@@ -31,14 +31,6 @@ | |||
31 | #define MAX_DMA_TRANSFER_SIZE 0x100000 /* Data Unit is half word */ | 31 | #define MAX_DMA_TRANSFER_SIZE 0x100000 /* Data Unit is half word */ |
32 | 32 | ||
33 | 33 | ||
34 | /* according to the samsung port, we cannot use the regular | ||
35 | * dma channels... we must therefore provide our own interface | ||
36 | * for DMA, and allow our drivers to use that. | ||
37 | */ | ||
38 | |||
39 | #define MAX_DMA_CHANNELS 0 | ||
40 | |||
41 | |||
42 | /* we have 4 dma channels */ | 34 | /* we have 4 dma channels */ |
43 | #define S3C2410_DMA_CHANNELS (4) | 35 | #define S3C2410_DMA_CHANNELS (4) |
44 | 36 | ||
diff --git a/include/asm-arm/arch-sa1100/dma.h b/include/asm-arm/arch-sa1100/dma.h index a79c2d37c669..02575d72ac6b 100644 --- a/include/asm-arm/arch-sa1100/dma.h +++ b/include/asm-arm/arch-sa1100/dma.h | |||
@@ -15,14 +15,6 @@ | |||
15 | 15 | ||
16 | 16 | ||
17 | /* | 17 | /* |
18 | * The regular generic DMA interface is inappropriate for the | ||
19 | * SA1100 DMA model. None of the SA1100 specific drivers using | ||
20 | * DMA are portable anyway so it's pointless to try to twist the | ||
21 | * regular DMA API to accommodate them. | ||
22 | */ | ||
23 | #define MAX_DMA_CHANNELS 0 | ||
24 | |||
25 | /* | ||
26 | * The SA1100 has six internal DMA channels. | 18 | * The SA1100 has six internal DMA channels. |
27 | */ | 19 | */ |
28 | #define SA1100_DMA_CHANNELS 6 | 20 | #define SA1100_DMA_CHANNELS 6 |
diff --git a/include/asm-arm/arch-versatile/dma.h b/include/asm-arm/arch-versatile/dma.h index 94b3fc5a6321..642577348623 100644 --- a/include/asm-arm/arch-versatile/dma.h +++ b/include/asm-arm/arch-versatile/dma.h | |||
@@ -18,9 +18,3 @@ | |||
18 | * along with this program; if not, write to the Free Software | 18 | * along with this program; if not, write to the Free Software |
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ | 20 | */ |
21 | #ifndef __ASM_ARCH_DMA_H | ||
22 | #define __ASM_ARCH_DMA_H | ||
23 | |||
24 | #define MAX_DMA_CHANNELS 0 | ||
25 | |||
26 | #endif /* _ASM_ARCH_DMA_H */ | ||