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/dev/pci/if_nge.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci/if_nge.c') diff --git a/sys/dev/pci/if_nge.c b/sys/dev/pci/if_nge.c index 95a44b8bdc5..a20c83fabf1 100644 --- a/sys/dev/pci/if_nge.c +++ b/sys/dev/pci/if_nge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nge.c,v 1.7 2001/08/12 20:03:49 mickey Exp $ */ +/* $OpenBSD: if_nge.c,v 1.8 2001/08/25 10:13:29 art Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -803,8 +803,7 @@ void nge_attach(parent, self, aux) #endif DPRINTFN(5, ("pci_intr_map\n")); - if (pci_intr_map(pc, pa->pa_intrtag, pa->pa_intrpin, - pa->pa_intrline, &ih)) { + if (pci_intr_map(pa, &ih)) { printf(": couldn't map interrupt\n"); goto fail; } -- cgit v1.2.3