@@ -42,6 +42,7 @@ struct s3c2410_dma_client {
4242};
4343
4444struct s3c2410_dma_chan ;
45+ enum dma_ch ;
4546
4647/* s3c2410_dma_cbfn_t
4748 *
@@ -62,7 +63,7 @@ typedef int (*s3c2410_dma_opfn_t)(struct s3c2410_dma_chan *,
6263 * request a dma channel exclusivley
6364*/
6465
65- extern int s3c2410_dma_request (unsigned int channel ,
66+ extern int s3c2410_dma_request (enum dma_ch channel ,
6667 struct s3c2410_dma_client * , void * dev );
6768
6869
@@ -71,22 +72,22 @@ extern int s3c2410_dma_request(unsigned int channel,
7172 * change the state of the dma channel
7273*/
7374
74- extern int s3c2410_dma_ctrl (unsigned int channel , enum s3c2410_chan_op op );
75+ extern int s3c2410_dma_ctrl (enum dma_ch channel , enum s3c2410_chan_op op );
7576
7677/* s3c2410_dma_setflags
7778 *
7879 * set the channel's flags to a given state
7980*/
8081
81- extern int s3c2410_dma_setflags (unsigned int channel ,
82+ extern int s3c2410_dma_setflags (enum dma_ch channel ,
8283 unsigned int flags );
8384
8485/* s3c2410_dma_free
8586 *
8687 * free the dma channel (will also abort any outstanding operations)
8788*/
8889
89- extern int s3c2410_dma_free (unsigned int channel , struct s3c2410_dma_client * );
90+ extern int s3c2410_dma_free (enum dma_ch channel , struct s3c2410_dma_client * );
9091
9192/* s3c2410_dma_enqueue
9293 *
@@ -95,33 +96,33 @@ extern int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *);
9596 * drained before the buffer is given to the DMA system.
9697*/
9798
98- extern int s3c2410_dma_enqueue (unsigned int channel , void * id ,
99+ extern int s3c2410_dma_enqueue (enum dma_ch channel , void * id ,
99100 dma_addr_t data , int size );
100101
101102/* s3c2410_dma_config
102103 *
103104 * configure the dma channel
104105*/
105106
106- extern int s3c2410_dma_config (unsigned int channel , int xferunit );
107+ extern int s3c2410_dma_config (enum dma_ch channel , int xferunit );
107108
108109/* s3c2410_dma_devconfig
109110 *
110111 * configure the device we're talking to
111112*/
112113
113- extern int s3c2410_dma_devconfig (unsigned int channel ,
114+ extern int s3c2410_dma_devconfig (enum dma_ch channel ,
114115 enum s3c2410_dmasrc source , unsigned long devaddr );
115116
116117/* s3c2410_dma_getposition
117118 *
118119 * get the position that the dma transfer is currently at
119120*/
120121
121- extern int s3c2410_dma_getposition (unsigned int channel ,
122+ extern int s3c2410_dma_getposition (enum dma_ch channel ,
122123 dma_addr_t * src , dma_addr_t * dest );
123124
124- extern int s3c2410_dma_set_opfn (unsigned int , s3c2410_dma_opfn_t rtn );
125- extern int s3c2410_dma_set_buffdone_fn (unsigned int , s3c2410_dma_cbfn_t rtn );
125+ extern int s3c2410_dma_set_opfn (enum dma_ch , s3c2410_dma_opfn_t rtn );
126+ extern int s3c2410_dma_set_buffdone_fn (enum dma_ch , s3c2410_dma_cbfn_t rtn );
126127
127128
0 commit comments