diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-12-02 19:37:26 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-12-05 19:44:44 +0100 |
commit | be0eaf42efe2ff3dc845b445c6d3a6e6983805bd (patch) | |
tree | 1d793b3e53cceffe4eef1f07ab10c4e59c62b5f4 /OvmfPkg | |
parent | de01f72cc77d58162cb3ba7cd06f931fc9d13822 (diff) | |
download | edk2-platforms-be0eaf42efe2ff3dc845b445c6d3a6e6983805bd.tar.xz |
OvmfPkg/QemuFwCfgLib: extend lib class header with more definitions
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>
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/Include/Library/QemuFwCfgLib.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OvmfPkg/Include/Library/QemuFwCfgLib.h b/OvmfPkg/Include/Library/QemuFwCfgLib.h index 40a07456c5..3e017d53a9 100644 --- a/OvmfPkg/Include/Library/QemuFwCfgLib.h +++ b/OvmfPkg/Include/Library/QemuFwCfgLib.h @@ -24,12 +24,20 @@ #define QEMU_FW_CFG_FNAME_SIZE 56
//
+// If the following bit is set in the UINT32 fw_cfg revision / feature bitmap
+// -- read from key 0x0001 with the basic IO Port or MMIO method --, then the
+// DMA interface is available.
+//
+#define FW_CFG_F_DMA BIT1
+
+//
// Macros for the FW_CFG_DMA_ACCESS.Control bitmap (in native encoding).
//
#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
typedef enum {
QemuFwCfgItemSignature = 0x0000,
|