diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-25 10:13:31 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-25 10:13:31 +0000 |
commit | 17f1f0da9189e82c93381a61aace686d52339576 (patch) | |
tree | d816adac02b9344761cb3843f9fba856c754d419 /sys/dev/pci/neo.c | |
parent | eb53c59ffd7697d190539b5f500a59265109c9a1 (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/neo.c')
-rw-r--r-- | sys/dev/pci/neo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/neo.c b/sys/dev/pci/neo.c index 2f6366b9240..0b1de40b593 100644 --- a/sys/dev/pci/neo.c +++ b/sys/dev/pci/neo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: neo.c,v 1.7 2001/06/18 19:27:18 deraadt Exp $ */ +/* $OpenBSD: neo.c,v 1.8 2001/08/25 10:13:30 art Exp $ */ /* * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> @@ -576,8 +576,7 @@ neo_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("\n%s: couldn't map interrupt\n", sc->dev.dv_xname); return; } |