summaryrefslogtreecommitdiff
path: root/sys/dev/pci/iop_pci.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/iop_pci.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/iop_pci.c')
-rw-r--r--sys/dev/pci/iop_pci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/iop_pci.c b/sys/dev/pci/iop_pci.c
index 7b3b9f8f4cc..3d834945d97 100644
--- a/sys/dev/pci/iop_pci.c
+++ b/sys/dev/pci/iop_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iop_pci.c,v 1.2 2001/06/26 06:05:55 niklas Exp $ */
+/* $OpenBSD: iop_pci.c,v 1.3 2001/08/25 10:13:29 art Exp $ */
/* $NetBSD: iop_pci.c,v 1.4 2001/03/20 13:21:00 ad Exp $ */
/*-
@@ -139,8 +139,7 @@ iop_pci_attach(struct device *parent, struct device *self, void *aux)
reg | PCI_COMMAND_MASTER_ENABLE);
/* Map and establish the interrupt. XXX IPL_BIO. */
- if (pci_intr_map(pa->pa_pc, pa->pa_intrtag, pa->pa_intrpin,
- pa->pa_intrline, &ih)) {
+ if (pci_intr_map(pa, &ih)) {
printf("can't map interrupt\n");
return;
}