]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/QemuFwCfgLib: extend lib class header with more definitions
authorLaszlo Ersek <lersek@redhat.com>
Fri, 2 Dec 2016 18:37:26 +0000 (19:37 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Mon, 5 Dec 2016 18:44:44 +0000 (19:44 +0100)
The last patch consists purely of code movement; going forward, we should
use a few more symbolic constants.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
OvmfPkg/Include/Library/QemuFwCfgLib.h

index 40a07456c5308ebc699cf9eddad8485ea0919368..3e017d53a97eacb05db39dae6cf9d73752688831 100644 (file)
 //\r
 #define QEMU_FW_CFG_FNAME_SIZE 56\r
 \r
+//\r
+// If the following bit is set in the UINT32 fw_cfg revision / feature bitmap\r
+// -- read from key 0x0001 with the basic IO Port or MMIO method --, then the\r
+// DMA interface is available.\r
+//\r
+#define FW_CFG_F_DMA BIT1\r
+\r
 //\r
 // Macros for the FW_CFG_DMA_ACCESS.Control bitmap (in native encoding).\r
 //\r
@@ -30,6 +37,7 @@
 #define FW_CFG_DMA_CTL_READ   BIT1\r
 #define FW_CFG_DMA_CTL_SKIP   BIT2\r
 #define FW_CFG_DMA_CTL_SELECT BIT3\r
+#define FW_CFG_DMA_CTL_WRITE  BIT4\r
 \r
 typedef enum {\r
   QemuFwCfgItemSignature            = 0x0000,\r