summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2006-08-31 17:05:51 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2006-08-31 17:05:51 +0000
commit560833d54c4c7697b2fc00d22f764c0a15e88ed6 (patch)
tree2696023b40f5c45a6384a9f11e147981427fc68f /sys/dev/pci
parent959f1496acad2d98ae5994ba97f05a74f717fadd (diff)
Do proper chipset identification.
ok deraadt@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_pgt_pci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_pgt_pci.c b/sys/dev/pci/if_pgt_pci.c
index cb95a7b7bb1..4ae79d727e2 100644
--- a/sys/dev/pci/if_pgt_pci.c
+++ b/sys/dev/pci/if_pgt_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pgt_pci.c,v 1.4 2006/08/31 09:26:14 mglocker Exp $ */
+/* $OpenBSD: if_pgt_pci.c,v 1.5 2006/08/31 17:05:50 mglocker Exp $ */
/*
* Copyright (c) 2006 Marcus Glocker <mglocker@openbsd.org>
@@ -101,6 +101,10 @@ pgt_pci_attach(struct device *parent, struct device *self, void *aux)
sc->sc_dmat = pa->pa_dmat;
psc->sc_pc = pa->pa_pc;
+ /* remember chipset */
+ if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_INTERSIL_ISL3877)
+ sc->sc_flags |= SC_ISL3877;
+
/* map control / status registers */
error = pci_mapreg_map(pa, PGT_PCI_BAR0,
PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT, 0,