xref: /qemu/include/hw/i386/x86.h (revision 549e984e67d8b3ea868be4ba935cecb9c1e753dc)
1 /*
2  * Copyright (c) 2019 Red Hat, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms and conditions of the GNU General Public License,
6  * version 2 or later, as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11  * more details.
12  *
13  * You should have received a copy of the GNU General Public License along with
14  * this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef HW_I386_X86_H
18 #define HW_I386_X86_H
19 
20 #include "hw/boards.h"
21 
22 uint32_t x86_cpu_apic_id_from_index(PCMachineState *pcms,
23                                     unsigned int cpu_index);
24 void x86_cpu_new(PCMachineState *pcms, int64_t apic_id, Error **errp);
25 void x86_cpus_init(PCMachineState *pcms);
26 CpuInstanceProperties x86_cpu_index_to_props(MachineState *ms,
27                                              unsigned cpu_index);
28 int64_t x86_get_default_cpu_node_id(const MachineState *ms, int idx);
29 const CPUArchIdList *x86_possible_cpu_arch_ids(MachineState *ms);
30 
31 void x86_bios_rom_init(MemoryRegion *rom_memory, bool isapc_ram_fw);
32 
33 void x86_load_linux(PCMachineState *x86ms, FWCfgState *fw_cfg);
34 
35 #endif
36