Andrew Boyd(deleted)
|
RE: Porting guide from io-net to io-pkt (and back!) ?
|
Andrew Boyd(deleted)
11/25/2008 5:09 PM
post17316
|
RE: Porting guide from io-net to io-pkt (and back!) ?
> Is there a recommended 'good' driver
To compare io-net vs io-pkt:
for PCI: i82544
for non-PCI: mpc85xx
Note that io-net and io-pkt drivers are not identical -
since the source was split off for io-pkt, there may
have been substantial changes to the driver.
This is far more for the i82544 than the mpc85xx.
--
aboyd
|
|
|
Andrew Boyd(deleted)
|
RE: Porting guide from io-net to io-pkt (and back!) ?
|
Andrew Boyd(deleted)
11/25/2008 5:13 PM
post17317
|
RE: Porting guide from io-net to io-pkt (and back!) ?
Note 1) Both of the i82544 and mpc85xx drivers
are gige, and descriptor-based. I cannot imagine
why anyone would port a driver to io-pkt that
was only 10/100, or had a shared-memory packet
architecture.
Note 2) rather uniquely, the i82544 hardware
has a reliable link state change interrupt,
and thusly does not poll the PHY the way almost
all the other drivers do (like the mpc85xx).
For polling the PHY, we use our own tried and
true libdrvr (source in the io-pkt tree), not
the BSD mii code, although there is code to
hook into just enough of that stuff to make
the ifconfig media stuff work - see bsd_media.c
for any io-pkt driver, as to how to do this.
--
aboyd
|
|
|