intr_public.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:2k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

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