diff options
author | peter <peter@FreeBSD.org> | 1997-05-31 09:33:29 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-05-31 09:33:29 +0000 |
commit | f5f62e3eecc29efd9323e1d70582106d5de907d7 (patch) | |
tree | d6366de34e7e2b514f4ff82a47c8d03951860887 | |
parent | 71d9859870fd6fd83ce0804d9c8f050fe091e284 (diff) | |
download | FreeBSD-src-f5f62e3eecc29efd9323e1d70582106d5de907d7.zip FreeBSD-src-f5f62e3eecc29efd9323e1d70582106d5de907d7.tar.gz |
s/intrmask/intrmask_t/g
remove warning about ICU_LEN > 32, it's not likely to happen like this,
and besides, ICU_LEN is not the ideal indicator of "number of interrupts".
Reviewed by: bde, se
-rw-r--r-- | sys/sys/interrupt.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h index 72f98eb..7e7fcb1 100644 --- a/sys/sys/interrupt.h +++ b/sys/sys/interrupt.h @@ -23,26 +23,18 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: interrupt.h,v 1.1 1997/05/26 14:37:31 se Exp $ * */ -#if ICU_LEN > 32 -#error adjust type of intrmask for ICU_LEN of more than 32 -#endif -/* XXX adjust size if more than 32 interrupts are supported ! */ -typedef u_int32_t intrmask; - -/* XXX inthand2_typ should be defined here, not in isa_device.h */ - typedef struct intrec { - intrmask mask; + intrmask_t mask; inthand2_t *handler; void *argument; struct intrec *next; void *devdata; int intr; - intrmask *maskptr; + intrmask_t *maskptr; int flags; #define INTR_FAST 0x00000001 /* fast interrupt handler */ #define INTR_EXCL 0x00010000 /* excl. intr, default is shared */ @@ -50,7 +42,7 @@ typedef struct intrec { /* XXX currently dev_instance must be set to the ISA device_id or -1 for PCI */ intrec *intr_create(void *dev_instance, int irq, inthand2_t handler, - void *arg, intrmask *maskptr, int flags); + void *arg, intrmask_t *maskptr, int flags); int intr_destroy(intrec *idesc); int intr_connect(intrec *idesc); |