TianoCore EDK2 master
Loading...
Searching...
No Matches
QemuFwCfg.h File Reference
#include <Base.h>

Go to the source code of this file.

Data Structures

struct  FW_CFG_DMA_ACCESS
 

Macros

#define QEMU_FW_CFG_FNAME_SIZE   56
 
#define FW_CFG_F_DMA   BIT1
 
#define FW_CFG_DMA_CTL_ERROR   BIT0
 
#define FW_CFG_DMA_CTL_READ   BIT1
 
#define FW_CFG_DMA_CTL_SKIP   BIT2
 
#define FW_CFG_DMA_CTL_SELECT   BIT3
 
#define FW_CFG_DMA_CTL_WRITE   BIT4
 
#define FW_CFG_IO_SELECTOR   0x510
 
#define FW_CFG_IO_DATA   0x511
 
#define FW_CFG_IO_DMA_ADDRESS   0x514
 

Enumerations

enum  FIRMWARE_CONFIG_ITEM {
  QemuFwCfgItemSignature = 0x0000 , QemuFwCfgItemInterfaceVersion = 0x0001 , QemuFwCfgItemSystemUuid = 0x0002 , QemuFwCfgItemRamSize = 0x0003 ,
  QemuFwCfgItemGraphicsEnabled = 0x0004 , QemuFwCfgItemSmpCpuCount = 0x0005 , QemuFwCfgItemMachineId = 0x0006 , QemuFwCfgItemKernelAddress = 0x0007 ,
  QemuFwCfgItemKernelSize = 0x0008 , QemuFwCfgItemKernelCommandLine = 0x0009 , QemuFwCfgItemInitrdAddress = 0x000a , QemuFwCfgItemInitrdSize = 0x000b ,
  QemuFwCfgItemBootDevice = 0x000c , QemuFwCfgItemNumaData = 0x000d , QemuFwCfgItemBootMenu = 0x000e , QemuFwCfgItemMaximumCpuCount = 0x000f ,
  QemuFwCfgItemKernelEntry = 0x0010 , QemuFwCfgItemKernelData = 0x0011 , QemuFwCfgItemInitrdData = 0x0012 , QemuFwCfgItemCommandLineAddress = 0x0013 ,
  QemuFwCfgItemCommandLineSize = 0x0014 , QemuFwCfgItemCommandLineData = 0x0015 , QemuFwCfgItemKernelSetupAddress = 0x0016 , QemuFwCfgItemKernelSetupSize = 0x0017 ,
  QemuFwCfgItemKernelSetupData = 0x0018 , QemuFwCfgItemFileDir = 0x0019 , QemuFwCfgItemX86AcpiTables = 0x8000 , QemuFwCfgItemX86SmbiosTables = 0x8001 ,
  QemuFwCfgItemX86Irq0Override = 0x8002 , QemuFwCfgItemX86E820Table = 0x8003 , QemuFwCfgItemX86HpetData = 0x8004
}
 

Detailed Description

Macro and type definitions corresponding to the QEMU fw_cfg interface.

Refer to "docs/specs/fw_cfg.txt" in the QEMU source directory.

Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.
Copyright (C) 2013 - 2017, Red Hat, Inc.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file QemuFwCfg.h.

Macro Definition Documentation

◆ FW_CFG_DMA_CTL_ERROR

#define FW_CFG_DMA_CTL_ERROR   BIT0

Definition at line 33 of file QemuFwCfg.h.

◆ FW_CFG_DMA_CTL_READ

#define FW_CFG_DMA_CTL_READ   BIT1

Definition at line 34 of file QemuFwCfg.h.

◆ FW_CFG_DMA_CTL_SELECT

#define FW_CFG_DMA_CTL_SELECT   BIT3

Definition at line 36 of file QemuFwCfg.h.

◆ FW_CFG_DMA_CTL_SKIP

#define FW_CFG_DMA_CTL_SKIP   BIT2

Definition at line 35 of file QemuFwCfg.h.

◆ FW_CFG_DMA_CTL_WRITE

#define FW_CFG_DMA_CTL_WRITE   BIT4

Definition at line 37 of file QemuFwCfg.h.

◆ FW_CFG_F_DMA

#define FW_CFG_F_DMA   BIT1

Definition at line 28 of file QemuFwCfg.h.

◆ FW_CFG_IO_DATA

#define FW_CFG_IO_DATA   0x511

Definition at line 44 of file QemuFwCfg.h.

◆ FW_CFG_IO_DMA_ADDRESS

#define FW_CFG_IO_DMA_ADDRESS   0x514

Definition at line 45 of file QemuFwCfg.h.

◆ FW_CFG_IO_SELECTOR

#define FW_CFG_IO_SELECTOR   0x510

Definition at line 43 of file QemuFwCfg.h.

◆ QEMU_FW_CFG_FNAME_SIZE

#define QEMU_FW_CFG_FNAME_SIZE   56

Definition at line 21 of file QemuFwCfg.h.

Enumeration Type Documentation

◆ FIRMWARE_CONFIG_ITEM

enum FIRMWARE_CONFIG_ITEM

Definition at line 50 of file QemuFwCfg.h.