summaryrefslogtreecommitdiff
path: root/sys/dev/isa
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/isa
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/isa')
-rw-r--r--sys/dev/isa/if_ed.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/isa/if_ed.c b/sys/dev/isa/if_ed.c
index 86b5e04cc74..93b4ec1106c 100644
--- a/sys/dev/isa/if_ed.c
+++ b/sys/dev/isa/if_ed.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ed.c,v 1.46 2001/07/08 23:38:07 fgsch Exp $ */
+/* $OpenBSD: if_ed.c,v 1.47 2001/08/25 10:13:29 art Exp $ */
/* $NetBSD: if_ed.c,v 1.105 1996/10/21 22:40:45 thorpej Exp $ */
/*
@@ -514,8 +514,7 @@ ed_pci_attach(parent, self, aux)
printf("%s", sc->isa16bit ? "(16-bit)" : "(8-bit)"); /* XXX */
/* Map and establish the interrupt. */
- if (pci_intr_map(pc, pa->pa_intrtag, pa->pa_intrpin,
- pa->pa_intrline, &ih)) {
+ if (pci_intr_map(pa, &ih)) {
printf("\n%s: couldn't map interrupt\n", sc->sc_dev.dv_xname);
return;
}