diff options
author | Matthew Leach <matthew@mattleach.net> | 2012-12-10 04:12:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-10 15:46:27 -0500 |
commit | b146ecd6b5589f4524090cad4b55ee439c6a4925 (patch) | |
tree | 2c96cec8a59a5df885b1d172d95ae68060a08514 | |
parent | daadaf6f69c4e26ceb421f2b96eade3809260c7f (diff) |
net: 8390: use io{read,write}*_rep accessors
The {read,write}s{b,w,l} operations are not defined by all
architectures and are being removed from the asm-generic/io.h
interface.
This patch replaces the usage of these string functions in the 8390
accessors with io{read,write}{8,16,32}_rep calls instead.
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Ben Herrenschmidt <benh@kernel.crashing.org>
Cc: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: Matthew Leach <matthew@mattleach.net>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/8390/ax88796.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/ethernet/8390/ax88796.c b/drivers/net/ethernet/8390/ax88796.c index 203ff9dccadb..0338352bc036 100644 --- a/drivers/net/ethernet/8390/ax88796.c +++ b/drivers/net/ethernet/8390/ax88796.c | |||
@@ -191,11 +191,11 @@ static void ax_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, | |||
191 | ei_outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); | 191 | ei_outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); |
192 | 192 | ||
193 | if (ei_local->word16) | 193 | if (ei_local->word16) |
194 | readsw(nic_base + NE_DATAPORT, hdr, | 194 | ioread16_rep(nic_base + NE_DATAPORT, hdr, |
195 | sizeof(struct e8390_pkt_hdr) >> 1); | 195 | sizeof(struct e8390_pkt_hdr) >> 1); |
196 | else | 196 | else |
197 | readsb(nic_base + NE_DATAPORT, hdr, | 197 | ioread8_rep(nic_base + NE_DATAPORT, hdr, |
198 | sizeof(struct e8390_pkt_hdr)); | 198 | sizeof(struct e8390_pkt_hdr)); |
199 | 199 | ||
200 | ei_outb(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ | 200 | ei_outb(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ |
201 | ei_local->dmaing &= ~0x01; | 201 | ei_local->dmaing &= ~0x01; |
@@ -237,12 +237,12 @@ static void ax_block_input(struct net_device *dev, int count, | |||
237 | ei_outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); | 237 | ei_outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); |
238 | 238 | ||
239 | if (ei_local->word16) { | 239 | if (ei_local->word16) { |
240 | readsw(nic_base + NE_DATAPORT, buf, count >> 1); | 240 | ioread16_rep(nic_base + NE_DATAPORT, buf, count >> 1); |
241 | if (count & 0x01) | 241 | if (count & 0x01) |
242 | buf[count-1] = ei_inb(nic_base + NE_DATAPORT); | 242 | buf[count-1] = ei_inb(nic_base + NE_DATAPORT); |
243 | 243 | ||
244 | } else { | 244 | } else { |
245 | readsb(nic_base + NE_DATAPORT, buf, count); | 245 | ioread8_rep(nic_base + NE_DATAPORT, buf, count); |
246 | } | 246 | } |
247 | 247 | ||
248 | ei_local->dmaing &= ~1; | 248 | ei_local->dmaing &= ~1; |
@@ -286,9 +286,9 @@ static void ax_block_output(struct net_device *dev, int count, | |||
286 | 286 | ||
287 | ei_outb(E8390_RWRITE+E8390_START, nic_base + NE_CMD); | 287 | ei_outb(E8390_RWRITE+E8390_START, nic_base + NE_CMD); |
288 | if (ei_local->word16) | 288 | if (ei_local->word16) |
289 | writesw(nic_base + NE_DATAPORT, buf, count >> 1); | 289 | iowrite16_rep(nic_base + NE_DATAPORT, buf, count >> 1); |
290 | else | 290 | else |
291 | writesb(nic_base + NE_DATAPORT, buf, count); | 291 | iowrite8_rep(nic_base + NE_DATAPORT, buf, count); |
292 | 292 | ||
293 | dma_start = jiffies; | 293 | dma_start = jiffies; |
294 | 294 | ||