I have recently made the PCNet driver supplied with the DDK and built a
devn-pcnet.so. When I am using the supplied driver file with RtP (dated Oct
13), all three cards are picked up and work. When I try to use the DDK
driver to load into io-net, it fails to pick up any of the three PCNet-based
cards in my PC. Further investigation reveals that the pci_device_find
function fails to find ANY devices of vid 1022, did 2000. Despite “pci”
revealing this to be the did and vid of the three cards.
Mounting the driver using -o"vid=0x1022,did=0x2000" options results in
the index 0 card being set up (as expected) but
trying -o"vid=0x1022,did=0x2000,pci=1" to get the index 1 card results in an
error on device attach. Further to this,
trying -o"vid=0x1022,did=0x2000,pci=1" as the first mount into io-net
actually mounts the index 0 card, which would explain why multiple mounts on
different pci numbers falls over.
However, when using the RtP supplied driver, multiple mounts work and
the correct indexed card is set up. Is there something fundamentally wrong
with the code or am I just missing something obvious?
Thanks in advance for any insights