diff options
author | dg <dg@FreeBSD.org> | 2000-06-18 10:26:09 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 2000-06-18 10:26:09 +0000 |
commit | 205d1fefd0b2a2a81905674902522f5267da2277 (patch) | |
tree | c43551929a176bd9dd117dbcb97129731948f436 /sys/dev/fxp/if_fxp.c | |
parent | d043bb7c6cd6a638726572d01b966ad75573a43e (diff) | |
download | FreeBSD-src-205d1fefd0b2a2a81905674902522f5267da2277.zip FreeBSD-src-205d1fefd0b2a2a81905674902522f5267da2277.tar.gz |
Added support for the i82559ER (10/100Mbps NIC for embedded applications).
Product device ID provided by: Les Biffle <les@ns3.safety.net>
Diffstat (limited to 'sys/dev/fxp/if_fxp.c')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index b5de024..d10b43a 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -491,15 +491,21 @@ fxp_ether_ioctl(ifp, cmd, data) static int fxp_probe(device_t dev) { - if ((pci_get_vendor(dev) == FXP_VENDORID_INTEL) && - (pci_get_device(dev) == FXP_DEVICEID_i82557)) { - device_set_desc(dev, "Intel EtherExpress Pro 10/100B Ethernet"); - return 0; - } - if ((pci_get_vendor(dev) == FXP_VENDORID_INTEL) && - (pci_get_device(dev) == FXP_DEVICEID_i82559)) { - device_set_desc(dev, "Intel InBusiness 10/100 Ethernet"); - return 0; + if (pci_get_vendor(dev) == FXP_VENDORID_INTEL) { + switch (pci_get_device(dev)) { + + case FXP_DEVICEID_i82557: + device_set_desc(dev, "Intel Pro 10/100B/100+ Ethernet"); + return 0; + case FXP_DEVICEID_i82559: + device_set_desc(dev, "Intel InBusiness 10/100 Ethernet"); + return 0; + case FXP_DEVICEID_i82559ER: + device_set_desc(dev, "Intel Embedded 10/100 Ethernet"); + return 0; + default: + break; + } } return ENXIO; |