mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
fw_cfg: import & use linux/qemu_fw_cfg.h
Use kernel common header for fw_cfg. (unfortunately, optionrom.h must have its own define, since it's actually an assembler header) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20180817155910.5722-2-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
039d7c4d53
commit
5be5df720e
11 changed files with 125 additions and 80 deletions
|
|
@ -13,20 +13,12 @@
|
|||
#define VMCOREINFO_H
|
||||
|
||||
#include "hw/qdev.h"
|
||||
#include "standard-headers/linux/qemu_fw_cfg.h"
|
||||
|
||||
#define VMCOREINFO_DEVICE "vmcoreinfo"
|
||||
#define VMCOREINFO(obj) OBJECT_CHECK(VMCoreInfoState, (obj), VMCOREINFO_DEVICE)
|
||||
|
||||
#define VMCOREINFO_FORMAT_NONE 0x0
|
||||
#define VMCOREINFO_FORMAT_ELF 0x1
|
||||
|
||||
/* all fields are little-endian */
|
||||
typedef struct FWCfgVMCoreInfo {
|
||||
uint16_t host_format; /* set on reset */
|
||||
uint16_t guest_format;
|
||||
uint32_t size;
|
||||
uint64_t paddr;
|
||||
} QEMU_PACKED FWCfgVMCoreInfo;
|
||||
typedef struct fw_cfg_vmcoreinfo FWCfgVMCoreInfo;
|
||||
|
||||
typedef struct VMCoreInfoState {
|
||||
DeviceClass parent_obj;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue