intr.h revision 1.1
11.1Ssakamoto/*	$NetBSD: intr.h,v 1.1 1997/10/14 06:48:22 sakamoto Exp $	*/
21.1Ssakamoto
31.1Ssakamoto/*
41.1Ssakamoto * Copyright (c) 1996, 1997 Charles M. Hannum.  All rights reserved.
51.1Ssakamoto *
61.1Ssakamoto * Redistribution and use in source and binary forms, with or without
71.1Ssakamoto * modification, are permitted provided that the following conditions
81.1Ssakamoto * are met:
91.1Ssakamoto * 1. Redistributions of source code must retain the above copyright
101.1Ssakamoto *    notice, this list of conditions and the following disclaimer.
111.1Ssakamoto * 2. Redistributions in binary form must reproduce the above copyright
121.1Ssakamoto *    notice, this list of conditions and the following disclaimer in the
131.1Ssakamoto *    documentation and/or other materials provided with the distribution.
141.1Ssakamoto * 3. All advertising materials mentioning features or use of this software
151.1Ssakamoto *    must display the following acknowledgement:
161.1Ssakamoto *	This product includes software developed by Charles M. Hannum.
171.1Ssakamoto * 4. The name of the author may not be used to endorse or promote products
181.1Ssakamoto *    derived from this software without specific prior written permission.
191.1Ssakamoto *
201.1Ssakamoto * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
211.1Ssakamoto * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
221.1Ssakamoto * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
231.1Ssakamoto * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
241.1Ssakamoto * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
251.1Ssakamoto * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
261.1Ssakamoto * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
271.1Ssakamoto * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
281.1Ssakamoto * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
291.1Ssakamoto * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
301.1Ssakamoto */
311.1Ssakamoto
321.1Ssakamoto#ifndef _BEBOX_INTR_H_
331.1Ssakamoto#define _BEBOX_INTR_H_
341.1Ssakamoto
351.1Ssakamoto/* Interrupt priority `levels'. */
361.1Ssakamoto#define	IPL_NONE	9	/* nothing */
371.1Ssakamoto#define	IPL_SOFTCLOCK	8	/* software clock interrupt */
381.1Ssakamoto#define	IPL_SOFTNET	7	/* software network interrupt */
391.1Ssakamoto#define	IPL_BIO		6	/* block I/O */
401.1Ssakamoto#define	IPL_NET		5	/* network */
411.1Ssakamoto#define	IPL_TTY		4	/* terminal */
421.1Ssakamoto#define	IPL_IMP		3	/* memory allocation */
431.1Ssakamoto#define	IPL_AUDIO	2	/* audio */
441.1Ssakamoto#define	IPL_CLOCK	1	/* clock */
451.1Ssakamoto#define	IPL_HIGH	0	/* everything */
461.1Ssakamoto#define	NIPL		10
471.1Ssakamoto
481.1Ssakamoto/* Interrupt sharing types. */
491.1Ssakamoto#define	IST_NONE	0	/* none */
501.1Ssakamoto#define	IST_PULSE	1	/* pulsed */
511.1Ssakamoto#define	IST_EDGE	2	/* edge-triggered */
521.1Ssakamoto#define	IST_LEVEL	3	/* level-triggered */
531.1Ssakamoto
541.1Ssakamoto#ifndef _LOCORE
551.1Ssakamoto
561.1Ssakamotoint imask[NIPL];
571.1Ssakamoto
581.1Ssakamoto#endif /* !_LOCORE */
591.1Ssakamoto
601.1Ssakamoto#endif /* !_BEBOX_INTR_H_ */
61