summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sk.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-10-14 18:51:30 +0000
committerjhb <jhb@FreeBSD.org>2005-10-14 18:51:30 +0000
commitf63b585ffb04635ade225be42c5ca855a3eb7c12 (patch)
tree84fbefd69ba2e386c760aa0c23598b002628fdd8 /sys/pci/if_sk.c
parentebae8f6ee41b833c83a2aa9705df852e74c55ed2 (diff)
downloadFreeBSD-src-f63b585ffb04635ade225be42c5ca855a3eb7c12.zip
FreeBSD-src-f63b585ffb04635ade225be42c5ca855a3eb7c12.tar.gz
Only allow the sk(4) driver to attach to revision 2 of the LinkSys EG1032
cards and teach the re(4) driver to attach to revision 3 cards. Submitted by: Fredrik Lindberg fli+freebsd-current at shapeshifter dot se MFC after: 2 weeks Reviewed by: imp, mdodd
Diffstat (limited to 'sys/pci/if_sk.c')
-rw-r--r--sys/pci/if_sk.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/pci/if_sk.c b/sys/pci/if_sk.c
index d83630e..3b89e50 100644
--- a/sys/pci/if_sk.c
+++ b/sys/pci/if_sk.c
@@ -1312,6 +1312,17 @@ skc_probe(dev)
while(t->sk_name != NULL) {
if ((pci_get_vendor(dev) == t->sk_vid) &&
(pci_get_device(dev) == t->sk_did)) {
+ /*
+ * Only attach to rev. 2 of the Linksys EG1032 adapter.
+ * Rev. 3 is supported by re(4).
+ */
+ if ((t->sk_vid == VENDORID_LINKSYS) &&
+ (t->sk_did == DEVICEID_LINKSYS_EG1032) &&
+ (pci_get_subdevice(dev) !=
+ SUBDEVICEID_LINKSYS_EG1032_REV2)) {
+ t++;
+ continue;
+ }
device_set_desc(dev, t->sk_name);
return (BUS_PROBE_DEFAULT);
}
OpenPOWER on IntegriCloud