1 /**************************************************************************** 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 *** 10 *** 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 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _ASM_GENAPIC_H 20 #define _ASM_GENAPIC_H 1 21 #include <asm/mpspec.h> 22 struct mpc_config_translation; 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 struct mpc_config_bus; 25 struct mp_config_table; 26 struct mpc_config_processor; 27 struct genapic { 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 char *name; 30 int (*probe)(void); 31 int (*apic_id_registered)(void); 32 cpumask_t (*target_cpus)(void); 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 int int_delivery_mode; 35 int int_dest_mode; 36 int ESR_DISABLE; 37 int apic_destination_logical; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 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; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 void (*init_apic_ldr)(void); 45 physid_mask_t (*ioapic_phys_id_map)(physid_mask_t map); 46 void (*setup_apic_routing)(void); 47 int (*multi_timer_check)(int apic, int irq); 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 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); 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 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); 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 void (*enable_apic_mode)(void); 60 u32 (*phys_pkg_id)(u32 cpuid_apic, int index_msb); 61 void (*mpc_oem_bus_info)(struct mpc_config_bus *, char *, 62 struct mpc_config_translation *); 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 void (*mpc_oem_pci_bus)(struct mpc_config_bus *, 65 struct mpc_config_translation *); 66 int (*mps_oem_check)(struct mp_config_table *mpc, char *oem, 67 char *productid); 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 int (*acpi_madt_oem_check)(char *oem_id, char *oem_table_id); 70 unsigned (*get_apic_id)(unsigned long x); 71 unsigned long apic_id_mask; 72 unsigned int (*cpu_mask_to_apicid)(cpumask_t cpumask); 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 }; 75 #define APICFUNC(x) .x = x, 76 #define IPIFUNC(x) 77 #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) } 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #endif 80