aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c24xx/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-s3c24xx/dma.c')
-rw-r--r--arch/arm/plat-s3c24xx/dma.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/arch/arm/plat-s3c24xx/dma.c b/arch/arm/plat-s3c24xx/dma.c
index 1baf941d1930..aee2aeb46c60 100644
--- a/arch/arm/plat-s3c24xx/dma.c
+++ b/arch/arm/plat-s3c24xx/dma.c
@@ -25,15 +25,13 @@
25#include <linux/sysdev.h> 25#include <linux/sysdev.h>
26#include <linux/slab.h> 26#include <linux/slab.h>
27#include <linux/errno.h> 27#include <linux/errno.h>
28#include <linux/delay.h>
29#include <linux/io.h> 28#include <linux/io.h>
30 29
31#include <asm/system.h> 30#include <asm/system.h>
32#include <asm/irq.h> 31#include <asm/irq.h>
33#include <mach/hardware.h> 32#include <mach/hardware.h>
34#include <asm/dma.h> 33#include <mach/dma.h>
35 34
36#include <asm/mach/dma.h>
37#include <mach/map.h> 35#include <mach/map.h>
38 36
39#include <plat/dma.h> 37#include <plat/dma.h>
@@ -804,7 +802,7 @@ EXPORT_SYMBOL(s3c2410_dma_request);
804 * allowed to go through. 802 * allowed to go through.
805*/ 803*/
806 804
807int s3c2410_dma_free(dmach_t channel, struct s3c2410_dma_client *client) 805int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *client)
808{ 806{
809 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel); 807 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel);
810 unsigned long flags; 808 unsigned long flags;
@@ -995,7 +993,7 @@ static int s3c2410_dma_started(struct s3c2410_dma_chan *chan)
995} 993}
996 994
997int 995int
998s3c2410_dma_ctrl(dmach_t channel, enum s3c2410_chan_op op) 996s3c2410_dma_ctrl(unsigned int channel, enum s3c2410_chan_op op)
999{ 997{
1000 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel); 998 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel);
1001 999
@@ -1043,7 +1041,7 @@ EXPORT_SYMBOL(s3c2410_dma_ctrl);
1043 * dcon: base value of the DCONx register 1041 * dcon: base value of the DCONx register
1044*/ 1042*/
1045 1043
1046int s3c2410_dma_config(dmach_t channel, 1044int s3c2410_dma_config(unsigned int channel,
1047 int xferunit, 1045 int xferunit,
1048 int dcon) 1046 int dcon)
1049{ 1047{
@@ -1092,7 +1090,7 @@ int s3c2410_dma_config(dmach_t channel,
1092 1090
1093EXPORT_SYMBOL(s3c2410_dma_config); 1091EXPORT_SYMBOL(s3c2410_dma_config);
1094 1092
1095int s3c2410_dma_setflags(dmach_t channel, unsigned int flags) 1093int s3c2410_dma_setflags(unsigned int channel, unsigned int flags)
1096{ 1094{
1097 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel); 1095 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel);
1098 1096
@@ -1113,7 +1111,7 @@ EXPORT_SYMBOL(s3c2410_dma_setflags);
1113 * irq? 1111 * irq?
1114*/ 1112*/
1115 1113
1116int s3c2410_dma_set_opfn(dmach_t channel, s3c2410_dma_opfn_t rtn) 1114int s3c2410_dma_set_opfn(unsigned int channel, s3c2410_dma_opfn_t rtn)
1117{ 1115{
1118 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel); 1116 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel);
1119 1117
@@ -1129,7 +1127,7 @@ int s3c2410_dma_set_opfn(dmach_t channel, s3c2410_dma_opfn_t rtn)
1129 1127
1130EXPORT_SYMBOL(s3c2410_dma_set_opfn); 1128EXPORT_SYMBOL(s3c2410_dma_set_opfn);
1131 1129
1132int s3c2410_dma_set_buffdone_fn(dmach_t channel, s3c2410_dma_cbfn_t rtn) 1130int s3c2410_dma_set_buffdone_fn(unsigned int channel, s3c2410_dma_cbfn_t rtn)
1133{ 1131{
1134 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel); 1132 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel);
1135 1133
@@ -1219,7 +1217,7 @@ EXPORT_SYMBOL(s3c2410_dma_devconfig);
1219 * returns the current transfer points for the dma source and destination 1217 * returns the current transfer points for the dma source and destination
1220*/ 1218*/
1221 1219
1222int s3c2410_dma_getposition(dmach_t channel, dma_addr_t *src, dma_addr_t *dst) 1220int s3c2410_dma_getposition(unsigned int channel, dma_addr_t *src, dma_addr_t *dst)
1223{ 1221{
1224 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel); 1222 struct s3c2410_dma_chan *chan = lookup_dma_channel(channel);
1225 1223