Commit Graph

4 Commits

Author SHA1 Message Date
bouyer 194fbd836f Use a properly zero'd buffer to pad the packet to ETHER_MIN_LEN-ETHER_CRC_LEN 2003-01-15 22:35:47 +00:00
thorpej 2861457faf Fix a typo in htosonic32(), pointed out by soda@netbsd.org. 2001-07-06 16:20:07 +00:00
thorpej 5c0f65ea82 Do a little manual CSE, taking unneeded comparisons out of loops,
and shrinking the object code somewhat.  On an R4400:

Before:
text    data    bss     dec     hex     filename
16248   16      0       16264   3f88    dp83932.o

Before:
text    data    bss     dec     hex     filename
14424   16      0       14440   3868    dp83932.o
2001-07-05 15:02:27 +00:00
thorpej b7ea2efc25 A new DP83932 ``SONIC'' driver, which uses bus_dma(9) and does I/O
directly to mbufs.  Handles both 32-bit and 16-bit, big- and little-
endian configurations of the chip (we could squeeze out some conditionals
yet, though).
2001-07-05 14:37:41 +00:00