mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
8819a096b1
commit
6a904296e4
|
@ -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,
|
||||
|
|
|
@ -278,7 +278,7 @@ QemuFwCfgFindFile (
|
|||
UINT32 FileSize;
|
||||
UINT16 FileSelect;
|
||||
UINT16 FileReserved;
|
||||
CHAR8 FName[56];
|
||||
CHAR8 FName[QEMU_FW_CFG_FNAME_SIZE];
|
||||
|
||||
FileSize = QemuFwCfgRead32 ();
|
||||
FileSelect = QemuFwCfgRead16 ();
|
||||
|
|
Loading…
Reference in New Issue