diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /EDK/Foundation/Framework/Ppi/Variable2 | |
download | zprj-master.tar.xz |
Diffstat (limited to 'EDK/Foundation/Framework/Ppi/Variable2')
-rw-r--r-- | EDK/Foundation/Framework/Ppi/Variable2/Variable2.c | 29 | ||||
-rw-r--r-- | EDK/Foundation/Framework/Ppi/Variable2/Variable2.h | 61 |
2 files changed, 90 insertions, 0 deletions
diff --git a/EDK/Foundation/Framework/Ppi/Variable2/Variable2.c b/EDK/Foundation/Framework/Ppi/Variable2/Variable2.c new file mode 100644 index 0000000..3f4d57a --- /dev/null +++ b/EDK/Foundation/Framework/Ppi/Variable2/Variable2.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2007, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + Variable2.c + +Abstract: + + Read-only Variable2 Service PPI as defined in PI1.0 + +--*/ + +#include "Tiano.h" +#include "PeiBind.h" +#include "PeiApi.h" +#include EFI_PPI_DEFINITION (Variable2) + +EFI_GUID gPeiReadOnlyVariable2PpiGuid = EFI_PEI_READ_ONLY_VARIABLE2_PPI_GUID; + +EFI_GUID_STRING(&gPeiReadOnlyVariable2PpiGuid, "Variable2", "Read Only Variable2 PPI"); diff --git a/EDK/Foundation/Framework/Ppi/Variable2/Variable2.h b/EDK/Foundation/Framework/Ppi/Variable2/Variable2.h new file mode 100644 index 0000000..31020ed --- /dev/null +++ b/EDK/Foundation/Framework/Ppi/Variable2/Variable2.h @@ -0,0 +1,61 @@ +/*++ + +Copyright (c) 2007, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + Variable2.h + +Abstract: + + Read-only Variable2 Service PPI as defined in PI1.0 + +--*/ + +#ifndef _PEI_READ_ONLY_VARIABLE2_PPI_H +#define _PEI_READ_ONLY_VARIABLE2_PPI_H + +#include "EfiVariable.h" + +#define EFI_PEI_READ_ONLY_VARIABLE2_PPI_GUID \ + { \ + 0x2ab86ef5, 0xecb5, 0x4134, 0xb5, 0x56, 0x38, 0x54, 0xca, 0x1f, 0xe1, 0xb4 \ + } + +EFI_FORWARD_DECLARATION (EFI_PEI_READ_ONLY_VARIABLE2_PPI); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_GET_VARIABLE2) ( + IN CONST EFI_PEI_READ_ONLY_VARIABLE2_PPI *This, + IN CONST CHAR16 *VariableName, + IN CONST EFI_GUID *VariableGuid, + OUT UINT32 *Attributes, + IN OUT UINTN *DataSize, + OUT VOID *Data + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_GET_NEXT_VARIABLE_NAME2) ( + IN CONST EFI_PEI_READ_ONLY_VARIABLE2_PPI *This, + IN OUT UINTN *VariableNameSize, + IN OUT CHAR16 *VariableName, + IN OUT EFI_GUID *VariableGuid + ); + +typedef struct _EFI_PEI_READ_ONLY_VARIABLE2_PPI { + EFI_PEI_GET_VARIABLE2 GetVariable; + EFI_PEI_GET_NEXT_VARIABLE_NAME2 GetNextVariableName; +} EFI_PEI_READ_ONLY_VARIABLE2_PPI; + +extern EFI_GUID gPeiReadOnlyVariable2PpiGuid; + +#endif |