intr.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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, 2000-2006 Silicon Graphics, Inc. All rights reserved.
  7. */
  8. #ifndef _ASM_IA64_SN_INTR_H
  9. #define _ASM_IA64_SN_INTR_H
  10. #include <linux/rcupdate.h>
  11. #include <asm/sn/types.h>
  12. #define SGI_UART_VECTOR 0xe9
  13. /* Reserved IRQs : Note, not to exceed IA64_SN2_FIRST_DEVICE_VECTOR */
  14. #define SGI_XPC_ACTIVATE 0x30
  15. #define SGI_II_ERROR 0x31
  16. #define SGI_XBOW_ERROR 0x32
  17. #define SGI_PCIASIC_ERROR 0x33
  18. #define SGI_ACPI_SCI_INT 0x34
  19. #define SGI_TIOCA_ERROR 0x35
  20. #define SGI_TIO_ERROR 0x36
  21. #define SGI_TIOCX_ERROR 0x37
  22. #define SGI_MMTIMER_VECTOR 0x38
  23. #define SGI_XPC_NOTIFY 0xe7
  24. #define IA64_SN2_FIRST_DEVICE_VECTOR 0x3c
  25. #define IA64_SN2_LAST_DEVICE_VECTOR 0xe6
  26. #define SN2_IRQ_RESERVED 0x1
  27. #define SN2_IRQ_CONNECTED 0x2
  28. #define SN2_IRQ_SHARED 0x4
  29. // The SN PROM irq struct
  30. struct sn_irq_info {
  31. struct sn_irq_info *irq_next; /* deprecated DO NOT USE */
  32. short irq_nasid; /* Nasid IRQ is assigned to */
  33. int irq_slice; /* slice IRQ is assigned to */
  34. int irq_cpuid; /* kernel logical cpuid */
  35. int irq_irq; /* the IRQ number */
  36. int irq_int_bit; /* Bridge interrupt pin */
  37. /* <0 means MSI */
  38. u64 irq_xtalkaddr; /* xtalkaddr IRQ is sent to */
  39. int irq_bridge_type;/* pciio asic type (pciio.h) */
  40. void *irq_bridge; /* bridge generating irq */
  41. void *irq_pciioinfo; /* associated pciio_info_t */
  42. int irq_last_intr; /* For Shub lb lost intr WAR */
  43. int irq_cookie; /* unique cookie */
  44. int irq_flags; /* flags */
  45. int irq_share_cnt; /* num devices sharing IRQ */
  46. struct list_head list; /* list of sn_irq_info structs */
  47. struct rcu_head rcu; /* rcu callback list */
  48. };
  49. extern void sn_send_IPI_phys(int, long, int, int);
  50. extern u64 sn_intr_alloc(nasid_t, int,
  51. struct sn_irq_info *,
  52. int, nasid_t, int);
  53. extern void sn_intr_free(nasid_t, int, struct sn_irq_info *);
  54. extern struct sn_irq_info *sn_retarget_vector(struct sn_irq_info *, nasid_t, int);
  55. extern void sn_set_err_irq_affinity(unsigned int);
  56. extern struct list_head **sn_irq_lh;
  57. #define CPU_VECTOR_TO_IRQ(cpuid,vector) (vector)
  58. #endif /* _ASM_IA64_SN_INTR_H */