#include <asm/processor.h>
#include <asm/hpet.h> /* for hpet_address */
#include <mach_apic.h>
-#include <mach_mpparse.h>
#define PREFIX "ACPI: "
madt->address);
}
- acpi_madt_oem_check(madt->header.oem_id, madt->header.oem_table_id);
-
return 0;
}
#include <xen/smp.h>
#include <xen/init.h>
#include <xen/dmi.h>
-#include <asm/mach-default/mach_mpparse.h>
#include <asm/io_apic.h>
static __init int force_bigsmp(const struct dmi_system_id *d)
#include <xen/smp.h>
#include <xen/init.h>
#include <asm/io_apic.h>
-#include <asm/mach-default/mach_mpparse.h>
/* should be called last. */
static __init int probe_default(void)
printk(KERN_INFO "Using APIC driver %s\n", genapic.name);
}
-
-/* These functions can switch the APIC even after the initial ->probe() */
-
-int __init mps_oem_check(struct mp_config_table *mpc, char *oem, char *productid)
-{
- int i;
- for (i = 0; apic_probe[i]; ++i) {
- if (apic_probe[i]->mps_oem_check(mpc,oem,productid)) {
- if (!cmdline_apic &&
- genapic.name != apic_probe[i]->name) {
- genapic = *apic_probe[i];
- printk(KERN_INFO "Switched to APIC driver `%s'.\n",
- genapic.name);
- }
- return 1;
- }
- }
- return 0;
-}
-
-int __init acpi_madt_oem_check(char *oem_id, char *oem_table_id)
-{
- int i;
- for (i = 0; apic_probe[i]; ++i) {
- if (apic_probe[i]->acpi_madt_oem_check(oem_id, oem_table_id)) {
- if (!cmdline_apic &&
- genapic.name != apic_probe[i]->name) {
- genapic = *apic_probe[i];
- printk(KERN_INFO "Switched to APIC driver `%s'.\n",
- genapic.name);
- }
- return 1;
- }
- }
- return 0;
-}
#include <asm/msr.h>
#include <asm/processor.h>
#include <xen/smp.h>
-#include <asm/mach-default/mach_mpparse.h>
static DEFINE_PER_CPU_READ_MOSTLY(u32, cpu_2_logical_apicid);
static DEFINE_PER_CPU_READ_MOSTLY(cpumask_t *, cluster_cpus);
#include <asm/setup.h>
#include <mach_apic.h>
-#include <mach_mpparse.h>
#include <bios_ebda.h>
/* Have we found an MP table */
str[12]=0;
printk("Product ID: %s ",str);
- mps_oem_check(mpc, oem, str);
-
printk("APIC at: %#x\n", mpc->mpc_lapic);
/*
#include <asm/mpspec.h>
#include <asm/processor.h>
#include <mach_apic.h>
-#include <mach_mpparse.h>
#include "mmconfig.h"
const char *name;
int (*probe)(void);
- /* When one of the next two hooks returns 1 the genapic
- is switched to this. Essentially they are additional probe
- functions. */
- int (*mps_oem_check)(struct mp_config_table *mpc, char *oem,
- char *productid);
- int (*acpi_madt_oem_check)(char *oem_id, char *oem_table_id);
-
/* Interrupt delivery parameters ('physical' vs. 'logical flat'). */
int int_delivery_mode;
int int_dest_mode;
void (*send_IPI_self)(uint8_t vector);
};
-#define APICFUNC(x) .x = x
-
#define APIC_INIT(aname, aprobe) \
.name = aname, \
- .probe = aprobe, \
- APICFUNC(mps_oem_check), \
- APICFUNC(acpi_madt_oem_check)
+ .probe = aprobe
extern struct genapic genapic;
extern const struct genapic apic_default;
+++ /dev/null
-#ifndef __ASM_MACH_MPPARSE_H
-#define __ASM_MACH_MPPARSE_H
-
-static inline int __init mps_oem_check(struct mp_config_table *mpc, char *oem,
- char *productid)
-{
- return 0;
-}
-
-/* Hook from generic ACPI tables.c */
-static inline int __init acpi_madt_oem_check(char *oem_id, char *oem_table_id)
-{
- return 0;
-}
-
-
-#endif /* __ASM_MACH_MPPARSE_H */
+++ /dev/null
-#ifndef _MACH_MPPARSE_H
-#define _MACH_MPPARSE_H 1
-
-int mps_oem_check(struct mp_config_table *mpc, char *oem, char *productid);
-int acpi_madt_oem_check(char *oem_id, char *oem_table_id);
-
-#endif