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

Linux/Unix编程

开发平台:

Unix_Linux

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