From 1db0e83a243195efe2dd4cb0ebc0cedb4fbb4de9 Mon Sep 17 00:00:00 2001 From: jchen20 Date: Fri, 10 Jul 2009 10:19:26 +0000 Subject: To keep the code not change as original for compatible purpose. GetNextVariable --> PeiGetVariable. SetVariable--> PeiSetVariable git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8880 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkPkg/Include/Ppi/ReadOnlyVariable.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/IntelFrameworkPkg/Include/Ppi/ReadOnlyVariable.h b/IntelFrameworkPkg/Include/Ppi/ReadOnlyVariable.h index 30015604af..077293749d 100644 --- a/IntelFrameworkPkg/Include/Ppi/ReadOnlyVariable.h +++ b/IntelFrameworkPkg/Include/Ppi/ReadOnlyVariable.h @@ -34,7 +34,12 @@ typedef struct _EFI_PEI_READ_ONLY_VARIABLE_PPI EFI_PEI_READ_ONLY_VARIABLE_PPI; #define EFI_VARIABLE_NON_VOLATILE 0x00000001 #define EFI_VARIABLE_BOOTSERVICE_ACCESS 0x00000002 #define EFI_VARIABLE_RUNTIME_ACCESS 0x00000004 - + /// + /// Inconsistent with specification here: + /// In Framework Spec, PeiCis0.91, there is no this field defined. + /// Keeping this inconsistance is for backward compatibility. + /// +#define EFI_VARIABLE_READ_ONLY 0x00000008 /** Get Variable value by Name and GUID pair @@ -103,8 +108,13 @@ EFI_STATUS /// variable services. /// struct _EFI_PEI_READ_ONLY_VARIABLE_PPI { - EFI_PEI_GET_VARIABLE GetVariable; ///< A service to ascertain a given variable name. - EFI_PEI_GET_NEXT_VARIABLE_NAME GetNextVariableName; ///< A service to ascertain a variable based upon a given, known variable + /// + /// Inconsistent with specification here: + /// In Framework Spec, PeiCis0.91, the field is named as GetVariable and GetNextVariableName. + /// Keeping this inconsistance is for backward compatibility. + /// + EFI_PEI_GET_VARIABLE PeiGetVariable; ///< A service to ascertain a given variable name. + EFI_PEI_GET_NEXT_VARIABLE_NAME PeiGetNextVariableName; ///< A service to ascertain a variable based upon a given, known variable }; extern EFI_GUID gEfiPeiReadOnlyVariablePpiGuid; -- cgit v1.2.3