intr_public.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

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