2
0

fw_cfg.h 975 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * QEMU fw_cfg helpers (X86 specific)
  3. *
  4. * Copyright (c) 2003-2004 Fabrice Bellard
  5. *
  6. * SPDX-License-Identifier: MIT
  7. */
  8. #ifndef HW_I386_FW_CFG_H
  9. #define HW_I386_FW_CFG_H
  10. #include "hw/boards.h"
  11. #include "hw/i386/pc.h"
  12. #include "hw/nvram/fw_cfg.h"
  13. #define FW_CFG_IO_BASE 0x510
  14. #define FW_CFG_ACPI_TABLES (FW_CFG_ARCH_LOCAL + 0)
  15. #define FW_CFG_SMBIOS_ENTRIES (FW_CFG_ARCH_LOCAL + 1)
  16. #define FW_CFG_IRQ0_OVERRIDE (FW_CFG_ARCH_LOCAL + 2)
  17. #define FW_CFG_HPET (FW_CFG_ARCH_LOCAL + 4)
  18. FWCfgState *fw_cfg_arch_create(MachineState *ms,
  19. uint16_t boot_cpus,
  20. uint16_t apic_id_limit);
  21. void fw_cfg_build_smbios(PCMachineState *pcms, FWCfgState *fw_cfg,
  22. SmbiosEntryPointType ep_type);
  23. void fw_cfg_build_feature_control(MachineState *ms, FWCfgState *fw_cfg);
  24. void fw_cfg_add_acpi_dsdt(Aml *scope, FWCfgState *fw_cfg);
  25. void fw_cfg_add_e820(FWCfgState *fw_cfg);
  26. #endif