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/if_wx.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/if_wx.c')
-rw-r--r-- | sys/dev/pci/if_wx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_wx.c b/sys/dev/pci/if_wx.c index 2557548b476..46c762fc025 100644 --- a/sys/dev/pci/if_wx.c +++ b/sys/dev/pci/if_wx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wx.c,v 1.14 2001/06/27 06:34:51 kjc Exp $ */ +/* $OpenBSD: if_wx.c,v 1.15 2001/08/25 10:13:29 art Exp $ */ /* * Principal Author: Matthew Jacob * Copyright (c) 1999, 2001 by Traakan Software @@ -261,8 +261,7 @@ wx_attach(struct device *parent, struct device *self, void *aux) /* * Allocate our interrupt. */ - if (pci_intr_map(pc, pa->pa_intrtag, pa->pa_intrpin, - pa->pa_intrline, &ih)) { + if (pci_intr_map(pa, &ih)) { #ifndef __OpenBSD__ printf("%s: couldn't map interrupt\n", sc->wx_name); #else |