b1e0c7d657
Add newline to `Interface disabled' printf and clean up formatting. Change packet read/write code to align all reads and writes into memory to an appropriate boundary for the I/O size. This also fixes a bug where the trailing unaligned bytes (1-3 of them) would be put in an additional mbuf even if there was enough space for them in the one we were currently filling. This has been tested on a 3c905 in an Alpha (32-bit I/O, alignment required), a 3c905 in an i386 (32-bit I/O, alignment not required) and a 3c509 in an i386 (16-bit I/O, alignment not required). It should be tested on a 3c509 in an Alpha with an ISA bus, if somone can manage to get the two items together. There are still some bugs in the driver relating to initialisation; on my Alpha with a 3c905 you need to do an `ifconfig ep0 down; ifconfig ep0 up' after the initial ifconfig to make it start working. Apparently there are also some problems with a 3c579 in an i386, although a 3c905 in an i386 works just fine. |
||
---|---|---|
bin | ||
distrib | ||
etc | ||
games | ||
gnu | ||
include | ||
lib | ||
libexec | ||
regress | ||
sbin | ||
share | ||
sys | ||
usr.bin | ||
usr.sbin | ||
Makefile |