From df58dc7d89322fefb6bacf528c337bef64e36e94 Mon Sep 17 00:00:00 2001 From: jonathan Date: Wed, 20 Sep 1995 04:33:00 +0000 Subject: [PATCH] Change the signature of interrupt-handlers to take a void * (a pointer to the softc) and return an int (indicating spurious interrupts or other conditions.) --- sys/arch/pmax/include/autoconf.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/arch/pmax/include/autoconf.h b/sys/arch/pmax/include/autoconf.h index 4fdac1370d1f..c21cba396ebf 100644 --- a/sys/arch/pmax/include/autoconf.h +++ b/sys/arch/pmax/include/autoconf.h @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.h,v 1.1 1995/08/04 00:34:15 jonathan Exp $ */ +/* $NetBSD: autoconf.h,v 1.2 1995/09/20 04:33:00 jonathan Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -35,14 +35,14 @@ struct confargs; /* Handle device interrupt for given unit of a driver */ -typedef int handler_arg_t; -typedef int (*intr_handler_t) __P((handler_arg_t)); +typedef void* intr_arg_t; /* pointer to some softc */ +typedef int (*intr_handler_t) __P((intr_arg_t)); struct abus { struct device *ab_dv; /* back-pointer to device */ int ab_type; /* bus type (see below) */ void (*ab_intr_establish) /* bus's set-handler function */ - __P((struct confargs *, intr_handler_t, handler_arg_t)); + __P((struct confargs *, intr_handler_t, intr_arg_t)); void (*ab_intr_disestablish) /* bus's unset-handler function */ __P((struct confargs *)); caddr_t (*ab_cvtaddr) /* convert slot/offset to address */ @@ -75,6 +75,7 @@ struct confargs { struct abus *ca_bus; /* bus device resides on. */ }; + #ifndef pmax void set_clockintr __P((void (*)(struct clockframe *))); #endif