mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06: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
|
@ -58,8 +58,6 @@ asm(
|
|||
" jmp load_kernel\n"
|
||||
);
|
||||
|
||||
#include "../../include/hw/nvram/fw_cfg_keys.h"
|
||||
|
||||
/* QEMU_CFG_DMA_CONTROL bits */
|
||||
#define BIOS_CFG_DMA_CTL_ERROR 0x01
|
||||
#define BIOS_CFG_DMA_CTL_READ 0x02
|
||||
|
@ -73,6 +71,8 @@ asm(
|
|||
#define uint32_t unsigned int
|
||||
#define uint16_t unsigned short
|
||||
|
||||
#include "../../include/standard-headers/linux/qemu_fw_cfg.h"
|
||||
|
||||
#define barrier() asm("" : : : "memory")
|
||||
|
||||
typedef struct FWCfgDmaAccess {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue