xref: /titanic_41/usr/src/uts/sun4/sys/intr.h (revision c7e4935f5b755b4bbeaec416f1ad24337aeac7a4)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	_SYS_INTR_H
27 #define	_SYS_INTR_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 /*
36  * Each cpu allocates two arrays, intr_head[] and intr_tail[], with the
37  * size of PIL_LEVELS each. The entry 0 of these arrays are reserved.
38  *
39  * The entries 1-15 of the arrays are the head and the tail of interrupt
40  * level 1-15 request queues.
41  */
42 #define	PIL_LEVELS	16	/* 0	: reserved */
43 				/* 1-15 : for the pil level 1-15 */
44 
45 #define	PIL_1	1
46 #define	PIL_2	2
47 #define	PIL_3	3
48 #define	PIL_4	4
49 #define	PIL_5	5
50 #define	PIL_6	6
51 #define	PIL_7	7
52 #define	PIL_8	8
53 #define	PIL_9	9
54 #define	PIL_10	10
55 #define	PIL_11	11
56 #define	PIL_12	12
57 #define	PIL_13	13
58 #define	PIL_14	14
59 #define	PIL_15	15
60 
61 #ifndef _ASM
62 extern uint64_t poke_cpu_inum;
63 extern void intr_init(struct cpu *);
64 #endif	/* !_ASM */
65 
66 #ifdef	__cplusplus
67 }
68 #endif
69 
70 #endif	/* _SYS_INTR_H */
71