diff options
author | Nathan Binkert <nate@cvs.openbsd.org> | 2002-03-04 22:39:36 +0000 |
---|---|---|
committer | Nathan Binkert <nate@cvs.openbsd.org> | 2002-03-04 22:39:36 +0000 |
commit | 848240f5546fd137d1d1367561af5b5eb7cba1b5 (patch) | |
tree | 053c7102eddbd99420b01a53c421d54b0e3a7ba6 /sys/dev | |
parent | 1667d963e559cc7aa58d95bf9fbeb60cc03e8c97 (diff) |
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.
Diffstat (limited to 'sys/dev')
-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 } } |