File: /usr/src/linux/include/asm-ia64/sn/intr_public.h

1     /* $Id$
2      *
3      * This file is subject to the terms and conditions of the GNU General Public
4      * License.  See the file "COPYING" in the main directory of this archive
5      * for more details.
6      *
7      * Copyright (C) 1992 - 1997, 2000 Silicon Graphics, Inc.
8      * Copyright (C) 2000 by Colin Ngam
9      */
10     #ifndef _ASM_SN_INTR_PUBLIC_H__
11     #define _ASM_SN_INTR_PUBLIC_H__
12     
13     #include <linux/config.h>
14     
15     /* REMEMBER: If you change these, the whole world needs to be recompiled.
16      * It would also require changing the hubspl.s code and SN0/intr.c
17      * Currently, the spl code has no support for multiple INTPEND1 masks.
18      */
19     
20     #define	N_INTPEND0_MASKS	1
21     #define	N_INTPEND1_MASKS	1
22     
23     #define INTPEND0_MAXMASK	(N_INTPEND0_MASKS - 1)
24     #define INTPEND1_MAXMASK	(N_INTPEND1_MASKS - 1)
25     
26     #if _LANGUAGE_C
27     #if defined(CONFIG_SGI_IP35) || defined(CONFIG_IA64_SGI_SN1) || defined(CONFIG_IA64_GENERIC)
28     #include <asm/sn/sn1/arch.h>
29     #endif
30     #include <asm/sn/arch.h>
31     
32     struct intr_vecblk_s;	/* defined in asm/sn/intr.h */
33     
34     /*
35      * The following are necessary to create the illusion of a CEL
36      * on the IP27 hub.  We'll add more priority levels soon, but for
37      * now, any interrupt in a particular band effectively does an spl.
38      * These must be in the PDA since they're different for each processor.
39      * Users of this structure must hold the vector_lock in the appropriate vector
40      * block before modifying the mask arrays.  There's only one vector block
41      * for each Hub so a lock in the PDA wouldn't be adequate.
42      */
43     typedef struct hub_intmasks_s {
44     	/*
45     	 * The masks are stored with the lowest-priority (most inclusive)
46     	 * in the lowest-numbered masks (i.e., 0, 1, 2...).
47     	 */
48     	/* INT_PEND0: */
49     	hubreg_t		intpend0_masks[N_INTPEND0_MASKS]; 
50     	/* INT_PEND1: */
51     	hubreg_t		intpend1_masks[N_INTPEND1_MASKS];
52     	/* INT_PEND0: */
53     	struct intr_vecblk_s	*dispatch0;	
54     	/* INT_PEND1: */
55     	struct intr_vecblk_s	*dispatch1;
56     } hub_intmasks_t;
57     
58     #endif /* _LANGUAGE_C */
59     #endif /* _ASM_SN_INTR_PUBLIC_H__ */
60