From 848240f5546fd137d1d1367561af5b5eb7cba1b5 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 4 Mar 2002 22:39:36 +0000 Subject: 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. --- sys/dev/pci/if_dc_pci.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sys/dev') 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 @@ -120,6 +120,10 @@ dc_pci_match(parent, match, aux) struct pci_attach_args *pa = (struct pci_attach_args *)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) @@ -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 } } -- cgit v1.2.3