/[hurd]/gnumach/linux/src/drivers/net/ne2k-pci.c
ViewVC logotype

Diff of /gnumach/linux/src/drivers/net/ne2k-pci.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tb, Mon Apr 26 05:52:27 1999 UTC revision 1.1.4.1 by ams, Thu Jun 2 18:52:39 2005 UTC
# Line 542  ne_block_input(struct device *dev, int c Line 542  ne_block_input(struct device *dev, int c
542          if (count & 3) {          if (count & 3) {
543                  buf += count & ~3;                  buf += count & ~3;
544                  if (count & 2)                  if (count & 2)
545                          *((u16*)buf)++ = inw(NE_BASE + NE_DATAPORT);                          {
546                                    *buf = *(u16 *) buf + 1;
547                                    *buf = inw(NE_BASE + NE_DATAPORT);
548                            }
549                  if (count & 1)                  if (count & 1)
550                          *buf = inb(NE_BASE + NE_DATAPORT);                          *buf = inb(NE_BASE + NE_DATAPORT);
551          }          }
# Line 605  ne_block_output(struct device *dev, int Line 608  ne_block_output(struct device *dev, int
608          if (count & 3) {          if (count & 3) {
609                  buf += count & ~3;                  buf += count & ~3;
610                  if (count & 2)                  if (count & 2)
611                          outw(*((u16*)buf)++, NE_BASE + NE_DATAPORT);                          outw(*buf++, NE_BASE + NE_DATAPORT);
612    
613          }          }
614  #else  #else
615          outsw(NE_BASE + NE_DATAPORT, buf, count>>1);          outsw(NE_BASE + NE_DATAPORT, buf, count>>1);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.4.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26