static struct IO_APIC_route_entry *ioapic_pm_state;
-void ioapic_pm_state_alloc(void)
+static void __init ioapic_pm_state_alloc(void)
{
int i, nr_entry = 0;
xfree(oldaction);
}
-int pirq_guest_force_unbind(struct domain *d, int irq)
+static int pirq_guest_force_unbind(struct domain *d, int irq)
{
irq_desc_t *desc;
irq_guest_action_t *action, *oldaction = NULL;
return;
}
-extern int nr_ioapic_registers[MAX_IO_APICS];
-extern int nr_ioapics;
-
int __init amd_iommu_setup_intremap_table(void)
{
struct IO_APIC_route_entry rte = {0};
/* 1 if "noapic" boot option passed */
extern int skip_ioapic_setup;
-/*
- * If we use the IO-APIC for IRQ routing, disable automatic
- * assignment of PCI IRQ's.
- */
-#define io_apic_assign_pci_irqs (mp_irq_entries && !skip_ioapic_setup && io_apic_irqs)
-
#ifdef CONFIG_ACPI_BOOT
extern int io_apic_get_unique_id (int ioapic, int apic_id);
extern int io_apic_get_version (int ioapic);
extern void ioapic_resume(void);
#else /* !CONFIG_X86_IO_APIC */
-#define io_apic_assign_pci_irqs 0
static inline void ioapic_suspend(void) {}
static inline void ioapic_resume(void) {}
#endif
(vec) > LAST_LEGACY_VECTOR) ? \
0 : LEGACY_IRQ_FROM_VECTOR(vec))
-int pirq_guest_force_unbind(struct domain *d, int irq);
-
#endif /* _ASM_HW_IRQ_H */
/* two abstractions specific to kernel/smpboot.c, mainly to cater to visws
* which needs to alter them. */
-static inline void smpboot_clear_io_apic_irqs(void)
-{
- io_apic_irqs = 0;
-}
-
static inline void smpboot_setup_warm_reset_vector(unsigned long start_eip)
{
CMOS_WRITE(0xa, 0xf);