diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-02-05 17:18:34 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-02-05 17:18:34 +0000 |
commit | b2e4fb64f5edda956ef4b25a0e437b290093271f (patch) | |
tree | 98c979aa74d2cc5c94cf12b5dde6f88b4ca827f1 /sys/arch | |
parent | a319e76534731ba50e876d1a47f5db74e9fb6659 (diff) |
Sigh. Another horrible abuse in this file..
When checking if this is a pci-eisa bridge check the VENDOR too, don't just
assume that no other vendor will do a sia with product id
PCI_PRODUCT_INTEL_PCEB.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/pci/sio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/alpha/pci/sio.c b/sys/arch/alpha/pci/sio.c index 45178486460..4779286f950 100644 --- a/sys/arch/alpha/pci/sio.c +++ b/sys/arch/alpha/pci/sio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio.c,v 1.18 2001/02/05 17:14:40 art Exp $ */ +/* $OpenBSD: sio.c,v 1.19 2001/02/05 17:18:33 art Exp $ */ /* $NetBSD: sio.c,v 1.15 1996/12/05 01:39:36 cgd Exp $ */ /* @@ -153,7 +153,8 @@ sioattach(parent, self, aux) sc->sc_iot = pa->pa_iot; sc->sc_memt = pa->pa_memt; - sc->sc_haseisa = (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_INTEL_PCEB); + sc->sc_haseisa = (PCI_VENDOR(pa->pa_id) == PC_VENDOR_INTEL && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_INTEL_PCEB); #ifdef EVCNT_COUNTERS evcnt_attach(&sc->sc_dv, "intr", &sio_intr_evcnt); |