Go to the documentation of this file. 1 #ifndef _ASM_IA64_HW_IRQ_H
2 #define _ASM_IA64_HW_IRQ_H
10 #include <linux/sched.h>
11 #include <linux/types.h>
14 #include <asm/machvec.h>
15 #include <asm/ptrace.h>
18 #ifndef CONFIG_PARAVIRT
37 #define IA64_MIN_VECTORED_IRQ 16
38 #define IA64_MAX_VECTORED_IRQ 255
39 #define IA64_NUM_VECTORS 256
41 #define AUTO_ASSIGN -1
43 #define IA64_SPURIOUS_INT_VECTOR 0x0f
48 #define IA64_CPEP_VECTOR 0x1c
49 #define IA64_CMCP_VECTOR 0x1d
50 #define IA64_CPE_VECTOR 0x1e
51 #define IA64_CMC_VECTOR 0x1f
62 #if defined(CONFIG_SMP) && (defined(CONFIG_IA64_GENERIC) || defined (CONFIG_IA64_DIG))
64 #define IA64_IRQ_MOVE_VECTOR 0x30
65 #define IA64_DEF_FIRST_DEVICE_VECTOR 0x31
67 #define IA64_DEF_FIRST_DEVICE_VECTOR 0x30
69 #define IA64_DEF_LAST_DEVICE_VECTOR 0xe7
70 #define IA64_FIRST_DEVICE_VECTOR ia64_first_device_vector
71 #define IA64_LAST_DEVICE_VECTOR ia64_last_device_vector
72 #define IA64_MAX_DEVICE_VECTORS (IA64_DEF_LAST_DEVICE_VECTOR - IA64_DEF_FIRST_DEVICE_VECTOR + 1)
73 #define IA64_NUM_DEVICE_VECTORS (IA64_LAST_DEVICE_VECTOR - IA64_FIRST_DEVICE_VECTOR + 1)
75 #define IA64_MCA_RENDEZ_VECTOR 0xe8
76 #define IA64_PERFMON_VECTOR 0xee
77 #define IA64_TIMER_VECTOR 0xef
78 #define IA64_MCA_WAKEUP_VECTOR 0xf0
79 #define IA64_IPI_LOCAL_TLB_FLUSH 0xfc
80 #define IA64_IPI_RESCHEDULE 0xfd
81 #define IA64_IPI_VECTOR 0xfe
85 #define IA64_IRQ_REDIRECTED (1 << 31)
89 #define IA64_IPI_DEFAULT_BASE_ADDR 0xfee00000
101 #define isa_irq_to_vector(x) isa_irq_to_vector_map[(x)]
112 #define irq_to_domain(x) irq_cfg[(x)].domain
117 #ifdef CONFIG_PARAVIRT_GUEST
118 #include <asm/paravirt.h>
120 #define ia64_register_ipi ia64_native_register_ipi
121 #define assign_irq_vector ia64_native_assign_irq_vector
122 #define free_irq_vector ia64_native_free_irq_vector
123 #define register_percpu_irq ia64_native_register_percpu_irq
124 #define ia64_resend_irq ia64_native_resend_irq
138 #if defined(CONFIG_SMP) && (defined(CONFIG_IA64_GENERIC) || defined(CONFIG_IA64_DIG))
139 extern int irq_prepare_move(
int irq,
int cpu);
140 extern void irq_complete_move(
unsigned int irq);
142 static inline int irq_prepare_move(
int irq,
int cpu) {
return 0; }
143 static inline void irq_complete_move(
unsigned int irq) {}
146 static inline void ia64_native_resend_irq(
unsigned int vector)
154 #ifndef CONFIG_IA64_GENERIC
160 static inline unsigned int
179 irq_to_vector (
int irq)
189 static inline unsigned int