blob: 89a68b3cd1dce6f761e8d7b8b8f9f893a1932b40 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ASM_GENAPIC_H
20#define _ASM_GENAPIC_H 1
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <asm/mpspec.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022struct mpc_config_translation;
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024struct mpc_config_bus;
25struct mp_config_table;
26struct mpc_config_processor;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080027struct genapic {
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029 char *name;
30 int (*probe)(void);
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031 int (*apic_id_registered)(void);
32 cpumask_t (*target_cpus)(void);
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034 int int_delivery_mode;
35 int int_dest_mode;
36 int ESR_DISABLE;
37 int apic_destination_logical;
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039 unsigned long (*check_apicid_used)(physid_mask_t bitmap, int apicid);
40 unsigned long (*check_apicid_present)(int apicid);
41 int no_balance_irq;
42 int no_ioapic_check;
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044 void (*init_apic_ldr)(void);
45 physid_mask_t (*ioapic_phys_id_map)(physid_mask_t map);
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080046 void (*setup_apic_routing)(void);
47 int (*multi_timer_check)(int apic, int irq);
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049 int (*apicid_to_node)(int logical_apicid);
50 int (*cpu_to_logical_apicid)(int cpu);
51 int (*cpu_present_to_apicid)(int mps_cpu);
52 physid_mask_t (*apicid_to_cpu_present)(int phys_apicid);
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054 int (*mpc_apic_id)(struct mpc_config_processor *m,
55 struct mpc_config_translation *t);
56 void (*setup_portio_remap)(void);
57 int (*check_phys_apicid_present)(int boot_cpu_physical_apicid);
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059 void (*enable_apic_mode)(void);
60 u32 (*phys_pkg_id)(u32 cpuid_apic, int index_msb);
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080061 void (*mpc_oem_bus_info)(struct mpc_config_bus *, char *,
62 struct mpc_config_translation *);
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064 void (*mpc_oem_pci_bus)(struct mpc_config_bus *,
65 struct mpc_config_translation *);
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080066 int (*mps_oem_check)(struct mp_config_table *mpc, char *oem,
67 char *productid);
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080069 int (*acpi_madt_oem_check)(char *oem_id, char *oem_table_id);
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080070 unsigned (*get_apic_id)(unsigned long x);
71 unsigned long apic_id_mask;
72 unsigned int (*cpu_mask_to_apicid)(cpumask_t cpumask);
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080074};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080075#define APICFUNC(x) .x = x,
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080076#define IPIFUNC(x)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080077#define APIC_INIT(aname, aprobe) { .name = aname, .probe = aprobe, .int_delivery_mode = INT_DELIVERY_MODE, .int_dest_mode = INT_DEST_MODE, .no_balance_irq = NO_BALANCE_IRQ, .ESR_DISABLE = esr_disable, .apic_destination_logical = APIC_DEST_LOGICAL, APICFUNC(apic_id_registered) APICFUNC(target_cpus) APICFUNC(check_apicid_used) APICFUNC(check_apicid_present) APICFUNC(init_apic_ldr) APICFUNC(ioapic_phys_id_map) APICFUNC(setup_apic_routing) APICFUNC(multi_timer_check) APICFUNC(apicid_to_node) APICFUNC(cpu_to_logical_apicid) APICFUNC(cpu_present_to_apicid) APICFUNC(apicid_to_cpu_present) APICFUNC(mpc_apic_id) APICFUNC(setup_portio_remap) APICFUNC(check_phys_apicid_present) APICFUNC(mpc_oem_bus_info) APICFUNC(mpc_oem_pci_bus) APICFUNC(mps_oem_check) APICFUNC(get_apic_id) .apic_id_mask = APIC_ID_MASK, APICFUNC(cpu_mask_to_apicid) APICFUNC(acpi_madt_oem_check) IPIFUNC(send_IPI_mask) IPIFUNC(send_IPI_allbutself) IPIFUNC(send_IPI_all) APICFUNC(enable_apic_mode) APICFUNC(phys_pkg_id) }
Ben Cheng654325d2012-03-07 21:13:49 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080079#endif