Pass the pci_chipset_tag_t to sio_intr_setup(). XXX This code should be

rearranged so that other non-PCI-but-in-all-other-ways-ISA-PIC-like
devices can share code.
This commit is contained in:
thorpej 1998-04-14 22:20:59 +00:00
parent a95c0ac15a
commit 4c01c3c48e
5 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_2100_a50.c,v 1.18 1997/09/02 20:10:28 thorpej Exp $ */
/* $NetBSD: pci_2100_a50.c,v 1.19 1998/04/14 22:20:59 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -29,7 +29,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pci_2100_a50.c,v 1.18 1997/09/02 20:10:28 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pci_2100_a50.c,v 1.19 1998/04/14 22:20:59 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -87,7 +87,7 @@ pci_2100_a50_pickintr(acp)
pc->pc_intr_disestablish = dec_2100_a50_intr_disestablish;
#if NSIO
sio_intr_setup(iot);
sio_intr_setup(pc, iot);
set_iointr(&sio_iointr);
#else
panic("pci_2100_a50_pickintr: no I/O interrupt handler (no sio)");

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_axppci_33.c,v 1.16 1997/09/02 20:10:29 thorpej Exp $ */
/* $NetBSD: pci_axppci_33.c,v 1.17 1998/04/14 22:20:59 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -29,7 +29,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pci_axppci_33.c,v 1.16 1997/09/02 20:10:29 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pci_axppci_33.c,v 1.17 1998/04/14 22:20:59 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -88,7 +88,7 @@ pci_axppci_33_pickintr(lcp)
pc->pc_intr_disestablish = dec_axppci_33_intr_disestablish;
#if NSIO
sio_intr_setup(iot);
sio_intr_setup(pc, iot);
set_iointr(&sio_iointr);
#else
panic("pci_axppci_33_pickintr: no I/O interrupt handler (no sio)");

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_eb164.c,v 1.10 1997/09/02 20:10:30 thorpej Exp $ */
/* $NetBSD: pci_eb164.c,v 1.11 1998/04/14 22:20:59 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -29,7 +29,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.10 1997/09/02 20:10:30 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.11 1998/04/14 22:20:59 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -111,7 +111,7 @@ pci_eb164_pickintr(ccp)
PCI_STRAY_MAX);
#if NSIO
sio_intr_setup(iot);
sio_intr_setup(pc, iot);
eb164_intr_enable(EB164_SIO_IRQ);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_kn20aa.c,v 1.26 1997/09/02 20:10:30 thorpej Exp $ */
/* $NetBSD: pci_kn20aa.c,v 1.27 1998/04/14 22:21:00 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -29,7 +29,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pci_kn20aa.c,v 1.26 1997/09/02 20:10:30 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pci_kn20aa.c,v 1.27 1998/04/14 22:21:00 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -101,7 +101,7 @@ pci_kn20aa_pickintr(ccp)
PCI_STRAY_MAX);
#if NSIO
sio_intr_setup(iot);
sio_intr_setup(pc, iot);
kn20aa_enable_intr(KN20AA_PCEB_IRQ);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: siovar.h,v 1.6 1997/04/07 02:00:08 cgd Exp $ */
/* $NetBSD: siovar.h,v 1.7 1998/04/14 22:21:00 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -27,7 +27,7 @@
* rights to redistribute these changes.
*/
void sio_intr_setup __P((bus_space_tag_t));
void sio_intr_setup __P((pci_chipset_tag_t, bus_space_tag_t));
void sio_iointr __P((void *framep, unsigned long vec));
const char *sio_intr_string __P((void *, int));