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
7 * Copyright (C) 1992 - 1997, 2000 Silicon Graphics, Inc.
8 * Copyright (C) 2000 by Colin Ngam
10 #ifndef __SYS_SN_INTR_PUBLIC_H__
11 #define __SYS_SN_INTR_PUBLIC_H__
14 /* REMEMBER: If you change these, the whole world needs to be recompiled.
15 * It would also require changing the hubspl.s code and SN0/intr.c
16 * Currently, the spl code has no support for multiple INTPEND1 masks.
19 #define N_INTPEND0_MASKS 1
20 #define N_INTPEND1_MASKS 1
22 #define INTPEND0_MAXMASK (N_INTPEND0_MASKS - 1)
23 #define INTPEND1_MAXMASK (N_INTPEND1_MASKS - 1)
25 #include <linux/config.h>
27 #if defined(CONFIG_SGI_IP35) || defined(CONFIG_IA64_SGI_SN1) || defined(CONFIG_IA64_GENERIC)
28 #include <asm/sn/sn1/arch.h>
30 #include <asm/sn/arch.h>
32 struct intr_vecblk_s; /* defined in asm/sn/intr.h */
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.
43 typedef struct hub_intmasks_s {
45 * The masks are stored with the lowest-priority (most inclusive)
46 * in the lowest-numbered masks (i.e., 0, 1, 2...).
49 hubreg_t intpend0_masks[N_INTPEND0_MASKS];
51 hubreg_t intpend1_masks[N_INTPEND1_MASKS];
53 struct intr_vecblk_s *dispatch0;
55 struct intr_vecblk_s *dispatch1;
58 #endif /* _LANGUAGE_C */
59 #endif /* __SYS_SN_INTR_PUBLIC_H__ */