Clean up the private GUID definition in module Level.
0. Remove the unused private GUID from module source files. 1. Use gEfiCallerIdGuid replace of the private module GUID. 2. Add the public header files to define HII FormSet and PackageList GUID used in every HII driver. 3. Move two EBC protocols for debug purpose from EBC driver to MdeModulePkg Include directory. Signed-off-by: lgao4 Reviewed-by: ydong10 gdong1 tye jfan12 wli12 rsun3 jyao1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12373 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -61,7 +61,6 @@ extern UINT8 PlatDriOverrideDxeStrings[];
|
||||
//
|
||||
// module global data
|
||||
//
|
||||
EFI_GUID mPlatformOverridesManagerGuid = PLAT_OVER_MNGR_GUID;
|
||||
CHAR16 mVariableName[] = L"Data";
|
||||
LIST_ENTRY mMappingDataBase = INITIALIZE_LIST_HEAD_VARIABLE (mMappingDataBase);
|
||||
BOOLEAN mEnvironmentVariableRead = FALSE;
|
||||
@@ -92,7 +91,7 @@ HII_VENDOR_DEVICE_PATH mHiiVendorDevicePath = {
|
||||
(UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)
|
||||
}
|
||||
},
|
||||
EFI_CALLER_ID_GUID
|
||||
PLAT_OVER_MNGR_GUID
|
||||
},
|
||||
{
|
||||
END_DEVICE_PATH_TYPE,
|
||||
@@ -400,7 +399,7 @@ UpdateDeviceSelectPage (
|
||||
//
|
||||
HiiUpdateForm (
|
||||
Private->RegisteredHandle,
|
||||
&mPlatformOverridesManagerGuid,
|
||||
&gPlatformOverridesManagerGuid,
|
||||
FORM_ID_DEVICE,
|
||||
StartOpCodeHandle, // Label FORM_ID_DEVICE
|
||||
EndOpCodeHandle // LABEL_END
|
||||
@@ -531,7 +530,7 @@ UpdateDeviceSelectPage (
|
||||
//
|
||||
HiiUpdateForm (
|
||||
Private->RegisteredHandle,
|
||||
&mPlatformOverridesManagerGuid,
|
||||
&gPlatformOverridesManagerGuid,
|
||||
FORM_ID_DEVICE,
|
||||
StartOpCodeHandle, // Label FORM_ID_DEVICE
|
||||
EndOpCodeHandle // LABEL_END
|
||||
@@ -693,7 +692,7 @@ UpdateBindingDriverSelectPage (
|
||||
//
|
||||
HiiUpdateForm (
|
||||
Private->RegisteredHandle,
|
||||
&mPlatformOverridesManagerGuid,
|
||||
&gPlatformOverridesManagerGuid,
|
||||
FORM_ID_DRIVER,
|
||||
StartOpCodeHandle,
|
||||
EndOpCodeHandle
|
||||
@@ -860,7 +859,7 @@ UpdateBindingDriverSelectPage (
|
||||
//
|
||||
HiiUpdateForm (
|
||||
Private->RegisteredHandle,
|
||||
&mPlatformOverridesManagerGuid,
|
||||
&gPlatformOverridesManagerGuid,
|
||||
FORM_ID_DRIVER,
|
||||
StartOpCodeHandle, // Label FORM_ID_DRIVER
|
||||
EndOpCodeHandle // LABEL_END
|
||||
@@ -937,7 +936,7 @@ UpdatePrioritySelectPage (
|
||||
//
|
||||
HiiUpdateForm (
|
||||
Private->RegisteredHandle,
|
||||
&mPlatformOverridesManagerGuid,
|
||||
&gPlatformOverridesManagerGuid,
|
||||
FORM_ID_ORDER,
|
||||
StartOpCodeHandle,
|
||||
EndOpCodeHandle
|
||||
@@ -1060,7 +1059,7 @@ UpdatePrioritySelectPage (
|
||||
//
|
||||
HiiUpdateForm (
|
||||
Private->RegisteredHandle,
|
||||
&mPlatformOverridesManagerGuid,
|
||||
&gPlatformOverridesManagerGuid,
|
||||
FORM_ID_ORDER,
|
||||
StartOpCodeHandle, // Label FORM_ID_ORDER
|
||||
EndOpCodeHandle // LABEL_END
|
||||
@@ -1172,7 +1171,7 @@ PlatOverMngrExtractConfig (
|
||||
}
|
||||
|
||||
*Progress = Request;
|
||||
if ((Request != NULL) && !HiiIsConfigHdrMatch (Request, &mPlatformOverridesManagerGuid, mVariableName)) {
|
||||
if ((Request != NULL) && !HiiIsConfigHdrMatch (Request, &gPlatformOverridesManagerGuid, mVariableName)) {
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
@@ -1190,7 +1189,7 @@ PlatOverMngrExtractConfig (
|
||||
// Allocate and fill a buffer large enough to hold the <ConfigHdr> template
|
||||
// followed by "&OFFSET=0&WIDTH=WWWWWWWWWWWWWWWW" followed by a Null-terminator
|
||||
//
|
||||
ConfigRequestHdr = HiiConstructConfigHdr (&mPlatformOverridesManagerGuid, mVariableName, Private->DriverHandle);
|
||||
ConfigRequestHdr = HiiConstructConfigHdr (&gPlatformOverridesManagerGuid, mVariableName, Private->DriverHandle);
|
||||
Size = (StrLen (ConfigRequestHdr) + 32 + 1) * sizeof (CHAR16);
|
||||
ConfigRequest = AllocateZeroPool (Size);
|
||||
ASSERT (ConfigRequest != NULL);
|
||||
@@ -1263,14 +1262,14 @@ PlatOverMngrRouteConfig (
|
||||
}
|
||||
*Progress = Configuration;
|
||||
|
||||
if (!HiiIsConfigHdrMatch (Configuration, &mPlatformOverridesManagerGuid, mVariableName)) {
|
||||
if (!HiiIsConfigHdrMatch (Configuration, &gPlatformOverridesManagerGuid, mVariableName)) {
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
*Progress = Configuration + StrLen (Configuration);
|
||||
Private = EFI_CALLBACK_INFO_FROM_THIS (This);
|
||||
FakeNvData = &Private->FakeNvData;
|
||||
if (!HiiGetBrowserData (&mPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData)) {
|
||||
if (!HiiGetBrowserData (&gPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData)) {
|
||||
//
|
||||
// FakeNvData can't be got from SetupBrowser, which doesn't need to be set.
|
||||
//
|
||||
@@ -1338,7 +1337,7 @@ PlatOverMngrCallback (
|
||||
if (Action == EFI_BROWSER_ACTION_CHANGING) {
|
||||
Private = EFI_CALLBACK_INFO_FROM_THIS (This);
|
||||
FakeNvData = &Private->FakeNvData;
|
||||
if (!HiiGetBrowserData (&mPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData)) {
|
||||
if (!HiiGetBrowserData (&gPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData)) {
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
@@ -1401,7 +1400,7 @@ PlatOverMngrCallback (
|
||||
//
|
||||
// Pass changed uncommitted data back to Form Browser
|
||||
//
|
||||
HiiSetBrowserData (&mPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData, NULL);
|
||||
HiiSetBrowserData (&gPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData, NULL);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
@@ -1624,7 +1623,7 @@ PlatDriOverrideDxeInit (
|
||||
// Publish our HII data
|
||||
//
|
||||
mCallbackInfo->RegisteredHandle = HiiAddPackages (
|
||||
&mPlatformOverridesManagerGuid,
|
||||
&gPlatformOverridesManagerGuid,
|
||||
mCallbackInfo->DriverHandle,
|
||||
VfrBin,
|
||||
PlatDriOverrideDxeStrings,
|
||||
|
@@ -3,7 +3,7 @@
|
||||
The defintions are required both by Source code and Vfr file.
|
||||
The PLAT_OVER_MNGR_DATA structure, form guid and Ifr question ID are defined.
|
||||
|
||||
Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
@@ -17,10 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#ifndef _PLAT_OVER_MNGR_H_
|
||||
#define _PLAT_OVER_MNGR_H_
|
||||
|
||||
#define PLAT_OVER_MNGR_GUID \
|
||||
{ \
|
||||
0x8614567d, 0x35be, 0x4415, {0x8d, 0x88, 0xbd, 0x7d, 0xc, 0x9c, 0x70, 0xc0} \
|
||||
}
|
||||
#include <Guid/PlatDriOverrideHii.h>
|
||||
|
||||
//
|
||||
// The max number of the supported driver list.
|
||||
|
@@ -16,7 +16,7 @@
|
||||
# 4. It save all the mapping info in NV variables for the following boot,
|
||||
# which will be consumed by GetDriver API of the produced the platform override protocol.
|
||||
#
|
||||
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -78,6 +78,7 @@
|
||||
#
|
||||
# gEfiCallerIdGuid ## Private ## Variable:L"PlatDriOver"
|
||||
gEfiIfrTianoGuid ## CONSUMES ## Guid
|
||||
gPlatformOverridesManagerGuid ## PRODUCES ## Guid
|
||||
|
||||
[Protocols]
|
||||
gEfiComponentName2ProtocolGuid ## SOMETIMES_CONSUMED (Get Driver Name if ComponentName2Protocol exists)
|
||||
|
Reference in New Issue
Block a user