]> git.proxmox.com Git - mirror_qemu.git/blame - hw/i386/fw_cfg.h
Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
[mirror_qemu.git] / hw / i386 / fw_cfg.h
CommitLineData
87abaa5d
PMD
1/*
2 * QEMU fw_cfg helpers (X86 specific)
3 *
4 * Copyright (c) 2003-2004 Fabrice Bellard
5 *
6 * SPDX-License-Identifier: MIT
7 */
8
9#ifndef HW_I386_FW_CFG_H
10#define HW_I386_FW_CFG_H
11
149c50ca 12#include "hw/boards.h"
87abaa5d
PMD
13#include "hw/nvram/fw_cfg.h"
14
89a289c7
PB
15#define FW_CFG_IO_BASE 0x510
16
87abaa5d
PMD
17#define FW_CFG_ACPI_TABLES (FW_CFG_ARCH_LOCAL + 0)
18#define FW_CFG_SMBIOS_ENTRIES (FW_CFG_ARCH_LOCAL + 1)
19#define FW_CFG_IRQ0_OVERRIDE (FW_CFG_ARCH_LOCAL + 2)
20#define FW_CFG_E820_TABLE (FW_CFG_ARCH_LOCAL + 3)
21#define FW_CFG_HPET (FW_CFG_ARCH_LOCAL + 4)
22
149c50ca
PMD
23FWCfgState *fw_cfg_arch_create(MachineState *ms,
24 uint16_t boot_cpus,
25 uint16_t apic_id_limit);
26void fw_cfg_build_smbios(MachineState *ms, FWCfgState *fw_cfg);
27void fw_cfg_build_feature_control(MachineState *ms, FWCfgState *fw_cfg);
28
87abaa5d 29#endif