diff options
author | 2006-05-16 02:32:39 +0000 | |
---|---|---|
committer | 2006-05-16 02:32:39 +0000 | |
commit | 5fabca521a7ce89a3253b4977266b5bc29df9a5f (patch) | |
tree | f0e7b0099fef0b2af1a56de16e779a665a38d918 /sys/dev/pci/if_rl_pci.c | |
parent | consider re(4) as a possible 8139 chipset. (diff) | |
download | wireguard-openbsd-5fabca521a7ce89a3253b4977266b5bc29df9a5f.tar.xz wireguard-openbsd-5fabca521a7ce89a3253b4977266b5bc29df9a5f.zip |
attach 8139's capable of C+ mode to the re(4) driver, instead of the rl(4)
driver.
Diffstat (limited to 'sys/dev/pci/if_rl_pci.c')
-rw-r--r-- | sys/dev/pci/if_rl_pci.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/pci/if_rl_pci.c b/sys/dev/pci/if_rl_pci.c index 59a8b7ef875..32c82485fb5 100644 --- a/sys/dev/pci/if_rl_pci.c +++ b/sys/dev/pci/if_rl_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rl_pci.c,v 1.12 2006/02/24 00:26:16 brad Exp $ */ +/* $OpenBSD: if_rl_pci.c,v 1.13 2006/05/16 02:32:39 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -96,7 +96,6 @@ const struct pci_matchid rl_pci_devices[] = { { PCI_VENDOR_DLINK, PCI_PRODUCT_DLINK_530TXPLUS }, { PCI_VENDOR_NORTEL, PCI_PRODUCT_NORTEL_BS21 }, { PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8129 }, - { PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8139 }, { PCI_VENDOR_TTTECH, PCI_PRODUCT_TTTECH_MC322 } }; @@ -106,6 +105,13 @@ rl_pci_match(parent, match, aux) void *match; void *aux; { + struct pci_attach_args *pa = aux; + + if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_REALTEK && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RT8139 && + PCI_REVISION(pa->pa_class) == 0x10) + return (1); + return (pci_matchbyid((struct pci_attach_args *)aux, rl_pci_devices, sizeof(rl_pci_devices)/sizeof(rl_pci_devices[0]))); } |