summaryrefslogtreecommitdiff
path: root/sys/dev/pci/siop_pci_common.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-25 10:13:31 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-25 10:13:31 +0000
commit17f1f0da9189e82c93381a61aace686d52339576 (patch)
treed816adac02b9344761cb3843f9fba856c754d419 /sys/dev/pci/siop_pci_common.c
parenteb53c59ffd7697d190539b5f500a59265109c9a1 (diff)
Change pci_intr_map to take pci_attach_args as an argument.
All callers actually took all arguments to pci_intr_map from pci_attach_args structs, so this simplifies code. This also allows more complicated interrupt assignment schemes like the one on sparc64. This makes sparc64 pci interrupts work. Inspired by the same change in NetBSD.
Diffstat (limited to 'sys/dev/pci/siop_pci_common.c')
-rw-r--r--sys/dev/pci/siop_pci_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/siop_pci_common.c b/sys/dev/pci/siop_pci_common.c
index b3695fde9b8..16f2d16878e 100644
--- a/sys/dev/pci/siop_pci_common.c
+++ b/sys/dev/pci/siop_pci_common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siop_pci_common.c,v 1.6 2001/06/12 15:40:33 niklas Exp $ */
+/* $OpenBSD: siop_pci_common.c,v 1.7 2001/08/25 10:13:30 art Exp $ */
/* $NetBSD: siop_pci_common.c,v 1.6 2001/01/10 15:50:20 thorpej Exp $ */
/*
@@ -267,8 +267,7 @@ siop_pci_attach_common(sc, pa)
sc->siop.features &= ~SF_CHIP_RAM;
}
- if (pci_intr_map(pa->pa_pc, pa->pa_intrtag, pa->pa_intrpin,
- pa->pa_intrline, &intrhandle)) {
+ if (pci_intr_map(pa, &intrhandle)) {
printf("\n%s: couldn't map interrupt\n",
sc->siop.sc_dev.dv_xname);
return 0;