summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-12-28 18:26:54 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-12-28 18:26:54 +0000
commit0d3ada2a3b2958881ecf324c5915491b5fe23281 (patch)
tree1c41b65349fb500d14cacd39eb24467e8839f92e /sys/dev/pci
parentb6e5d760f9a8b5c340e827e8afd205a642367933 (diff)
Remove confusion between "raw" and "swizzled" interrupt pins. Remove some
#ifdef __i386__ code that can go now things have been cleaned up.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index f929ac35135..45421372d19 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.58 2008/06/13 08:45:50 deraadt Exp $ */
+/* $OpenBSD: pci.c,v 1.59 2008/12/28 18:26:53 kettenis Exp $ */
/* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */
/*
@@ -291,16 +291,6 @@ pci_probe_device(struct pci_softc *sc, pcitag_t tag,
on broken hardware. <csapuntz@stanford.edu> */
pa.pa_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED;
-#ifdef __i386__
- /*
- * on i386 we really need to know the device tag
- * and not the pci bridge tag, in intr_map
- * to be able to program the device and the
- * pci interrupt router.
- */
- pa.pa_intrtag = tag;
- pa.pa_intrswiz = 0;
-#else
if (sc->sc_bridgetag == NULL) {
pa.pa_intrswiz = 0;
pa.pa_intrtag = tag;
@@ -308,7 +298,6 @@ pci_probe_device(struct pci_softc *sc, pcitag_t tag,
pa.pa_intrswiz = sc->sc_intrswiz + device;
pa.pa_intrtag = sc->sc_intrtag;
}
-#endif
intr = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);