From 17f1f0da9189e82c93381a61aace686d52339576 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Sat, 25 Aug 2001 10:13:31 +0000 Subject: 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. --- sys/arch/mvmeppc/pci/pci_machdep.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch/mvmeppc/pci') diff --git a/sys/arch/mvmeppc/pci/pci_machdep.h b/sys/arch/mvmeppc/pci/pci_machdep.h index 9bc610d1bcc..8407ad1dae9 100644 --- a/sys/arch/mvmeppc/pci/pci_machdep.h +++ b/sys/arch/mvmeppc/pci/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.2 2001/08/17 22:26:58 mickey Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.3 2001/08/25 10:13:29 art Exp $ */ /* * Copyright (c) 1996 Carnegie-Mellon University. @@ -79,8 +79,9 @@ struct ppc_pci_chipset { (*(c)->pc_conf_read)((c)->pc_conf_v, (t), (r)) #define pci_conf_write(c, t, r, v) \ (*(c)->pc_conf_write)((c)->pc_conf_v, (t), (r), (v)) -#define pci_intr_map(c, it, ip, il, ihp) \ - (*(c)->pc_intr_map)((c)->pc_intr_v, (it), (ip), (il), (ihp)) +#define pci_intr_map(pa, ihp) \ + (*((pa)->pa_pc)->pc_intr_map)((pa)->pa_pc->pc_intr_v, \ + (pa)->pa_intrtag, (pa)->pa_intrpin, (pa)->pa_intrline, (ihp)) #define pci_intr_string(c, ih) \ (*(c)->pc_intr_string)((c)->pc_intr_v, (ih)) #define pci_intr_line(c, ih) \ -- cgit v1.2.3