diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-24 08:13:32 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-24 08:13:32 +0000 |
commit | dbdaaec45c275b244266c57a024d9296debfe268 (patch) | |
tree | 9cab4926bf36ed26768ffbbc81e023ec8fdba736 | |
parent | 8b29c893b161ca55f2a81d32b52b1f3309968f30 (diff) | |
download | edk2-dbdaaec45c275b244266c57a024d9296debfe268.zip edk2-dbdaaec45c275b244266c57a024d9296debfe268.tar.gz edk2-dbdaaec45c275b244266c57a024d9296debfe268.tar.bz2 |
1) Fix bug reported on the PcdSetEx* Macro.
2) Add SKU_ID type
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@252 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdePkg/Include/Library/PcdLib.h | 12 | ||||
-rw-r--r-- | MdePkg/Include/Ppi/Pcd.h | 2 | ||||
-rw-r--r-- | MdePkg/Include/Protocol/Pcd.h | 2 | ||||
-rw-r--r-- | MdePkg/Library/DxePcdLib/DxePcdLib.msa | 5 |
4 files changed, 14 insertions, 7 deletions
diff --git a/MdePkg/Include/Library/PcdLib.h b/MdePkg/Include/Library/PcdLib.h index 1375e00..631aa40 100644 --- a/MdePkg/Include/Library/PcdLib.h +++ b/MdePkg/Include/Library/PcdLib.h @@ -92,12 +92,12 @@ Module Name: PcdLib.h //
// Dynamic Set Ex
//
-#define PcdSetEx8 (Guid, TokenName, Value) LibPcdSetEx8 (Guid, _PCD_TOKEN_##TokenName, Value)
-#define PcdSetEx16 (Guid, TokenName, Value) LibPcdSetEx16 (Guid, _PCD_TOKEN_##TokenName, Value)
-#define PcdSetEx32 (Guid, TokenName, Value) LibPcdSetEx32 (Guid, _PCD_TOKEN_##TokenName, Value)
-#define PcdSetEx64 (Guid, TokenName, Value) LibPcdSetEx64 (Guid, _PCD_TOKEN_##TokenName, Value)
-#define PcdSetExPtr (Guid, TokenName, Value) LibPcdSetExPtr (Guid, _PCD_TOKEN_##TokenName, Value)
-#define PcdSetExBool(Guid, TokenName, Value) LibPcdSetExBool(Guid, _PCD_TOKEN_##TokenName, Value)
+#define PcdSetEx8(Guid, TokenName, Value) LibPcdSetEx8 (Guid, _PCD_TOKEN_##TokenName, Value)
+#define PcdSetEx16(Guid, TokenName, Value) LibPcdSetEx16 (Guid, _PCD_TOKEN_##TokenName, Value)
+#define PcdSetEx32(Guid, TokenName, Value) LibPcdSetEx32 (Guid, _PCD_TOKEN_##TokenName, Value)
+#define PcdSetEx64(Guid, TokenName, Value) LibPcdSetEx64 (Guid, _PCD_TOKEN_##TokenName, Value)
+#define PcdSetExPtr(Guid, TokenName, Value) LibPcdSetExPtr (Guid, _PCD_TOKEN_##TokenName, Value)
+#define PcdSetExBool(Guid, TokenName, Value) LibPcdSetExBool(Guid, _PCD_TOKEN_##TokenName, Value)
/**
diff --git a/MdePkg/Include/Ppi/Pcd.h b/MdePkg/Include/Ppi/Pcd.h index 2b968f0..8027375 100644 --- a/MdePkg/Include/Ppi/Pcd.h +++ b/MdePkg/Include/Ppi/Pcd.h @@ -22,6 +22,8 @@ extern EFI_GUID gPcdPpiGuid; #define PCD_PPI_GUID \
{ 0x632df884, 0x8023, 0x4872, { 0xb6, 0x70, 0xb7, 0x4a, 0x30, 0x19, 0x16, 0xe9 } }
+typedef UINT8 SKU_ID;
+
typedef
EFI_STATUS
(EFIAPI *PCD_PPI_SET_SKU) (
diff --git a/MdePkg/Include/Protocol/Pcd.h b/MdePkg/Include/Protocol/Pcd.h index 880ae42..ccdfd13 100644 --- a/MdePkg/Include/Protocol/Pcd.h +++ b/MdePkg/Include/Protocol/Pcd.h @@ -22,6 +22,8 @@ extern EFI_GUID gPcdProtocolGuid; #define PCD_PROTOCOL_GUID \
{ 0x11b34006, 0xd85b, 0x4d0a, { 0xa2, 0x90, 0xd5, 0xa5, 0x71, 0x31, 0xe, 0xf7 } }
+typedef UINT8 SKU_ID;
+
typedef
EFI_STATUS
(EFIAPI *PCD_PROTOCOL_SET_SKU) (
diff --git a/MdePkg/Library/DxePcdLib/DxePcdLib.msa b/MdePkg/Library/DxePcdLib/DxePcdLib.msa index dd7cbce..9cfd4a7 100644 --- a/MdePkg/Library/DxePcdLib/DxePcdLib.msa +++ b/MdePkg/Library/DxePcdLib/DxePcdLib.msa @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -42,6 +42,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <Includes>
<PackageName>MdePkg</PackageName>
</Includes>
+ <Protocols>
+ <Protocol Usage="ALWAYS_CONSUMED">Pcd</Protocol>
+ </Protocols>
<Externs>
<Extern>
<Constructor>PcdLibConstructor</Constructor>
|