Commit 60c16b9c authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[IRDA]: Rename setup_dma to irda_setup_dma.

parent b34243f6
...@@ -1573,10 +1573,10 @@ static void ali_ircc_dma_xmit(struct ali_ircc_cb *self) ...@@ -1573,10 +1573,10 @@ static void ali_ircc_dma_xmit(struct ali_ircc_cb *self)
self->io.direction = IO_XMIT; self->io.direction = IO_XMIT;
setup_dma(self->io.dma, irda_setup_dma(self->io.dma,
self->tx_fifo.queue[self->tx_fifo.ptr].start, self->tx_fifo.queue[self->tx_fifo.ptr].start,
self->tx_fifo.queue[self->tx_fifo.ptr].len, self->tx_fifo.queue[self->tx_fifo.ptr].len,
DMA_TX_MODE); DMA_TX_MODE);
/* Reset Tx FIFO */ /* Reset Tx FIFO */
switch_bank(iobase, BANK0); switch_bank(iobase, BANK0);
...@@ -1726,8 +1726,8 @@ static int ali_ircc_dma_receive(struct ali_ircc_cb *self) ...@@ -1726,8 +1726,8 @@ static int ali_ircc_dma_receive(struct ali_ircc_cb *self)
self->st_fifo.len = self->st_fifo.pending_bytes = 0; self->st_fifo.len = self->st_fifo.pending_bytes = 0;
self->st_fifo.tail = self->st_fifo.head = 0; self->st_fifo.tail = self->st_fifo.head = 0;
setup_dma(self->io.dma, self->rx_buff.data, self->rx_buff.truesize, irda_setup_dma(self->io.dma, self->rx_buff.data,
DMA_RX_MODE); self->rx_buff.truesize, DMA_RX_MODE);
/* Set Receive Mode,Brick Wall */ /* Set Receive Mode,Brick Wall */
//switch_bank(iobase, BANK0); //switch_bank(iobase, BANK0);
......
...@@ -1410,10 +1410,10 @@ static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase) ...@@ -1410,10 +1410,10 @@ static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase)
switch_bank(iobase, BANK2); switch_bank(iobase, BANK2);
outb(ECR1_DMASWP|ECR1_DMANF|ECR1_EXT_SL, iobase+ECR1); outb(ECR1_DMASWP|ECR1_DMANF|ECR1_EXT_SL, iobase+ECR1);
setup_dma(self->io.dma, irda_setup_dma(self->io.dma,
self->tx_fifo.queue[self->tx_fifo.ptr].start, self->tx_fifo.queue[self->tx_fifo.ptr].start,
self->tx_fifo.queue[self->tx_fifo.ptr].len, self->tx_fifo.queue[self->tx_fifo.ptr].len,
DMA_TX_MODE); DMA_TX_MODE);
/* Enable DMA and SIR interaction pulse */ /* Enable DMA and SIR interaction pulse */
switch_bank(iobase, BANK0); switch_bank(iobase, BANK0);
...@@ -1568,8 +1568,8 @@ static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self) ...@@ -1568,8 +1568,8 @@ static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self)
self->st_fifo.len = self->st_fifo.pending_bytes = 0; self->st_fifo.len = self->st_fifo.pending_bytes = 0;
self->st_fifo.tail = self->st_fifo.head = 0; self->st_fifo.tail = self->st_fifo.head = 0;
setup_dma(self->io.dma, self->rx_buff.data, self->rx_buff.truesize, irda_setup_dma(self->io.dma, self->rx_buff.data,
DMA_RX_MODE); self->rx_buff.truesize, DMA_RX_MODE);
/* Enable DMA */ /* Enable DMA */
switch_bank(iobase, BANK0); switch_bank(iobase, BANK0);
......
...@@ -1161,8 +1161,8 @@ static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int iobase, int bofs) ...@@ -1161,8 +1161,8 @@ static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int iobase, int bofs)
IRCC_CFGB_DMA_BURST, iobase+IRCC_SCE_CFGB); IRCC_CFGB_DMA_BURST, iobase+IRCC_SCE_CFGB);
/* Setup DMA controller (must be done after enabling chip DMA) */ /* Setup DMA controller (must be done after enabling chip DMA) */
setup_dma(self->io.dma, self->tx_buff.data, self->tx_buff.len, irda_setup_dma(self->io.dma, self->tx_buff.data, self->tx_buff.len,
DMA_TX_MODE); DMA_TX_MODE);
/* Enable interrupt */ /* Enable interrupt */
...@@ -1251,8 +1251,8 @@ static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self, int iobase) ...@@ -1251,8 +1251,8 @@ static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self, int iobase)
outb(2050 & 0xff, iobase+IRCC_RX_SIZE_LO); outb(2050 & 0xff, iobase+IRCC_RX_SIZE_LO);
/* Setup DMA controller */ /* Setup DMA controller */
setup_dma(self->io.dma, self->rx_buff.data, self->rx_buff.truesize, irda_setup_dma(self->io.dma, self->rx_buff.data,
DMA_RX_MODE); self->rx_buff.truesize, DMA_RX_MODE);
/* Enable burst mode chip Rx DMA */ /* Enable burst mode chip Rx DMA */
register_bank(iobase, 1); register_bank(iobase, 1);
......
...@@ -819,8 +819,8 @@ static int via_ircc_hard_xmit_sir(struct sk_buff *skb, ...@@ -819,8 +819,8 @@ static int via_ircc_hard_xmit_sir(struct sk_buff *skb,
EnTXDMA(iobase, ON); EnTXDMA(iobase, ON);
EnRXDMA(iobase, OFF); EnRXDMA(iobase, OFF);
setup_dma(self->io.dma, self->tx_buff.data, self->tx_buff.len, irda_setup_dma(self->io.dma, self->tx_buff.data, self->tx_buff.len,
DMA_TX_MODE); DMA_TX_MODE);
SetSendByte(iobase, self->tx_buff.len); SetSendByte(iobase, self->tx_buff.len);
RXStart(iobase, OFF); RXStart(iobase, OFF);
...@@ -899,9 +899,9 @@ static int via_ircc_dma_xmit(struct via_ircc_cb *self, u16 iobase) ...@@ -899,9 +899,9 @@ static int via_ircc_dma_xmit(struct via_ircc_cb *self, u16 iobase)
EnAllInt(iobase, ON); EnAllInt(iobase, ON);
EnTXDMA(iobase, ON); EnTXDMA(iobase, ON);
EnRXDMA(iobase, OFF); EnRXDMA(iobase, OFF);
setup_dma(self->io.dma, irda_setup_dma(self->io.dma,
self->tx_fifo.queue[self->tx_fifo.ptr].start, self->tx_fifo.queue[self->tx_fifo.ptr].start,
self->tx_fifo.queue[self->tx_fifo.ptr].len, DMA_TX_MODE); self->tx_fifo.queue[self->tx_fifo.ptr].len, DMA_TX_MODE);
#ifdef DBGMSG #ifdef DBGMSG
DBG(printk DBG(printk
(KERN_INFO "dma_xmit:tx_fifo.ptr=%x,len=%x,tx_fifo.len=%x..\n", (KERN_INFO "dma_xmit:tx_fifo.ptr=%x,len=%x,tx_fifo.len=%x..\n",
...@@ -1025,8 +1025,8 @@ static int via_ircc_dma_receive(struct via_ircc_cb *self) ...@@ -1025,8 +1025,8 @@ static int via_ircc_dma_receive(struct via_ircc_cb *self)
EnAllInt(iobase, ON); EnAllInt(iobase, ON);
EnTXDMA(iobase, OFF); EnTXDMA(iobase, OFF);
EnRXDMA(iobase, ON); EnRXDMA(iobase, ON);
setup_dma(self->io.dma2, self->rx_buff.data, irda_setup_dma(self->io.dma2, self->rx_buff.data,
self->rx_buff.truesize, DMA_RX_MODE); self->rx_buff.truesize, DMA_RX_MODE);
TXStart(iobase, OFF); TXStart(iobase, OFF);
RXStart(iobase, ON); RXStart(iobase, ON);
......
...@@ -611,8 +611,8 @@ static void w83977af_dma_write(struct w83977af_ir *self, int iobase) ...@@ -611,8 +611,8 @@ static void w83977af_dma_write(struct w83977af_ir *self, int iobase)
set_dma_addr(self->io.dma, isa_virt_to_bus(self->tx_buff.data)); set_dma_addr(self->io.dma, isa_virt_to_bus(self->tx_buff.data));
set_dma_count(self->io.dma, self->tx_buff.len); set_dma_count(self->io.dma, self->tx_buff.len);
#else #else
setup_dma(self->io.dma, self->tx_buff.data, self->tx_buff.len, irda_setup_dma(self->io.dma, self->tx_buff.data, self->tx_buff.len,
DMA_MODE_WRITE); DMA_MODE_WRITE);
#endif #endif
self->io.direction = IO_XMIT; self->io.direction = IO_XMIT;
...@@ -768,8 +768,8 @@ int w83977af_dma_receive(struct w83977af_ir *self) ...@@ -768,8 +768,8 @@ int w83977af_dma_receive(struct w83977af_ir *self)
set_dma_addr(self->io.dma, isa_virt_to_bus(self->rx_buff.data)); set_dma_addr(self->io.dma, isa_virt_to_bus(self->rx_buff.data));
set_dma_count(self->io.dma, self->rx_buff.truesize); set_dma_count(self->io.dma, self->rx_buff.truesize);
#else #else
setup_dma(self->io.dma, self->rx_buff.data, self->rx_buff.truesize, irda_setup_dma(self->io.dma, self->rx_buff.data, self->rx_buff.truesize,
DMA_MODE_READ); DMA_MODE_READ);
#endif #endif
/* /*
* Reset Rx FIFO. This will also flush the ST_FIFO, it's very * Reset Rx FIFO. This will also flush the ST_FIFO, it's very
......
...@@ -233,7 +233,7 @@ dongle_t *irda_device_dongle_init(struct net_device *dev, int type); ...@@ -233,7 +233,7 @@ dongle_t *irda_device_dongle_init(struct net_device *dev, int type);
int irda_device_dongle_cleanup(dongle_t *dongle); int irda_device_dongle_cleanup(dongle_t *dongle);
#ifdef CONFIG_ISA #ifdef CONFIG_ISA
void setup_dma(int channel, char *buffer, int count, int mode); void irda_setup_dma(int channel, char *buffer, int count, int mode);
#endif #endif
void irda_task_delete(struct irda_task *task); void irda_task_delete(struct irda_task *task);
......
...@@ -557,7 +557,7 @@ int irda_device_set_mode(struct net_device* dev, int mode) ...@@ -557,7 +557,7 @@ int irda_device_set_mode(struct net_device* dev, int mode)
* Setup the DMA channel. Commonly used by ISA FIR drivers * Setup the DMA channel. Commonly used by ISA FIR drivers
* *
*/ */
void setup_dma(int channel, char *buffer, int count, int mode) void irda_setup_dma(int channel, char *buffer, int count, int mode)
{ {
unsigned long flags; unsigned long flags;
...@@ -572,4 +572,5 @@ void setup_dma(int channel, char *buffer, int count, int mode) ...@@ -572,4 +572,5 @@ void setup_dma(int channel, char *buffer, int count, int mode)
release_dma_lock(flags); release_dma_lock(flags);
} }
EXPORT_SYMBOL(irda_setup_dma);
#endif #endif
...@@ -168,9 +168,6 @@ EXPORT_SYMBOL(async_unwrap_char); ...@@ -168,9 +168,6 @@ EXPORT_SYMBOL(async_unwrap_char);
EXPORT_SYMBOL(irda_calc_crc16); EXPORT_SYMBOL(irda_calc_crc16);
EXPORT_SYMBOL(irda_crc16_table); EXPORT_SYMBOL(irda_crc16_table);
EXPORT_SYMBOL(irda_start_timer); EXPORT_SYMBOL(irda_start_timer);
#ifdef CONFIG_ISA
EXPORT_SYMBOL(setup_dma);
#endif
EXPORT_SYMBOL(infrared_mode); EXPORT_SYMBOL(infrared_mode);
#ifdef CONFIG_IRTTY #ifdef CONFIG_IRTTY
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment