static void disable_cobalt_irq(unsigned int irq) { int entry = is_co_apic(irq); co_apic_write(CO_APIC_LO(entry), CO_APIC_MASK); co_apic_read(CO_APIC_LO(entry)); }
static void disable_cobalt_irq(struct irq_data *data) { int entry = is_co_apic(data->irq); co_apic_write(CO_APIC_LO(entry), CO_APIC_MASK); co_apic_read(CO_APIC_LO(entry)); }
/* * Set the given Cobalt APIC Redirection Table entry to point * to the given IDT vector/index. */ static inline void co_apic_set(int entry, int irq) { co_apic_write(CO_APIC_LO(entry), CO_APIC_LEVEL | (irq + FIRST_EXTERNAL_VECTOR)); co_apic_write(CO_APIC_HI(entry), 0); }