diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-09-16 12:49:28 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-09-16 17:13:09 +0200 |
commit | 149c50cabcc4ea46a460d35fc876346ed441304c (patch) | |
tree | 740d2b527d961244c78d7b2192bbb5f30c5a9b2c /hw/i386/fw_cfg.h | |
parent | 367607f9132e97614e7da0e6a45576c51e9db68c (diff) | |
download | qemu-149c50cabcc4ea46a460d35fc876346ed441304c.zip qemu-149c50cabcc4ea46a460d35fc876346ed441304c.tar.gz qemu-149c50cabcc4ea46a460d35fc876346ed441304c.tar.bz2 |
hw/i386/pc: Extract the x86 generic fw_cfg code
Extract all the functions that are not PC-machine specific into
the (arch-specific) fw_cfg.c file. This will allow other X86-machine
to reuse these functions.
Suggested-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190818225414.22590-16-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/fw_cfg.h')
-rw-r--r-- | hw/i386/fw_cfg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/i386/fw_cfg.h b/hw/i386/fw_cfg.h index 17a4bc3..e0856a3 100644 --- a/hw/i386/fw_cfg.h +++ b/hw/i386/fw_cfg.h @@ -9,6 +9,7 @@ #ifndef HW_I386_FW_CFG_H #define HW_I386_FW_CFG_H +#include "hw/boards.h" #include "hw/nvram/fw_cfg.h" #define FW_CFG_ACPI_TABLES (FW_CFG_ARCH_LOCAL + 0) @@ -17,4 +18,10 @@ #define FW_CFG_E820_TABLE (FW_CFG_ARCH_LOCAL + 3) #define FW_CFG_HPET (FW_CFG_ARCH_LOCAL + 4) +FWCfgState *fw_cfg_arch_create(MachineState *ms, + uint16_t boot_cpus, + uint16_t apic_id_limit); +void fw_cfg_build_smbios(MachineState *ms, FWCfgState *fw_cfg); +void fw_cfg_build_feature_control(MachineState *ms, FWCfgState *fw_cfg); + #endif |