summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci/apecs.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-05-08 21:59:43 +0000
committerdfr <dfr@FreeBSD.org>1999-05-08 21:59:43 +0000
commite4989c23fe81c5060ef3a4e0e3bb1bb4430d1a76 (patch)
treeba748fea961d917292e2b4a959796c7415efbf31 /sys/alpha/pci/apecs.c
parentd1098a6692d3c3b23bc870a491d680451c3356a7 (diff)
downloadFreeBSD-src-e4989c23fe81c5060ef3a4e0e3bb1bb4430d1a76.zip
FreeBSD-src-e4989c23fe81c5060ef3a4e0e3bb1bb4430d1a76.tar.gz
Move the declaration of the interrupt type from the driver structure
to the BUS_SETUP_INTR call.
Diffstat (limited to 'sys/alpha/pci/apecs.c')
-rw-r--r--sys/alpha/pci/apecs.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/alpha/pci/apecs.c b/sys/alpha/pci/apecs.c
index fb86dc9..9516894 100644
--- a/sys/alpha/pci/apecs.c
+++ b/sys/alpha/pci/apecs.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: apecs.c,v 1.5 1999/01/18 20:15:07 gallatin Exp $
+ * $Id: apecs.c,v 1.6 1999/04/16 21:21:38 peter Exp $
*/
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -450,8 +450,9 @@ static struct resource *apecs_alloc_resource(device_t bus, device_t child,
u_int flags);
static int apecs_release_resource(device_t bus, device_t child,
int type, int rid, struct resource *r);
-static int apecs_setup_intr(device_t dev, device_t child, struct resource *irq,
- driver_intr_t *intr, void *arg, void **cookiep);
+static int apecs_setup_intr(device_t dev, device_t child,
+ struct resource *irq, int flags,
+ driver_intr_t *intr, void *arg, void **cookiep);
static int apecs_teardown_intr(device_t dev, device_t child,
struct resource *irq, void *cookie);
@@ -474,7 +475,6 @@ static device_method_t apecs_methods[] = {
static driver_t apecs_driver = {
"apecs",
apecs_methods,
- DRIVER_TYPE_MISC,
sizeof(struct apecs_softc),
};
@@ -563,7 +563,7 @@ apecs_release_resource(device_t bus, device_t child, int type, int rid,
static int
apecs_setup_intr(device_t dev, device_t child,
- struct resource *irq,
+ struct resource *irq, int flags,
driver_intr_t *intr, void *arg, void **cookiep)
{
int error;
@@ -573,7 +573,8 @@ apecs_setup_intr(device_t dev, device_t child,
* controller, so we need to special case it
*/
if(hwrpb->rpb_type == ST_DEC_2100_A50)
- return isa_setup_intr(dev, child, irq, intr, arg, cookiep);
+ return isa_setup_intr(dev, child, irq, flags,
+ intr, arg, cookiep);
error = rman_activate_resource(irq);
if (error)
OpenPOWER on IntegriCloud