1 /* $Id: intr_public.h,v 1.1 2002/02/28 17:31:25 marcelo Exp $
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-2001 Silicon Graphics, Inc. All rights reserved.
9 #ifndef _ASM_IA64_SN_SN1_INTR_PUBLIC_H
10 #define _ASM_IA64_SN_SN1_INTR_PUBLIC_H
12 /* REMEMBER: If you change these, the whole world needs to be recompiled.
13 * It would also require changing the hubspl.s code and SN0/intr.c
14 * Currently, the spl code has no support for multiple INTPEND1 masks.
17 #define N_INTPEND0_MASKS 1
18 #define N_INTPEND1_MASKS 1
20 #define INTPEND0_MAXMASK (N_INTPEND0_MASKS - 1)
21 #define INTPEND1_MAXMASK (N_INTPEND1_MASKS - 1)
24 #include <asm/sn/arch.h>
26 struct intr_vecblk_s; /* defined in asm/sn/intr.h */
29 * The following are necessary to create the illusion of a CEL
30 * on the IP27 hub. We'll add more priority levels soon, but for
31 * now, any interrupt in a particular band effectively does an spl.
32 * These must be in the PDA since they're different for each processor.
33 * Users of this structure must hold the vector_lock in the appropriate vector
34 * block before modifying the mask arrays. There's only one vector block
35 * for each Hub so a lock in the PDA wouldn't be adequate.
37 typedef struct hub_intmasks_s {
39 * The masks are stored with the lowest-priority (most inclusive)
40 * in the lowest-numbered masks (i.e., 0, 1, 2...).
43 hubreg_t intpend0_masks[N_INTPEND0_MASKS];
45 hubreg_t intpend1_masks[N_INTPEND1_MASKS];
47 struct intr_vecblk_s *dispatch0;
49 struct intr_vecblk_s *dispatch1;
52 #endif /* __ASSEMBLY__ */
53 #endif /* _ASM_IA64_SN_SN1_INTR_PUBLIC_H */