diff options
author | 2002-03-04 22:39:35 +0000 | |
---|---|---|
committer | 2002-03-04 22:39:35 +0000 | |
commit | 23e06dd39e0e455f0aa97857687dd3cf72510c1c (patch) | |
tree | e7c6e377b8714316bc886df8ab1f889fc2e8d0a2 | |
parent | DES_LONG as non-int is just RIDICULOUS (diff) | |
download | wireguard-openbsd-23e06dd39e0e455f0aa97857687dd3cf72510c1c.tar.xz wireguard-openbsd-23e06dd39e0e455f0aa97857687dd3cf72510c1c.zip |
21140 support for dc isn't reliable enough for it to win over dc.
dc doesn't fit on the alpha ramdisk, so let de win in all cases.
-rw-r--r-- | sys/dev/pci/if_dc_pci.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/if_dc_pci.c b/sys/dev/pci/if_dc_pci.c index 3f5c37337ab..23127a3823c 100644 --- a/sys/dev/pci/if_dc_pci.c +++ b/sys/dev/pci/if_dc_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_dc_pci.c,v 1.25 2002/02/17 05:27:39 nate Exp $ */ +/* $OpenBSD: if_dc_pci.c,v 1.26 2002/03/04 22:39:35 nate Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -121,6 +121,10 @@ dc_pci_match(parent, match, aux) struct dc_type *t; if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_DEC && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_DEC_21140) + return (1); + + if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_DEC && PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_DEC_21142 && PCI_REVISION(pa->pa_class) == 0x21) return (1); @@ -128,7 +132,11 @@ dc_pci_match(parent, match, aux) for (t = dc_devs; t->dc_vid != 0; t++) { if ((PCI_VENDOR(pa->pa_id) == t->dc_vid) && (PCI_PRODUCT(pa->pa_id) == t->dc_did)) { +#ifdef __alpha__ + return (1); +#else return (2); +#endif } } |