diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-06-28 07:00:39 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-06-28 07:00:39 +0000 |
commit | 3eb9473ea9a949badfe06ae61d2d3fcfa53651c7 (patch) | |
tree | e9d8c368dbb1e58794b2c00acefe4bbad270f8c4 /EdkCompatibilityPkg/Foundation/Framework/Ppi/Variable | |
parent | 30d4a0c7ec19938196b1308006b990e0945150da (diff) | |
download | edk2-platforms-3eb9473ea9a949badfe06ae61d2d3fcfa53651c7.tar.xz |
Add in the 1st version of ECP.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2832 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Foundation/Framework/Ppi/Variable')
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Framework/Ppi/Variable/Variable.c | 29 | ||||
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Framework/Ppi/Variable/Variable.h | 62 |
2 files changed, 91 insertions, 0 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Framework/Ppi/Variable/Variable.c b/EdkCompatibilityPkg/Foundation/Framework/Ppi/Variable/Variable.c new file mode 100644 index 0000000000..bc0a2a27dc --- /dev/null +++ b/EdkCompatibilityPkg/Foundation/Framework/Ppi/Variable/Variable.c @@ -0,0 +1,29 @@ +/*++
+
+Copyright (c) 2004, 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:
+
+ Variable.c
+
+Abstract:
+
+ Boot Mode PPI GUID as defined in PEI EAS
+
+--*/
+
+#include "Tiano.h"
+#include "PeiBind.h"
+#include "PeiApi.h"
+#include EFI_PPI_DEFINITION (Variable)
+
+EFI_GUID gPeiReadOnlyVariablePpiGuid = PEI_READ_ONLY_VARIABLE_ACCESS_PPI_GUID;
+
+EFI_GUID_STRING(&gPeiReadOnlyVariablePpiGuid, "Variable", "Read Only Variable PPI");
diff --git a/EdkCompatibilityPkg/Foundation/Framework/Ppi/Variable/Variable.h b/EdkCompatibilityPkg/Foundation/Framework/Ppi/Variable/Variable.h new file mode 100644 index 0000000000..f07fe360db --- /dev/null +++ b/EdkCompatibilityPkg/Foundation/Framework/Ppi/Variable/Variable.h @@ -0,0 +1,62 @@ +/*++
+
+Copyright (c) 2004, 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:
+
+ Variable.h
+
+Abstract:
+
+ Read-only Variable Service PPI as defined in Tiano
+
+--*/
+
+#ifndef _PEI_READ_ONLY_VARIABLE_PPI_H
+#define _PEI_READ_ONLY_VARIABLE_PPI_H
+
+#include "EfiVariable.h"
+
+#define PEI_READ_ONLY_VARIABLE_ACCESS_PPI_GUID \
+ { \
+ 0x3cdc90c6, 0x13fb, 0x4a75, 0x9e, 0x79, 0x59, 0xe9, 0xdd, 0x78, 0xb9, 0xfa \
+ }
+
+
+typedef
+EFI_STATUS
+(EFIAPI *PEI_GET_VARIABLE) (
+ IN EFI_PEI_SERVICES **PeiServices,
+ IN CHAR16 *VariableName,
+ IN EFI_GUID * VendorGuid,
+ OUT UINT32 *Attributes OPTIONAL,
+ IN OUT UINTN *DataSize,
+ OUT VOID *Data
+ );
+
+typedef
+EFI_STATUS
+(EFIAPI *PEI_GET_NEXT_VARIABLE_NAME) (
+ IN EFI_PEI_SERVICES **PeiServices,
+ IN OUT UINTN *VariableNameSize,
+ IN OUT CHAR16 *VariableName,
+ IN OUT EFI_GUID * VendorGuid
+ );
+
+typedef struct PEI_READ_ONLY_VARIABLE_PPI {
+ PEI_GET_VARIABLE PeiGetVariable;
+ PEI_GET_NEXT_VARIABLE_NAME PeiGetNextVariableName;
+} PEI_READ_ONLY_VARIABLE_PPI;
+
+EFI_FORWARD_DECLARATION (PEI_MASTER_BOOT_MODE_PPI);
+
+extern EFI_GUID gPeiReadOnlyVariablePpiGuid;
+
+#endif
|