diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-18 12:21:01 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-18 12:21:01 +0000 |
commit | c8ad2d7a296c851c2a91519f80dab479df0fdf46 (patch) | |
tree | 7f192e2039479dd1e51ea275568831d68438b12e /MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounter.c | |
parent | b36d134faf4305247830522b8e2bb255e98c5699 (diff) | |
download | edk2-platforms-c8ad2d7a296c851c2a91519f80dab479df0fdf46.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounter.c')
-rw-r--r-- | MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounter.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounter.c b/MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounter.c index 9df64fe1f9..ddb0d2ed49 100644 --- a/MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounter.c +++ b/MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounter.c @@ -2,7 +2,7 @@ Produce the UEFI boot service GetNextMonotonicCount() and runtime service
GetNextHighMonotonicCount().
-Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 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
@@ -16,6 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Uefi.h>
#include <Protocol/MonotonicCounter.h>
+#include <Guid/MtcVendor.h>
#include <Library/BaseLib.h>
#include <Library/UefiDriverEntryPoint.h>
@@ -39,16 +40,6 @@ UINT64 mEfiMtc; //
EFI_EVENT mEfiMtcEvent;
-//
-// Name of the variable for the high part of monotonic counter
-//
-CHAR16 *mEfiMtcName = (CHAR16 *) L"MTC";
-
-//
-// Vendor GUID of the variable for the high part of monotonic counter
-//
-EFI_GUID mEfiMtcGuid = { 0xeb704011, 0x1402, 0x11d3, { 0x8e, 0x77, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } };
-
/**
Returns a monotonically increasing count for the platform.
@@ -171,8 +162,8 @@ MonotonicCounterDriverGetNextHighMonotonicCount ( // Update the NV variable to match the new high part
//
return EfiSetVariable (
- mEfiMtcName,
- &mEfiMtcGuid,
+ MTC_VARIABLE_NAME,
+ &gMtcVendorGuid,
EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS,
sizeof (UINT32),
HighCount
@@ -241,8 +232,8 @@ MonotonicCounterDriverInitialize ( //
BufferSize = sizeof (UINT32);
Status = EfiGetVariable (
- mEfiMtcName,
- &mEfiMtcGuid,
+ MTC_VARIABLE_NAME,
+ &gMtcVendorGuid,
NULL,
&BufferSize,
&HighCount
|