diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-29 06:40:28 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-11-29 13:42:40 -0500 |
commit | dcea83adc666061864b82c96e059dffe7268b512 (patch) | |
tree | 4882086842f53bee3f6c655e6a3283effd3fbdff /arch/arm/mach-s3c2410 | |
parent | c72e005b099302b3c6bee8381396199b77b6dd4f (diff) |
[ARM] Hide ISA DMA API when ISA_DMA_API is unset
When ISA_DMA_API is unset, we're not implementing the ISA DMA API,
so there's no point in publishing the prototypes via asm/dma.h, nor
including the machine dependent parts of that API.
This allows us to remove a lot of mach/dma.h files which don't contain
any useful code. Unfortunately though, some platforms put their own
private non-ISA definitions into mach/dma.h, so we leave these behind
and fix the appropriate #include statments.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r-- | arch/arm/mach-s3c2410/dma.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/dma.h | 18 |
2 files changed, 9 insertions, 10 deletions
diff --git a/arch/arm/mach-s3c2410/dma.c b/arch/arm/mach-s3c2410/dma.c index 7d914a470b6c..17d4674ecb47 100644 --- a/arch/arm/mach-s3c2410/dma.c +++ b/arch/arm/mach-s3c2410/dma.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/sysdev.h> | 17 | #include <linux/sysdev.h> |
18 | #include <linux/serial_core.h> | 18 | #include <linux/serial_core.h> |
19 | 19 | ||
20 | #include <asm/dma.h> | ||
21 | #include <mach/dma.h> | 20 | #include <mach/dma.h> |
22 | 21 | ||
23 | #include <plat/cpu.h> | 22 | #include <plat/cpu.h> |
diff --git a/arch/arm/mach-s3c2410/include/mach/dma.h b/arch/arm/mach-s3c2410/include/mach/dma.h index 7cbea7b82b57..13358ce2128c 100644 --- a/arch/arm/mach-s3c2410/include/mach/dma.h +++ b/arch/arm/mach-s3c2410/include/mach/dma.h | |||
@@ -249,7 +249,7 @@ typedef unsigned long dma_device_t; | |||
249 | * request a dma channel exclusivley | 249 | * request a dma channel exclusivley |
250 | */ | 250 | */ |
251 | 251 | ||
252 | extern int s3c2410_dma_request(dmach_t channel, | 252 | extern int s3c2410_dma_request(unsigned int channel, |
253 | struct s3c2410_dma_client *, void *dev); | 253 | struct s3c2410_dma_client *, void *dev); |
254 | 254 | ||
255 | 255 | ||
@@ -258,14 +258,14 @@ extern int s3c2410_dma_request(dmach_t channel, | |||
258 | * change the state of the dma channel | 258 | * change the state of the dma channel |
259 | */ | 259 | */ |
260 | 260 | ||
261 | extern int s3c2410_dma_ctrl(dmach_t channel, enum s3c2410_chan_op op); | 261 | extern int s3c2410_dma_ctrl(unsigned int channel, enum s3c2410_chan_op op); |
262 | 262 | ||
263 | /* s3c2410_dma_setflags | 263 | /* s3c2410_dma_setflags |
264 | * | 264 | * |
265 | * set the channel's flags to a given state | 265 | * set the channel's flags to a given state |
266 | */ | 266 | */ |
267 | 267 | ||
268 | extern int s3c2410_dma_setflags(dmach_t channel, | 268 | extern int s3c2410_dma_setflags(unsigned int channel, |
269 | unsigned int flags); | 269 | unsigned int flags); |
270 | 270 | ||
271 | /* s3c2410_dma_free | 271 | /* s3c2410_dma_free |
@@ -273,7 +273,7 @@ extern int s3c2410_dma_setflags(dmach_t channel, | |||
273 | * free the dma channel (will also abort any outstanding operations) | 273 | * free the dma channel (will also abort any outstanding operations) |
274 | */ | 274 | */ |
275 | 275 | ||
276 | extern int s3c2410_dma_free(dmach_t channel, struct s3c2410_dma_client *); | 276 | extern int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *); |
277 | 277 | ||
278 | /* s3c2410_dma_enqueue | 278 | /* s3c2410_dma_enqueue |
279 | * | 279 | * |
@@ -282,7 +282,7 @@ extern int s3c2410_dma_free(dmach_t channel, struct s3c2410_dma_client *); | |||
282 | * drained before the buffer is given to the DMA system. | 282 | * drained before the buffer is given to the DMA system. |
283 | */ | 283 | */ |
284 | 284 | ||
285 | extern int s3c2410_dma_enqueue(dmach_t channel, void *id, | 285 | extern int s3c2410_dma_enqueue(unsigned int channel, void *id, |
286 | dma_addr_t data, int size); | 286 | dma_addr_t data, int size); |
287 | 287 | ||
288 | /* s3c2410_dma_config | 288 | /* s3c2410_dma_config |
@@ -290,7 +290,7 @@ extern int s3c2410_dma_enqueue(dmach_t channel, void *id, | |||
290 | * configure the dma channel | 290 | * configure the dma channel |
291 | */ | 291 | */ |
292 | 292 | ||
293 | extern int s3c2410_dma_config(dmach_t channel, int xferunit, int dcon); | 293 | extern int s3c2410_dma_config(unsigned int channel, int xferunit, int dcon); |
294 | 294 | ||
295 | /* s3c2410_dma_devconfig | 295 | /* s3c2410_dma_devconfig |
296 | * | 296 | * |
@@ -305,11 +305,11 @@ extern int s3c2410_dma_devconfig(int channel, enum s3c2410_dmasrc source, | |||
305 | * get the position that the dma transfer is currently at | 305 | * get the position that the dma transfer is currently at |
306 | */ | 306 | */ |
307 | 307 | ||
308 | extern int s3c2410_dma_getposition(dmach_t channel, | 308 | extern int s3c2410_dma_getposition(unsigned int channel, |
309 | dma_addr_t *src, dma_addr_t *dest); | 309 | dma_addr_t *src, dma_addr_t *dest); |
310 | 310 | ||
311 | extern int s3c2410_dma_set_opfn(dmach_t, s3c2410_dma_opfn_t rtn); | 311 | extern int s3c2410_dma_set_opfn(unsigned int, s3c2410_dma_opfn_t rtn); |
312 | extern int s3c2410_dma_set_buffdone_fn(dmach_t, s3c2410_dma_cbfn_t rtn); | 312 | extern int s3c2410_dma_set_buffdone_fn(unsigned int, s3c2410_dma_cbfn_t rtn); |
313 | 313 | ||
314 | /* DMA Register definitions */ | 314 | /* DMA Register definitions */ |
315 | 315 | ||