[PATCH] : ir256_w83977af_bus_to_virt.diff

Jean Tourrilhes (jt@bougret.hpl.hp.com)
Tue, 2 Apr 2002 18:18:26 -0800


ir256_w83977af_bus_to_virt.diff :
-------------------------------
o [CRITICA] Fix w83977af_ir FIR drivers for new DMA API
<PCI FIR drivers are still broken and need fixing>

diff -u -p linux/drivers/net/irda/w83977af_ir.d5.c linux/drivers/net/irda/w83977af_ir.c
--- linux/drivers/net/irda/w83977af_ir.d5.c Tue Mar 5 18:44:13 2002
+++ linux/drivers/net/irda/w83977af_ir.c Tue Mar 5 18:46:00 2002
@@ -612,7 +612,7 @@ static void w83977af_dma_write(struct w8
disable_dma(self->io.dma);
clear_dma_ff(self->io.dma);
set_dma_mode(self->io.dma, DMA_MODE_READ);
- set_dma_addr(self->io.dma, 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);
#else
setup_dma(self->io.dma, self->tx_buff.data, self->tx_buff.len,
@@ -770,7 +770,7 @@ int w83977af_dma_receive(struct w83977af
disable_dma(self->io.dma);
clear_dma_ff(self->io.dma);
set_dma_mode(self->io.dma, DMA_MODE_READ);
- set_dma_addr(self->io.dma, 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);
#else
setup_dma(self->io.dma, self->rx_buff.data, self->rx_buff.truesize,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/