x86, io-apic: Move CONFIG_IRQ_REMAP code out of x86 core
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / x86 / include / asm / io_apic.h
index a744cbb..36fb5ab 100644 (file)
@@ -144,11 +144,20 @@ extern int timer_through_8259;
        (mp_irq_entries && !skip_ioapic_setup && io_apic_irqs)
 
 struct io_apic_irq_attr;
+struct irq_cfg;
 extern int io_apic_set_pci_routing(struct device *dev, int irq,
                 struct io_apic_irq_attr *irq_attr);
 void setup_IO_APIC_irq_extra(u32 gsi);
 extern void ioapic_insert_resources(void);
 
+extern int native_setup_ioapic_entry(int, struct IO_APIC_route_entry *,
+                                    unsigned int, int,
+                                    struct io_apic_irq_attr *);
+extern int native_setup_ioapic_entry(int, struct IO_APIC_route_entry *,
+                                    unsigned int, int,
+                                    struct io_apic_irq_attr *);
+extern void eoi_ioapic_irq(unsigned int irq, struct irq_cfg *cfg);
+
 int io_apic_setup_irq_pin_once(unsigned int irq, int node, struct io_apic_irq_attr *attr);
 
 extern int save_ioapic_entries(void);
@@ -232,6 +241,7 @@ static inline void disable_ioapic_support(void) { }
 #define native_disable_io_apic         NULL
 #define native_io_apic_print_entries   NULL
 #define native_ioapic_set_affinity     NULL
+#define native_setup_ioapic_entry      NULL
 #endif
 
 #endif /* _ASM_X86_IO_APIC_H */