diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-22 20:08:56 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-22 20:08:56 +0000 |
commit | 77eaee009014496bdbf1345275d1633fc0ce04ba (patch) | |
tree | 2e0a0e0f9814732d46b43619c6b7fd29412cd9a8 /sys/arch/sparc64/dev/pci_machdep.c | |
parent | 83eae351bc8df067f274aee75b7e120dcd17cd24 (diff) |
Fix interrupt establishing.
Diffstat (limited to 'sys/arch/sparc64/dev/pci_machdep.c')
-rw-r--r-- | sys/arch/sparc64/dev/pci_machdep.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/pci_machdep.c b/sys/arch/sparc64/dev/pci_machdep.c index 46c752bcdaf..53e33734932 100644 --- a/sys/arch/sparc64/dev/pci_machdep.c +++ b/sys/arch/sparc64/dev/pci_machdep.c @@ -396,11 +396,12 @@ pci_conf_write(pc, tag, reg, data) * XXX: how does this deal with multiple interrupts for a device? */ int -pci_intr_map(pa, ihp) - struct pci_attach_args *pa; +pci_intr_map(pc, tag, pin, line, ihp) + pci_chipset_tag_t pc; + pcitag_t tag; + int pin, line; pci_intr_handle_t *ihp; { - pcitag_t tag = pa->pa_tag; int interrupts; int len, node = PCITAG_NODE(tag); char devtype[30]; @@ -461,12 +462,13 @@ pci_intr_evcnt(pc, ih) } void * -pci_intr_establish(pc, ih, level, func, arg) +pci_intr_establish(pc, ih, level, func, arg, what) pci_chipset_tag_t pc; pci_intr_handle_t ih; int level; int (*func) __P((void *)); void *arg; + char *what; { void *cookie; struct psycho_pbm *pp = (struct psycho_pbm *)pc->cookie; |