summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/yds.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-08-25 10:13:28 +0000
committerart <art@openbsd.org>2001-08-25 10:13:28 +0000
commitfd7253150f81711547839eee9679d76201e57873 (patch)
tree044c160d82a6f785abec3f6b7e376dff15e7191f /sys/dev/pci/yds.c
parentCasting of lhs, is not what you think it is. (diff)
downloadwireguard-openbsd-fd7253150f81711547839eee9679d76201e57873.tar.xz
wireguard-openbsd-fd7253150f81711547839eee9679d76201e57873.zip
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/yds.c')
-rw-r--r--sys/dev/pci/yds.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/yds.c b/sys/dev/pci/yds.c
index 7aae339ec67..d0e86811335 100644
--- a/sys/dev/pci/yds.c
+++ b/sys/dev/pci/yds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yds.c,v 1.3 2001/06/12 15:40:33 niklas Exp $ */
+/* $OpenBSD: yds.c,v 1.4 2001/08/25 10:13:30 art Exp $ */
/* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */
/*
@@ -663,8 +663,7 @@ yds_attach(parent, self, aux)
}
/* 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("%s: couldn't map interrupt\n", sc->sc_dev.dv_xname);
return;
}