diff options
author | harti <harti@FreeBSD.org> | 2003-08-05 12:02:25 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-08-05 12:02:25 +0000 |
commit | d982a67297f3bd4927dc6faccd2056d54fe339eb (patch) | |
tree | 59516ac529732d935b6d4536ee41627cce03371f /sys/dev/en/if_en_pci.c | |
parent | 93e075cf7ad1df05ef58d1fc49abc48e4340661c (diff) | |
download | FreeBSD-src-d982a67297f3bd4927dc6faccd2056d54fe339eb.zip FreeBSD-src-d982a67297f3bd4927dc6faccd2056d54fe339eb.tar.gz |
Make the en(4) driver more like the other ATM drivers. This is the
preparation for supporting the OPENVCC and CLOSEVCC ioctls which
are needed for ng_atm. This required some re-organisation of the code
(mostly converting array indexes to pointers). This also gives us
an array of open vccs that will help in using the generic GETVCCS handler.
Diffstat (limited to 'sys/dev/en/if_en_pci.c')
-rw-r--r-- | sys/dev/en/if_en_pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/en/if_en_pci.c b/sys/dev/en/if_en_pci.c index b44bcdb..47274c4 100644 --- a/sys/dev/en/if_en_pci.c +++ b/sys/dev/en/if_en_pci.c @@ -157,6 +157,7 @@ adp_busreset(void *v) static int en_pci_probe(device_t dev) { + switch (pci_get_vendor(dev)) { case PCI_VENDOR_EFFICIENTNETS: @@ -482,4 +483,4 @@ static driver_t en_driver = { static devclass_t en_devclass; -DRIVER_MODULE(en, pci, en_driver, en_devclass, 0, 0); +DRIVER_MODULE(en, pci, en_driver, en_devclass, en_modevent, 0); |