mirror of https://github.com/acidanthera/audk.git
Add some comments, clear describe the efi varstore type.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14594 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
46c3efbbcf
commit
c0462ea7e3
|
@ -1625,8 +1625,14 @@ ParseOpCodes (
|
|||
// Create a EFI variable Storage for this FormSet
|
||||
//
|
||||
if (OpCodeLength < sizeof (EFI_IFR_VARSTORE_EFI)) {
|
||||
//
|
||||
// Create efi varstore with format follow UEFI spec before 2.3.1.
|
||||
//
|
||||
Storage = CreateStorage (FormSet, EFI_HII_VARSTORE_EFI_VARIABLE, OpCodeData);
|
||||
} else {
|
||||
//
|
||||
// Create efi varstore with format follow UEFI spec 2.3.1 and later.
|
||||
//
|
||||
Storage = CreateStorage (FormSet, EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER, OpCodeData);
|
||||
}
|
||||
CopyMem (&Storage->VarStoreId, &((EFI_IFR_VARSTORE_EFI *) OpCodeData)->VarStoreId, sizeof (EFI_VARSTORE_ID));
|
||||
|
|
|
@ -109,8 +109,8 @@ typedef struct {
|
|||
|
||||
#define EFI_HII_VARSTORE_BUFFER 0
|
||||
#define EFI_HII_VARSTORE_NAME_VALUE 1
|
||||
#define EFI_HII_VARSTORE_EFI_VARIABLE 2
|
||||
#define EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER 3
|
||||
#define EFI_HII_VARSTORE_EFI_VARIABLE 2 // EFI Varstore type follow UEFI spec before 2.3.1.
|
||||
#define EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER 3 // EFI varstore type follow UEFI spec 2.3.1 and later.
|
||||
|
||||
#define FORM_INCONSISTENT_VALIDATION 0
|
||||
#define FORM_NO_SUBMIT_VALIDATION 1
|
||||
|
|
Loading…
Reference in New Issue