15 #ifndef _ASM_POWERPC_QE_IC_H
16 #define _ASM_POWERPC_QE_IC_H
23 #define NUM_OF_QE_IC_GROUPS 6
26 #define QE_IC_SPREADMODE_GRP_W 0x00000001
27 #define QE_IC_SPREADMODE_GRP_X 0x00000002
28 #define QE_IC_SPREADMODE_GRP_Y 0x00000004
29 #define QE_IC_SPREADMODE_GRP_Z 0x00000008
30 #define QE_IC_SPREADMODE_GRP_RISCA 0x00000010
31 #define QE_IC_SPREADMODE_GRP_RISCB 0x00000020
33 #define QE_IC_LOW_SIGNAL 0x00000100
34 #define QE_IC_HIGH_SIGNAL 0x00000200
36 #define QE_IC_GRP_W_PRI0_DEST_SIGNAL_HIGH 0x00001000
37 #define QE_IC_GRP_W_PRI1_DEST_SIGNAL_HIGH 0x00002000
38 #define QE_IC_GRP_X_PRI0_DEST_SIGNAL_HIGH 0x00004000
39 #define QE_IC_GRP_X_PRI1_DEST_SIGNAL_HIGH 0x00008000
40 #define QE_IC_GRP_Y_PRI0_DEST_SIGNAL_HIGH 0x00010000
41 #define QE_IC_GRP_Y_PRI1_DEST_SIGNAL_HIGH 0x00020000
42 #define QE_IC_GRP_Z_PRI0_DEST_SIGNAL_HIGH 0x00040000
43 #define QE_IC_GRP_Z_PRI1_DEST_SIGNAL_HIGH 0x00080000
44 #define QE_IC_GRP_RISCA_PRI0_DEST_SIGNAL_HIGH 0x00100000
45 #define QE_IC_GRP_RISCA_PRI1_DEST_SIGNAL_HIGH 0x00200000
46 #define QE_IC_GRP_RISCB_PRI0_DEST_SIGNAL_HIGH 0x00400000
47 #define QE_IC_GRP_RISCB_PRI1_DEST_SIGNAL_HIGH 0x00800000
48 #define QE_IC_GRP_W_DEST_SIGNAL_SHIFT (12)
60 #ifdef CONFIG_QUICC_ENGINE
62 void (*low_handler)(
unsigned int irq,
struct irq_desc *
desc),
63 void (*high_handler)(
unsigned int irq,
struct irq_desc *desc));
68 void (*low_handler)(
unsigned int irq,
struct irq_desc *desc),
69 void (*high_handler)(
unsigned int irq,
struct irq_desc *desc))
81 static inline void qe_ic_cascade_low_ipic(
unsigned int irq,
84 struct qe_ic *
qe_ic = irq_desc_get_handler_data(desc);
91 static inline void qe_ic_cascade_high_ipic(
unsigned int irq,
94 struct qe_ic *qe_ic = irq_desc_get_handler_data(desc);
101 static inline void qe_ic_cascade_low_mpic(
unsigned int irq,
104 struct qe_ic *qe_ic = irq_desc_get_handler_data(desc);
108 if (cascade_irq !=
NO_IRQ)
114 static inline void qe_ic_cascade_high_mpic(
unsigned int irq,
117 struct qe_ic *qe_ic = irq_desc_get_handler_data(desc);
119 struct irq_chip *chip = irq_desc_get_chip(desc);
121 if (cascade_irq !=
NO_IRQ)
127 static inline void qe_ic_cascade_muxed_mpic(
unsigned int irq,
130 struct qe_ic *qe_ic = irq_desc_get_handler_data(desc);
132 struct irq_chip *chip = irq_desc_get_chip(desc);
135 if (cascade_irq ==
NO_IRQ)
138 if (cascade_irq !=
NO_IRQ)