#include <linux/types.h>
#include <linux/init.h>
#include <linux/pgtable.h>
#include <asm/numachip/numachip.h>
#include <asm/numachip/numachip_csr.h>
#include "local.h"
u8 numachip_system __read_mostly;
static const struct apic apic_numachip1;
static const struct apic apic_numachip2;
static void (*numachip_apic_icr_write)(int apicid, unsigned int val) __read_mostly;
static u32 numachip1_get_apic_id(u32 x)
{ … }
static u32 numachip2_get_apic_id(u32 x)
{ … }
static void numachip1_apic_icr_write(int apicid, unsigned int val)
{ … }
static void numachip2_apic_icr_write(int apicid, unsigned int val)
{ … }
static int numachip_wakeup_secondary(u32 phys_apicid, unsigned long start_rip)
{ … }
static void numachip_send_IPI_one(int cpu, int vector)
{ … }
static void numachip_send_IPI_mask(const struct cpumask *mask, int vector)
{ … }
static void numachip_send_IPI_mask_allbutself(const struct cpumask *mask,
int vector)
{ … }
static void numachip_send_IPI_allbutself(int vector)
{ … }
static void numachip_send_IPI_all(int vector)
{ … }
static void numachip_send_IPI_self(int vector)
{ … }
static int __init numachip1_probe(void)
{ … }
static int __init numachip2_probe(void)
{ … }
static void fixup_cpu_id(struct cpuinfo_x86 *c, int node)
{ … }
static int __init numachip_system_init(void)
{ … }
early_initcall(numachip_system_init);
static int numachip1_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
{ … }
static int numachip2_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
{ … }
static const struct apic apic_numachip1 __refconst = …;
apic_driver(…) …;
static const struct apic apic_numachip2 __refconst = …;
apic_driver(…) …;