summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Include/Library
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2014-06-19 06:13:01 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2014-06-19 06:13:01 +0000
commit6a904296e42ea6b8c27a489db049aef05db629c2 (patch)
tree529de0225646e94a1d244386647d5cb3d97bd7ec /OvmfPkg/Include/Library
parent8819a096b1e4e449cfce224b74e5a943a450494e (diff)
downloadedk2-6a904296e42ea6b8c27a489db049aef05db629c2.tar.gz
edk2-6a904296e42ea6b8c27a489db049aef05db629c2.tar.bz2
edk2-6a904296e42ea6b8c27a489db049aef05db629c2.zip
OvmgPkg: QemuFwCfgLib: export QEMU_FW_CFG_FNAME_SIZE
Names of firmware configuration files always take 56 bytes (including at least one terminating NUL byte). Expose this constant to all consumers of QemuFwCfgLib because further interfaces may depend on it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15571 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/Include/Library')
-rw-r--r--OvmfPkg/Include/Library/QemuFwCfgLib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/OvmfPkg/Include/Library/QemuFwCfgLib.h b/OvmfPkg/Include/Library/QemuFwCfgLib.h
index 8d3b835d43..baaa257d61 100644
--- a/OvmfPkg/Include/Library/QemuFwCfgLib.h
+++ b/OvmfPkg/Include/Library/QemuFwCfgLib.h
@@ -17,6 +17,12 @@
#ifndef __FW_CFG_LIB__
#define __FW_CFG_LIB__
+//
+// The size, in bytes, of names of firmware configuration files, including at
+// least one terminating NUL byte.
+//
+#define QEMU_FW_CFG_FNAME_SIZE 56
+
typedef enum {
QemuFwCfgItemSignature = 0x0000,
QemuFwCfgItemInterfaceVersion = 0x0001,