Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342067
b: refs/heads/master
c: b146ecd
h: refs/heads/master
i:
  342065: 26b2aae
  342063: 8c10581
v: v3
  • Loading branch information
Matthew Leach authored and David S. Miller committed Dec 10, 2012
1 parent bd71280 commit e8cb24e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: daadaf6f69c4e26ceb421f2b96eade3809260c7f
refs/heads/master: b146ecd6b5589f4524090cad4b55ee439c6a4925
16 changes: 8 additions & 8 deletions trunk/drivers/net/ethernet/8390/ax88796.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ static void ax_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
ei_outb(E8390_RREAD+E8390_START, nic_base + NE_CMD);

if (ei_local->word16)
readsw(nic_base + NE_DATAPORT, hdr,
sizeof(struct e8390_pkt_hdr) >> 1);
ioread16_rep(nic_base + NE_DATAPORT, hdr,
sizeof(struct e8390_pkt_hdr) >> 1);
else
readsb(nic_base + NE_DATAPORT, hdr,
sizeof(struct e8390_pkt_hdr));
ioread8_rep(nic_base + NE_DATAPORT, hdr,
sizeof(struct e8390_pkt_hdr));

ei_outb(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */
ei_local->dmaing &= ~0x01;
Expand Down Expand Up @@ -237,12 +237,12 @@ static void ax_block_input(struct net_device *dev, int count,
ei_outb(E8390_RREAD+E8390_START, nic_base + NE_CMD);

if (ei_local->word16) {
readsw(nic_base + NE_DATAPORT, buf, count >> 1);
ioread16_rep(nic_base + NE_DATAPORT, buf, count >> 1);
if (count & 0x01)
buf[count-1] = ei_inb(nic_base + NE_DATAPORT);

} else {
readsb(nic_base + NE_DATAPORT, buf, count);
ioread8_rep(nic_base + NE_DATAPORT, buf, count);
}

ei_local->dmaing &= ~1;
Expand Down Expand Up @@ -286,9 +286,9 @@ static void ax_block_output(struct net_device *dev, int count,

ei_outb(E8390_RWRITE+E8390_START, nic_base + NE_CMD);
if (ei_local->word16)
writesw(nic_base + NE_DATAPORT, buf, count >> 1);
iowrite16_rep(nic_base + NE_DATAPORT, buf, count >> 1);
else
writesb(nic_base + NE_DATAPORT, buf, count);
iowrite8_rep(nic_base + NE_DATAPORT, buf, count);

dma_start = jiffies;

Expand Down

0 comments on commit e8cb24e

Please sign in to comment.