From 8c395f7b13997a5991cfe4435ccd36496d86d4cb Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Thu, 28 Dec 2006 05:16:05 +0000 Subject: [PATCH] Introduce a new Guid with CName gEfiGenericPlatformVariableGuid to pair with those Unicode String names, which are forbidden to pair with gEfiGlobalVariableGuid according to newest Uefi Spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2144 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkModulePkg/EdkModulePkg.spd | 25 ++++++++++------- EdkModulePkg/Include/EdkDxe.h | 1 + EdkModulePkg/Include/EdkPeim.h | 1 + .../Include/Guid/GenericPlatformVariable.h | 27 +++++++++++++++++++ 4 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 EdkModulePkg/Include/Guid/GenericPlatformVariable.h diff --git a/EdkModulePkg/EdkModulePkg.spd b/EdkModulePkg/EdkModulePkg.spd index db8be51a64..2dee05c2b7 100644 --- a/EdkModulePkg/EdkModulePkg.spd +++ b/EdkModulePkg/EdkModulePkg.spd @@ -7,11 +7,11 @@ Edk Module Package Reference Implementations This Module provides standard reference information for EFI/Tiano implementations. Copyright (c) 2006, 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 + 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. FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052 @@ -452,7 +452,7 @@ gEfiGenericPlatformTokenSpaceGuid 18D15EA6-9E14-40a1-B39C-59C44DA9D891 - This is the token space GUID for platform generic PCD definitions. + This is the token space GUID for platform generic PCD definitions. Now FlashLayout and Platform CPU belong to this space. @@ -640,6 +640,11 @@ 060CC026-4C0D-4DDA-8F41-595FEF00A502 + + gEfiGenericPlatformVariableGuid + 59d1c24f-50f1-401a-b101-f33e0daed443 + The variable space Guid to pair with a Unicode string name to tag an EFI variable + @@ -903,7 +908,7 @@ UINT32 FIXED_AT_BUILD 0x08 - The maximum number of callback function, which will be triggered when + The maximum number of callback function, which will be triggered when a PCD entry is been set, can be registered for a single PCD entry in PEI phase. @@ -913,7 +918,7 @@ UINT32 FIXED_AT_BUILD 0x0 - The base address of the VPD (Vital Product Data) region. It is + The base address of the VPD (Vital Product Data) region. It is normally a region reserved on flash. @@ -950,7 +955,7 @@ BOOLEAN FEATURE_FLAG TRUE - This feature flag can be used to enable or disable the Pcd PEIM database + This feature flag can be used to enable or disable the Pcd PEIM database traverse capability. Disable it can reduce the size of final image generated. @@ -960,7 +965,7 @@ BOOLEAN FEATURE_FLAG TRUE - This feature flag can be used to enable or disable the Pcd DXE database + This feature flag can be used to enable or disable the Pcd DXE database traverse capability. Disable it can reduce the size of final image generated. diff --git a/EdkModulePkg/Include/EdkDxe.h b/EdkModulePkg/Include/EdkDxe.h index 2162937c65..7b5469b855 100644 --- a/EdkModulePkg/Include/EdkDxe.h +++ b/EdkModulePkg/Include/EdkDxe.h @@ -58,6 +58,7 @@ Abstract: #include #include #include +#include #include diff --git a/EdkModulePkg/Include/EdkPeim.h b/EdkModulePkg/Include/EdkPeim.h index a39ed5cdb4..e76d83df85 100644 --- a/EdkModulePkg/Include/EdkPeim.h +++ b/EdkModulePkg/Include/EdkPeim.h @@ -47,6 +47,7 @@ Abstract: #include #include #include +#include #include #include diff --git a/EdkModulePkg/Include/Guid/GenericPlatformVariable.h b/EdkModulePkg/Include/Guid/GenericPlatformVariable.h new file mode 100644 index 0000000000..00ae375e59 --- /dev/null +++ b/EdkModulePkg/Include/Guid/GenericPlatformVariable.h @@ -0,0 +1,27 @@ +/*++ + +Copyright (c) 2006, 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: + + GenericPlatformVariable.h + +Abstract: + + The variable space Guid to pair with a Unicode string name to tag an EFI variable. + +--*/ + +#ifndef _GENERIC_PLATFORM_VARIABLE_H_ +#define _GENERIC_PLATFORM_VARIABLE_H_ + +extern EFI_GUID gEfiGenericPlatformVariableGuid; + +#endif -- 2.39.2