18 unsigned int irq = data->
irq;
38 _intc_enable(data, (
unsigned long)irq_data_get_irq_chip_data(data));
41 static void intc_disable(
struct irq_data *data)
43 unsigned int irq = data->
irq;
45 unsigned long handle = (
unsigned long)irq_data_get_irq_chip_data(data);
68 static int intc_set_affinity(
struct irq_data *data,
72 if (!cpumask_intersects(cpumask, cpu_online_mask))
75 cpumask_copy(data->
affinity, cpumask);
81 static void intc_mask_ack(
struct irq_data *data)
83 unsigned int irq = data->
irq;
126 return bsearch(&
key, hp, nr_hp,
sizeof(*hp), intc_handle_int_cmp);
156 #define SENSE_VALID_FLAG 0x80
157 #define VALID(x) (x | SENSE_VALID_FLAG)
164 #if !defined(CONFIG_CPU_SUBTYPE_SH7706) && \
165 !defined(CONFIG_CPU_SUBTYPE_SH7707) && \
166 !defined(CONFIG_CPU_SUBTYPE_SH7709)
169 #if defined(CONFIG_ARM)
174 static int intc_set_type(
struct irq_data *data,
unsigned int type)
176 unsigned int irq = data->
irq;
201 .irq_mask = intc_disable,
202 .irq_unmask = intc_enable,
203 .irq_mask_ack = intc_mask_ack,
204 .irq_enable = intc_enable,
205 .irq_disable = intc_disable,
206 .irq_set_type = intc_set_type,
208 .irq_set_affinity = intc_set_affinity,