xref: /netbsd-src/sys/arch/vax/include/intr.h (revision 89c5a767f8fc7a4633b2d409966e2becbb98ff92)
1 /* 	$NetBSD: intr.h,v 1.1 1998/08/18 23:55:00 matt Exp $	*/
2 
3 /*
4  * Copyright (c) 1998 Matt Thomas.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  * 3. The name of the company nor the name of the author may be used to
16  *    endorse or promote products derived from this software without specific
17  *    prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
20  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22  * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29  * SUCH DAMAGE.
30  */
31 
32 #ifndef _VAX_INTR_H_
33 #define _VAX_INTR_H_
34 
35 /* Define the various Interrupt Priority Levels */
36 
37 /* Interrupt Priority Levels are not mutually exclusive. */
38 
39 #define IPL_BIO		0	/* block I/O */
40 #define IPL_NET		1	/* network */
41 #define IPL_TTY		2	/* terminal */
42 #define IPL_IMP		3	/* memory allocation */
43 #define	IPL_AUDIO	4	/* audio */
44 #define IPL_CLOCK	5	/* clock */
45 #define IPL_NONE	6
46 
47 #define IPL_LEVELS	7
48 
49 #define	IST_UNUSABLE	-1	/* interrupt cannot be used */
50 #define	IST_NONE	0	/* none (dummy) */
51 #define	IST_PULSE	1	/* pulsed */
52 #define	IST_EDGE	2	/* edge-triggered */
53 #define	IST_LEVEL	3	/* level-triggered */
54 
55 #include <machine/param.h>
56 
57 #endif	/* _VAX_INTR_H */
58