]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add inf files for PeiSmbusLibSmbus2, PeiDxePostCodeLibReportStatusCode, PeiMemoryLib...
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 5 Jul 2007 06:59:50 +0000 (06:59 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 5 Jul 2007 06:59:50 +0000 (06:59 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3066 6f19259b-4bc3-4df7-8a09-765794883524

24 files changed:
MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c
MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf [new file with mode: 0644]
MdePkg/Library/DxeSmbusLib/DxeSmbusLib.msa
MdePkg/Library/DxeSmbusLib/InternalSmbusLib.h
MdePkg/Library/DxeSmbusLib/SmbusLib.c
MdePkg/Library/HiiLib/HiiLib.c
MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.inf [new file with mode: 0644]
MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PostCode.c
MdePkg/Library/PeiMemoryLib/CompareMemWrapper.c
MdePkg/Library/PeiMemoryLib/CopyMemWrapper.c
MdePkg/Library/PeiMemoryLib/MemLibGuid.c
MdePkg/Library/PeiMemoryLib/MemLibInternals.h
MdePkg/Library/PeiMemoryLib/PeiMemoryLib.inf [new file with mode: 0644]
MdePkg/Library/PeiMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem32Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem64Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/PeiMemoryLib/SetMemWrapper.c
MdePkg/Library/PeiSmbusLibSmbus2/InternalSmbusLib.h
MdePkg/Library/PeiSmbusLibSmbus2/PeiSmbusLib.c
MdePkg/Library/PeiSmbusLibSmbus2/PeiSmbusLib.inf [new file with mode: 0644]
MdePkg/Library/PeiSmbusLibSmbus2/PeiSmbusLib.msa
MdePkg/Library/PeiSmbusLibSmbus2/SmbusLib.c
MdePkg/MdePkg.dsc

index 18a7973f21226877f8f465ab01a16239c717080a..8ffa9c7aba6837d9a74a9558844e5ab223904100 100644 (file)
@@ -2,37 +2,37 @@
 Implementation of SmBusLib class library for PEI phase.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
 Implementation of SmBusLib class library for PEI phase.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 \r
 Module Name: DxeSmbusLib.c\r
 \r
 **/\r
 \r
 \r
 \r
 Module Name: DxeSmbusLib.c\r
 \r
 **/\r
 \r
+\r
 #include "InternalSmbusLib.h"\r
 \r
 #include "InternalSmbusLib.h"\r
 \r
-#include <Protocol/SmbusHc.h>\r
 \r
 //\r
 // Globle varible to cache pointer to Smbus protocol.\r
 //\r
 \r
 //\r
 // Globle varible to cache pointer to Smbus protocol.\r
 //\r
-STATIC EFI_SMBUS_HC_PROTOCOL      *mSmbus = NULL; \r
+STATIC EFI_SMBUS_HC_PROTOCOL      *mSmbus = NULL;\r
 \r
 /**\r
   The constructor function caches the pointer to Smbus protocol.\r
 \r
 /**\r
   The constructor function caches the pointer to Smbus protocol.\r
-  \r
+\r
   The constructor function locates Smbus protocol from protocol database.\r
   The constructor function locates Smbus protocol from protocol database.\r
-  It will ASSERT() if that operation fails and it will always return EFI_SUCCESS. \r
+  It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
@@ -44,7 +44,7 @@ SmbusLibConstructor (
   )\r
 {\r
   EFI_STATUS  Status;\r
   )\r
 {\r
   EFI_STATUS  Status;\r
-  \r
+\r
   Status = gBS->LocateProtocol (&gEfiSmbusHcProtocolGuid, NULL, (VOID**) &mSmbus);\r
   ASSERT_EFI_ERROR (Status);\r
   ASSERT (mSmbus != NULL);\r
   Status = gBS->LocateProtocol (&gEfiSmbusHcProtocolGuid, NULL, (VOID**) &mSmbus);\r
   ASSERT_EFI_ERROR (Status);\r
   ASSERT (mSmbus != NULL);\r
@@ -53,7 +53,7 @@ SmbusLibConstructor (
 }\r
 \r
 /**\r
 }\r
 \r
 /**\r
-  Executes an SMBus operation to an SMBus controller. \r
+  Executes an SMBus operation to an SMBus controller.\r
 \r
   This function provides a standard way to execute Smbus script\r
   as defined in the SmBus Specification. The data can either be of\r
 \r
   This function provides a standard way to execute Smbus script\r
   as defined in the SmBus Specification. The data can either be of\r
@@ -92,7 +92,7 @@ InternalSmBusExec (
                            SmbusDeviceAddress,\r
                            SMBUS_LIB_COMMAND (SmBusAddress),\r
                            SmbusOperation,\r
                            SmbusDeviceAddress,\r
                            SMBUS_LIB_COMMAND (SmBusAddress),\r
                            SmbusOperation,\r
-                           SMBUS_LIB_PEC (SmBusAddress),  \r
+                           SMBUS_LIB_PEC (SmBusAddress),\r
                            &Length,\r
                            Buffer\r
                            );\r
                            &Length,\r
                            Buffer\r
                            );\r
diff --git a/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf b/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf
new file mode 100644 (file)
index 0000000..1638fc5
--- /dev/null
@@ -0,0 +1,84 @@
+#/** @file\r
+# Component description file for Dxe Smbus Library.\r
+#\r
+# SMBUS Library that layers on top of the SMBUS Protocol.\r
+# Copyright (c) 2006, Intel Corporation\r
+#\r
+#  All rights reserved. This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution. The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#\r
+#**/\r
+\r
+################################################################################\r
+#\r
+# Defines Section - statements that will be processed to create a Makefile.\r
+#\r
+################################################################################\r
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = DxeSmbusLib\r
+  FILE_GUID                      = 4F369FB1-31A7-423c-960E-B3EFD337894F\r
+  MODULE_TYPE                    = DXE_DRIVER\r
+  VERSION_STRING                 = 1.0\r
+  LIBRARY_CLASS                  = SmbusLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER\r
+  EDK_RELEASE_VERSION            = 0x00020000\r
+  EFI_SPECIFICATION_VERSION      = 0x00020000\r
+\r
+  CONSTRUCTOR                    = SmbusLibConstructor\r
+\r
+#\r
+# The following information is for reference only and not required by the build tools.\r
+#\r
+#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
+#\r
+\r
+################################################################################\r
+#\r
+# Sources Section - list of files that are required for the build to succeed.\r
+#\r
+################################################################################\r
+\r
+[Sources.common]\r
+  SmbusLib.c\r
+  DxeSmbusLib.c\r
+  InternalSmbusLib.h\r
+\r
+################################################################################\r
+#\r
+# Package Dependency Section - list of Package files that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+\r
+\r
+################################################################################\r
+#\r
+# Library Class Section - list of Library Classes that are required for\r
+#                         this module.\r
+#\r
+################################################################################\r
+\r
+[LibraryClasses]\r
+  BaseMemoryLib\r
+  UefiBootServicesTableLib\r
+  DebugLib\r
+\r
+\r
+################################################################################\r
+#\r
+# Protocol C Name Section - list of Protocol and Protocol Notify C Names\r
+#                           that this module uses or produces.\r
+#\r
+################################################################################\r
+\r
+[Protocols]\r
+  gEfiSmbusHcProtocolGuid                        # PROTOCOL ALWAYS_CONSUMED\r
+\r
index 39b923a520126877652230c074b9798324f75742..87e1da96aa117eb4670dc1324c0bc74cdcb560db 100644 (file)
@@ -3,7 +3,7 @@
   <MsaHeader>\r
     <ModuleName>DxeSmbusLib</ModuleName>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
   <MsaHeader>\r
     <ModuleName>DxeSmbusLib</ModuleName>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
-    <GuidValue>07720769-A7D0-4a8d-BE41-71CC18EB3338</GuidValue>\r
+    <GuidValue>4F369FB1-31A7-423c-960E-B3EFD337894F</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for Dxe Smbus Library.</Abstract>\r
     <Description>SMBUS Library that layers on top of the SMBUS Protocol.</Description>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for Dxe Smbus Library.</Abstract>\r
     <Description>SMBUS Library that layers on top of the SMBUS Protocol.</Description>\r
@@ -45,7 +45,7 @@
   </PackageDependencies>\r
   <Protocols>\r
     <Protocol Usage="ALWAYS_CONSUMED">\r
   </PackageDependencies>\r
   <Protocols>\r
     <Protocol Usage="ALWAYS_CONSUMED">\r
-      <ProtocolCName>gEfiSmbusProtocolGuid</ProtocolCName>\r
+      <ProtocolCName>gEfiSmbusHcProtocolGuid</ProtocolCName>\r
     </Protocol>\r
   </Protocols>\r
   <Externs>\r
     </Protocol>\r
   </Protocols>\r
   <Externs>\r
index 01ea431351fcb84abbf160c1062b93ed899bc9fb..2435baeb9f5ef08cdd0d00e43e8b4dd662f606fd 100644 (file)
@@ -2,13 +2,13 @@
 Internal header file for Smbus library.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
 Internal header file for Smbus library.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 \r
 **/\r
 \r
 \r
 **/\r
@@ -16,6 +16,22 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef __INTERNAL_SMBUS_LIB_H\r
 #define __INTERNAL_SMBUS_LIB_H\r
 \r
 #ifndef __INTERNAL_SMBUS_LIB_H\r
 #define __INTERNAL_SMBUS_LIB_H\r
 \r
+//\r
+// The package level header files this module uses\r
+//\r
+#include <PiDxe.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+#include <Protocol/SmbusHc.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/SmbusLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+\r
 #include <IndustryStandard/Smbus.h>\r
 \r
 #define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress)      (((SmBusAddress) >> 1)  & 0x7f)\r
 #include <IndustryStandard/Smbus.h>\r
 \r
 #define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress)      (((SmBusAddress) >> 1)  & 0x7f)\r
@@ -28,7 +44,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 // Declaration for internal functions\r
 //\r
 /**\r
 // Declaration for internal functions\r
 //\r
 /**\r
-  Executes an SMBus operation to an SMBus controller. \r
+  Executes an SMBus operation to an SMBus controller.\r
 \r
   This function provides a standard way to execute Smbus script\r
   as defined in the SmBus Specification. The data can either be of\r
 \r
   This function provides a standard way to execute Smbus script\r
   as defined in the SmBus Specification. The data can either be of\r
index 93fadb6598fdf4e5dd8a6a8eebb474d6fc0a53bc..ad92ea0b8e56466b2bfe2d2e509b24dd5481c836 100644 (file)
@@ -2,13 +2,13 @@
 Implementation of SmBusLib class library for PEI phase.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
 Implementation of SmBusLib class library for PEI phase.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 \r
 Module Name: SmbusLib.c\r
 \r
 \r
 Module Name: SmbusLib.c\r
@@ -189,7 +189,7 @@ SmBusReadDataByte (
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusReadByte, SmBusAddress, 1, &Byte, Status);\r
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusReadByte, SmBusAddress, 1, &Byte, Status);\r
-  \r
+\r
   return Byte;\r
 }\r
 \r
   return Byte;\r
 }\r
 \r
@@ -228,7 +228,7 @@ SmBusWriteDataByte (
 \r
   Byte = Value;\r
   InternalSmBusExec (EfiSmbusWriteByte, SmBusAddress, 1, &Byte, Status);\r
 \r
   Byte = Value;\r
   InternalSmBusExec (EfiSmbusWriteByte, SmBusAddress, 1, &Byte, Status);\r
-  \r
+\r
   return Value;\r
 }\r
 \r
   return Value;\r
 }\r
 \r
@@ -241,7 +241,7 @@ SmBusWriteDataByte (
   If Status is not NULL, then the status of the executed command is returned in Status.\r
   If Length in SmBusAddress is not zero, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
   If Status is not NULL, then the status of the executed command is returned in Status.\r
   If Length in SmBusAddress is not zero, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
-  \r
+\r
   @param  SmBusAddress    Address that encodes the SMBUS Slave Address,\r
                           SMBUS Command, SMBUS Data Length, and PEC.\r
   @param  Status          Return status for the executed command.\r
   @param  SmBusAddress    Address that encodes the SMBUS Slave Address,\r
                           SMBUS Command, SMBUS Data Length, and PEC.\r
   @param  Status          Return status for the executed command.\r
@@ -263,7 +263,7 @@ SmBusReadDataWord (
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusReadWord, SmBusAddress, 2, &Word, Status);\r
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusReadWord, SmBusAddress, 2, &Word, Status);\r
-  \r
+\r
   return Word;\r
 }\r
 \r
   return Word;\r
 }\r
 \r
@@ -338,7 +338,7 @@ SmBusProcessCall (
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusProcessCall, SmBusAddress, 2, &Value, Status);\r
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusProcessCall, SmBusAddress, 2, &Value, Status);\r
-  \r
+\r
   return Value;\r
 }\r
 \r
   return Value;\r
 }\r
 \r
@@ -387,7 +387,7 @@ SmBusReadBlock (
   The SMBUS slave address, SMBUS command, and SMBUS length fields of SmBusAddress are required.\r
   Bytes are written to the SMBUS from Buffer.\r
   The number of bytes written is returned, and will never return a value larger than 32-bytes.\r
   The SMBUS slave address, SMBUS command, and SMBUS length fields of SmBusAddress are required.\r
   Bytes are written to the SMBUS from Buffer.\r
   The number of bytes written is returned, and will never return a value larger than 32-bytes.\r
-  If Status is not NULL, then the status of the executed command is returned in Status.  \r
+  If Status is not NULL, then the status of the executed command is returned in Status.\r
   If Length in SmBusAddress is zero or greater than 32, then ASSERT().\r
   If Buffer is NULL, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
   If Length in SmBusAddress is zero or greater than 32, then ASSERT().\r
   If Buffer is NULL, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
index dc5afb7592c706e15c8539ca55899625e029d9e8..f27d5fc0c7111f8b1691333cfa21185acf22bfc8 100644 (file)
@@ -2,22 +2,33 @@
   HII Library implementation that uses DXE protocols and services.\r
 \r
   Copyright (c) 2006, Intel Corporation<BR>\r
   HII Library implementation that uses DXE protocols and services.\r
 \r
   Copyright (c) 2006, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
 \r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
   Module Name:  HiiLib.c\r
 \r
 **/\r
 \r
 \r
   Module Name:  HiiLib.c\r
 \r
 **/\r
 \r
+//\r
+// The package level header files this module uses\r
+//\r
+#include <PiDxe.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/HiiLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
+\r
 /**\r
   This function allocates pool for an EFI_HII_PACKAGES structure\r
   with enough space for the variable argument list of package pointers.\r
 /**\r
   This function allocates pool for an EFI_HII_PACKAGES structure\r
   with enough space for the variable argument list of package pointers.\r
-  The allocated structure is initialized using NumberOfPackages, Guid, \r
+  The allocated structure is initialized using NumberOfPackages, Guid,\r
   and the variable length argument list of package pointers.\r
 \r
   @param  NumberOfPackages The number of HII packages to prepare.\r
   and the variable length argument list of package pointers.\r
 \r
   @param  NumberOfPackages The number of HII packages to prepare.\r
@@ -36,7 +47,7 @@ PreparePackages (
 {\r
   //\r
   // BugBug: Need more detail on UEFI spec.\r
 {\r
   //\r
   // BugBug: Need more detail on UEFI spec.\r
-  // \r
+  //\r
   ASSERT (FALSE);\r
   ASSERT (FALSE);\r
-  return NULL; \r
+  return NULL;\r
 }\r
 }\r
diff --git a/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.inf b/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.inf
new file mode 100644 (file)
index 0000000..711cfee
--- /dev/null
@@ -0,0 +1,80 @@
+#/** @file\r
+# Post code library based on report status code library\r
+#\r
+# PostCode Library for PEIMs and DXE drivers that send PostCode to ReportStatusCode\r
+# Copyright (c) 2006, Intel Corporation.\r
+#\r
+#  All rights reserved. This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution. The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#\r
+#**/\r
+\r
+################################################################################\r
+#\r
+# Defines Section - statements that will be processed to create a Makefile.\r
+#\r
+################################################################################\r
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = PeiDxePostCodeLibReportStatusCode\r
+  FILE_GUID                      = e062c52d-78dc-4cc5-b246-b13497a8123c\r
+  MODULE_TYPE                    = PEIM\r
+  VERSION_STRING                 = 1.0\r
+  LIBRARY_CLASS                  = PostCodeLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER PEIM PEI_CORE UEFI_APPLICATION UEFI_DRIVER\r
+  EDK_RELEASE_VERSION            = 0x00020000\r
+  EFI_SPECIFICATION_VERSION      = 0x00020000\r
+\r
+\r
+#\r
+# The following information is for reference only and not required by the build tools.\r
+#\r
+#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
+#\r
+\r
+################################################################################\r
+#\r
+# Sources Section - list of files that are required for the build to succeed.\r
+#\r
+################################################################################\r
+\r
+[Sources.common]\r
+  PostCode.c\r
+\r
+################################################################################\r
+#\r
+# Package Dependency Section - list of Package files that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+\r
+\r
+################################################################################\r
+#\r
+# Library Class Section - list of Library Classes that are required for\r
+#                         this module.\r
+#\r
+################################################################################\r
+\r
+[LibraryClasses]\r
+  BaseLib\r
+  PcdLib\r
+  ReportStatusCodeLib\r
+\r
+\r
+################################################################################\r
+#\r
+# Pcd FIXED_AT_BUILD - list of PCDs that this module is coded for.\r
+#\r
+################################################################################\r
+\r
+[PcdsFixedAtBuild.common]\r
+  PcdPostCodePropertyMask|gEfiMdePkgTokenSpaceGuid\r
+\r
index 408ede45c72b143c75e756c2ed9e57c178173c79..fb0de3f6bf64af226f0602b1a64ca1413f9b7fed 100644 (file)
@@ -2,24 +2,36 @@
   Report Status Code Library Post Code functions for DXE Phase.\r
 \r
   Copyright (c) 2006, Intel Corporation<BR>\r
   Report Status Code Library Post Code functions for DXE Phase.\r
 \r
   Copyright (c) 2006, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
 \r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
 \r
 **/\r
 \r
+//\r
+// The package level header files this module uses\r
+//\r
+#include <PiPei.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PostCodeLib.h>\r
+#include <Library/ReportStatusCodeLib.h>\r
+#include <Library/PcdLib.h>\r
+#include <Library/BaseLib.h>\r
+\r
 /**\r
   Converts POST code value to status code value.\r
 \r
 /**\r
   Converts POST code value to status code value.\r
 \r
-  This macro converts the post code to status code value. Bits 0..4 of PostCode \r
-  are mapped to bits 16..20 of status code value, and bits 5..7 of PostCode are mapped to bits \r
-  24..26 of status code value.  \r
+  This macro converts the post code to status code value. Bits 0..4 of PostCode\r
+  are mapped to bits 16..20 of status code value, and bits 5..7 of PostCode are mapped to bits\r
+  24..26 of status code value.\r
 \r
 \r
-  @param  PostCode  POST code value. \r
+  @param  PostCode  POST code value.\r
 \r
   @return The converted status code value.\r
 \r
 \r
   @return The converted status code value.\r
 \r
 /**\r
   Sends an 32-bit value to a POST card.\r
 \r
 /**\r
   Sends an 32-bit value to a POST card.\r
 \r
-  Sends the 32-bit value specified by Value to a POST card, and returns Value.  \r
-  Some implementations of this library function may perform I/O operations \r
-  directly to a POST card device.  Other implementations may send Value to \r
-  ReportStatusCode(), and the status code reporting mechanism will eventually \r
+  Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
+  Some implementations of this library function may perform I/O operations\r
+  directly to a POST card device.  Other implementations may send Value to\r
+  ReportStatusCode(), and the status code reporting mechanism will eventually\r
   display the 32-bit value on the status reporting device.\r
   display the 32-bit value on the status reporting device.\r
-  \r
-  PostCode() must actively prevent recursion.  If PostCode() is called while \r
-  processing another any other Report Status Code Library function, then \r
+\r
+  PostCode() must actively prevent recursion.  If PostCode() is called while\r
+  processing another any other Report Status Code Library function, then\r
   PostCode() must return Value immediately.\r
 \r
   @param  Value  The 32-bit value to write to the POST card.\r
   PostCode() must return Value immediately.\r
 \r
   @param  Value  The 32-bit value to write to the POST card.\r
@@ -60,21 +72,21 @@ PostCode (
   Sends an 32-bit value to a POST and associated ASCII string.\r
 \r
   Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
   Sends an 32-bit value to a POST and associated ASCII string.\r
 \r
   Sends the 32-bit value specified by Value to a POST card, and returns Value.\r
-  If Description is not NULL, then the ASCII string specified by Description is \r
-  also passed to the handler that displays the POST card value.  Some \r
-  implementations of this library function may perform I/O operations directly \r
-  to a POST card device.  Other implementations may send Value to ReportStatusCode(), \r
-  and the status code reporting mechanism will eventually display the 32-bit \r
-  value on the status reporting device.  \r
-\r
-  PostCodeWithDescription()must actively prevent recursion.  If \r
-  PostCodeWithDescription() is called while processing another any other Report \r
-  Status Code Library function, then PostCodeWithDescription() must return Value \r
+  If Description is not NULL, then the ASCII string specified by Description is\r
+  also passed to the handler that displays the POST card value.  Some\r
+  implementations of this library function may perform I/O operations directly\r
+  to a POST card device.  Other implementations may send Value to ReportStatusCode(),\r
+  and the status code reporting mechanism will eventually display the 32-bit\r
+  value on the status reporting device.\r
+\r
+  PostCodeWithDescription()must actively prevent recursion.  If\r
+  PostCodeWithDescription() is called while processing another any other Report\r
+  Status Code Library function, then PostCodeWithDescription() must return Value\r
   immediately.\r
 \r
   @param  Value        The 32-bit value to write to the POST card.\r
   immediately.\r
 \r
   @param  Value        The 32-bit value to write to the POST card.\r
-  @param  Description  Pointer to an ASCII string that is a description of the \r
-                       POST code value.  This is an optional parameter that may \r
+  @param  Description  Pointer to an ASCII string that is a description of the\r
+                       POST code value.  This is an optional parameter that may\r
                        be NULL.\r
 \r
   @return  Value\r
                        be NULL.\r
 \r
   @return  Value\r
@@ -87,7 +99,7 @@ PostCodeWithDescription (
   IN CONST CHAR8  *Description  OPTIONAL\r
   )\r
 {\r
   IN CONST CHAR8  *Description  OPTIONAL\r
   )\r
 {\r
-  if (Description == NULL) { \r
+  if (Description == NULL) {\r
     REPORT_STATUS_CODE (\r
       EFI_PROGRESS_CODE,\r
       POST_CODE_TO_STATUS_CODE_VALUE (Value)\r
     REPORT_STATUS_CODE (\r
       EFI_PROGRESS_CODE,\r
       POST_CODE_TO_STATUS_CODE_VALUE (Value)\r
@@ -108,12 +120,12 @@ PostCodeWithDescription (
 /**\r
   Returns TRUE if POST Codes are enabled.\r
 \r
 /**\r
   Returns TRUE if POST Codes are enabled.\r
 \r
-  This function returns TRUE if the POST_CODE_PROPERTY_POST_CODE_ENABLED \r
+  This function returns TRUE if the POST_CODE_PROPERTY_POST_CODE_ENABLED\r
   bit of PcdPostCodePropertyMask is set.  Otherwise FALSE is returned.\r
 \r
   bit of PcdPostCodePropertyMask is set.  Otherwise FALSE is returned.\r
 \r
-  @retval  TRUE   The POST_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
+  @retval  TRUE   The POST_CODE_PROPERTY_POST_CODE_ENABLED bit of\r
                   PcdPostCodeProperyMask is set.\r
                   PcdPostCodeProperyMask is set.\r
-  @retval  FALSE  The POST_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
+  @retval  FALSE  The POST_CODE_PROPERTY_POST_CODE_ENABLED bit of\r
                   PcdPostCodeProperyMask is clear.\r
 \r
 **/\r
                   PcdPostCodeProperyMask is clear.\r
 \r
 **/\r
@@ -130,13 +142,13 @@ PostCodeEnabled (
 /**\r
   Returns TRUE if POST code descriptions are enabled.\r
 \r
 /**\r
   Returns TRUE if POST code descriptions are enabled.\r
 \r
-  This function returns TRUE if the \r
-  POST_CODE_PROPERTY_POST_CODE_ENABLED bit of \r
+  This function returns TRUE if the\r
+  POST_CODE_PROPERTY_POST_CODE_ENABLED bit of\r
   PcdPostCodePropertyMask is set.  Otherwise FALSE is returned.\r
 \r
   PcdPostCodePropertyMask is set.  Otherwise FALSE is returned.\r
 \r
-  @retval  TRUE   The POST_CODE_PROPERTY_POST_CODE_ENABLED \r
+  @retval  TRUE   The POST_CODE_PROPERTY_POST_CODE_ENABLED\r
                   bit of PcdPostCodeProperyMask is set.\r
                   bit of PcdPostCodeProperyMask is set.\r
-  @retval  FALSE  The POST_CODE_PROPERTY_POST_CODE_ENABLED \r
+  @retval  FALSE  The POST_CODE_PROPERTY_POST_CODE_ENABLED\r
                   bit of PcdPostCodeProperyMask is clear.\r
 \r
 **/\r
                   bit of PcdPostCodeProperyMask is clear.\r
 \r
 **/\r
index 4c0d3eaadbab5863b3e4480e0ecad15e25767a89..9bcdc52ae71d9a0de0ff40c5b83072aa8b7c76b3 100644 (file)
@@ -34,8 +34,8 @@
   mismatched byte in DestinationBuffer.\r
   If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
   If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
   mismatched byte in DestinationBuffer.\r
   If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
   If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
 \r
 \r
   @param  DestinationBuffer Pointer to the destination buffer to compare.\r
 \r
 \r
   @param  DestinationBuffer Pointer to the destination buffer to compare.\r
index 9e620e2200a5ffe9a4580c7b4a923c260fa9d2c9..32c9db7d97451a31bd7c05148070b4c059fbb5a5 100644 (file)
@@ -31,8 +31,8 @@
   This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
   DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
   where SourceBuffer overlaps DestinationBuffer.\r
   This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
   DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
   where SourceBuffer overlaps DestinationBuffer.\r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
 \r
   @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
   @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
 \r
   @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
   @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
index 36da5b742424ea92fbe05836e41d9b6587ebac1c..a2f0850c7522a5004e2dbf6c9b218cd41ebe7adc 100644 (file)
@@ -23,6 +23,8 @@
 \r
 **/\r
 \r
 \r
 **/\r
 \r
+#include "MemLibInternals.h"\r
+\r
 /**\r
   Copies a source GUID to a destination GUID.\r
 \r
 /**\r
   Copies a source GUID to a destination GUID.\r
 \r
@@ -102,7 +104,7 @@ CompareGuid (
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 128-bit boundary, then ASSERT().\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 128-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
   @param  Length  Number of bytes in Buffer to scan.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
   @param  Length  Number of bytes in Buffer to scan.\r
index 8646b24e7902fd205824a613d65b58ca7b998719..0bccb2bb86d81c7c078f17fad6cbea6eca5ff6df 100644 (file)
 #ifndef __MEM_LIB_INTERNALS__\r
 #define __MEM_LIB_INTERNALS__\r
 \r
 #ifndef __MEM_LIB_INTERNALS__\r
 #define __MEM_LIB_INTERNALS__\r
 \r
+//\r
+// The package level header files this module uses\r
+//\r
+#include <PiPei.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/PeiServicesTablePointerLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/BaseLib.h>\r
+\r
 /**\r
   Copy Length bytes from Source to Destination.\r
 \r
 /**\r
   Copy Length bytes from Source to Destination.\r
 \r
diff --git a/MdePkg/Library/PeiMemoryLib/PeiMemoryLib.inf b/MdePkg/Library/PeiMemoryLib/PeiMemoryLib.inf
new file mode 100644 (file)
index 0000000..2966e44
--- /dev/null
@@ -0,0 +1,86 @@
+#/** @file\r
+# Component description file for Pei Memory Library\r
+#\r
+# Base Memory Library implementation that uses PEI Services\r
+#  where possible for size reduction.\r
+# Copyright (c) 2006, Intel Corporation\r
+#\r
+#  All rights reserved. This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution. The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#\r
+#**/\r
+\r
+################################################################################\r
+#\r
+# Defines Section - statements that will be processed to create a Makefile.\r
+#\r
+################################################################################\r
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = PeiMemoryLib\r
+  FILE_GUID                      = 3a9759d2-53bc-4eb2-abcd-c93099419063\r
+  MODULE_TYPE                    = PEIM\r
+  VERSION_STRING                 = 1.0\r
+  LIBRARY_CLASS                  = BaseMemoryLib|PEIM\r
+  EDK_RELEASE_VERSION            = 0x00020000\r
+  EFI_SPECIFICATION_VERSION      = 0x00020000\r
+\r
+\r
+#\r
+# The following information is for reference only and not required by the build tools.\r
+#\r
+#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
+#\r
+\r
+################################################################################\r
+#\r
+# Sources Section - list of files that are required for the build to succeed.\r
+#\r
+################################################################################\r
+\r
+[Sources.common]\r
+  ScanMem64Wrapper.c\r
+  ScanMem32Wrapper.c\r
+  ScanMem16Wrapper.c\r
+  ScanMem8Wrapper.c\r
+  ZeroMemWrapper.c\r
+  CompareMemWrapper.c\r
+  SetMem64Wrapper.c\r
+  SetMem32Wrapper.c\r
+  SetMem16Wrapper.c\r
+  SetMemWrapper.c\r
+  CopyMemWrapper.c\r
+  MemLibGeneric.c\r
+  MemLibGuid.c\r
+  MemLib.c\r
+  MemLibInternals.h\r
+\r
+\r
+################################################################################\r
+#\r
+# Package Dependency Section - list of Package files that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+\r
+\r
+################################################################################\r
+#\r
+# Library Class Section - list of Library Classes that are required for\r
+#                         this module.\r
+#\r
+################################################################################\r
+\r
+[LibraryClasses]\r
+  BaseLib\r
+  DebugLib\r
+  PeiServicesTablePointerLib\r
+\r
index 95f134bbda63539802092ea8b28e755cc5a3014f..761b95fb33094121953f077977d0ce082cca8f0f 100644 (file)
@@ -36,7 +36,7 @@
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().\r
 \r
   @param  Buffer      Pointer to the target buffer to scan.\r
   @param  Length      Number of bytes in Buffer to scan.\r
 \r
   @param  Buffer      Pointer to the target buffer to scan.\r
   @param  Length      Number of bytes in Buffer to scan.\r
index 6a3dcd7ad233762130bab066ae5d18df222c0f83..3a11fc28213f64392558b0b3dd678e20dfdf7f02 100644 (file)
@@ -36,7 +36,7 @@
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().\r
 \r
   @param  Buffer      Pointer to the target buffer to scan.\r
   @param  Length      Number of bytes in Buffer to scan.\r
 \r
   @param  Buffer      Pointer to the target buffer to scan.\r
   @param  Length      Number of bytes in Buffer to scan.\r
index b355fe647cd9e1d4cee9cbad80aa5193f34340a7..e460c88d265cf1e7dd824689cb32cac7441e078f 100644 (file)
@@ -36,7 +36,7 @@
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().\r
 \r
   @param  Buffer      Pointer to the target buffer to scan.\r
   @param  Length      Number of bytes in Buffer to scan.\r
 \r
   @param  Buffer      Pointer to the target buffer to scan.\r
   @param  Length      Number of bytes in Buffer to scan.\r
index 2b21b22166ddd7d8afaa353bb8c576c51e5153ad..df0edec92acf741dea20fc3381e7408b41d2f47d 100644 (file)
@@ -34,7 +34,7 @@
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().\r
 \r
   @param  Buffer      Pointer to the target buffer to scan.\r
   @param  Length      Number of bytes in Buffer to scan.\r
 \r
   @param  Buffer      Pointer to the target buffer to scan.\r
   @param  Length      Number of bytes in Buffer to scan.\r
@@ -56,6 +56,6 @@ ScanMem8 (
   }\r
   ASSERT (Buffer != NULL);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
   }\r
   ASSERT (Buffer != NULL);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
\r
+\r
   return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);\r
 }\r
   return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);\r
 }\r
index e74ce8d65b8f086259f70c7605bec2d4b2d89778..2ad6209c26302bcdcb650604251a12a4a95a0c4d 100644 (file)
@@ -29,7 +29,7 @@
   Fills a target buffer with a byte value, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with Value, and returns Buffer.\r
   Fills a target buffer with a byte value, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with Value, and returns Buffer.\r
-  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().\r
 \r
   @param  Buffer    Memory to set.\r
   @param  Length    Number of bytes to set.\r
 \r
   @param  Buffer    Memory to set.\r
   @param  Length    Number of bytes to set.\r
index 7aa27ea794810a1bf8c9189bc58387a09f78f172..0ba5d63575e3612cb7fc89312b0c18ee5589b642 100644 (file)
@@ -2,13 +2,13 @@
 Internal header file for Smbus library.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
 Internal header file for Smbus library.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 \r
 **/\r
 \r
 \r
 **/\r
@@ -16,6 +16,22 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef __INTERNAL_SMBUS_LIB_H\r
 #define __INTERNAL_SMBUS_LIB_H\r
 \r
 #ifndef __INTERNAL_SMBUS_LIB_H\r
 #define __INTERNAL_SMBUS_LIB_H\r
 \r
+//\r
+// The package level header files this module uses\r
+//\r
+#include <PiPei.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+#include <Ppi/Smbus2.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/SmbusLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/PeiServicesTablePointerLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+\r
 #define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress)      (((SmBusAddress) >> 1)  & 0x7f)\r
 #define SMBUS_LIB_COMMAND(SmBusAddress)            (((SmBusAddress) >> 8)  & 0xff)\r
 #define SMBUS_LIB_LENGTH(SmBusAddress)             (((SmBusAddress) >> 16) & 0x3f)\r
 #define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress)      (((SmBusAddress) >> 1)  & 0x7f)\r
 #define SMBUS_LIB_COMMAND(SmBusAddress)            (((SmBusAddress) >> 8)  & 0xff)\r
 #define SMBUS_LIB_LENGTH(SmBusAddress)             (((SmBusAddress) >> 16) & 0x3f)\r
@@ -42,7 +58,7 @@ InternalGetSmbusPpi (
   );\r
 \r
 /**\r
   );\r
 \r
 /**\r
-  Executes an SMBus operation to an SMBus controller. \r
+  Executes an SMBus operation to an SMBus controller.\r
 \r
   This function provides a standard way to execute Smbus script\r
   as defined in the SmBus Specification. The data can either be of\r
 \r
   This function provides a standard way to execute Smbus script\r
   as defined in the SmBus Specification. The data can either be of\r
index 47ffd190084511f0ea738adc2bb4c56918a9b57b..0821a91ec8a40819517850c4eb4fe669209090ea 100644 (file)
@@ -2,21 +2,19 @@
 Implementation of SmBusLib class library for PEI phase.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
 Implementation of SmBusLib class library for PEI phase.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 \r
 Module Name: PeiSmbusLib.c\r
 \r
 **/\r
 \r
 \r
 \r
 Module Name: PeiSmbusLib.c\r
 \r
 **/\r
 \r
-#include <Ppi/Smbus2.h>\r
-\r
 #include "InternalSmbusLib.h"\r
 \r
 /**\r
 #include "InternalSmbusLib.h"\r
 \r
 /**\r
@@ -32,7 +30,7 @@ Module Name: PeiSmbusLib.c
 EFI_PEI_SMBUS2_PPI *\r
 InternalGetSmbusPpi (\r
   EFI_PEI_SERVICES      **PeiServices\r
 EFI_PEI_SMBUS2_PPI *\r
 InternalGetSmbusPpi (\r
   EFI_PEI_SERVICES      **PeiServices\r
-  ) \r
+  )\r
 {\r
   EFI_STATUS            Status;\r
   EFI_PEI_SMBUS2_PPI     *SmbusPpi;\r
 {\r
   EFI_STATUS            Status;\r
   EFI_PEI_SMBUS2_PPI     *SmbusPpi;\r
@@ -45,7 +43,7 @@ InternalGetSmbusPpi (
 }\r
 \r
 /**\r
 }\r
 \r
 /**\r
-  Executes an SMBus operation to an SMBus controller. \r
+  Executes an SMBus operation to an SMBus controller.\r
 \r
   This function provides a standard way to execute Smbus script\r
   as defined in the SmBus Specification. The data can either be of\r
 \r
   This function provides a standard way to execute Smbus script\r
   as defined in the SmBus Specification. The data can either be of\r
@@ -88,7 +86,7 @@ InternalSmBusExec (
                              SmbusDeviceAddress,\r
                              SMBUS_LIB_COMMAND (SmBusAddress),\r
                              SmbusOperation,\r
                              SmbusDeviceAddress,\r
                              SMBUS_LIB_COMMAND (SmBusAddress),\r
                              SmbusOperation,\r
-                             SMBUS_LIB_PEC (SmBusAddress),  \r
+                             SMBUS_LIB_PEC (SmBusAddress),\r
                              &Length,\r
                              Buffer\r
                              );\r
                              &Length,\r
                              Buffer\r
                              );\r
diff --git a/MdePkg/Library/PeiSmbusLibSmbus2/PeiSmbusLib.inf b/MdePkg/Library/PeiSmbusLibSmbus2/PeiSmbusLib.inf
new file mode 100644 (file)
index 0000000..8e9d4be
--- /dev/null
@@ -0,0 +1,84 @@
+#/** @file\r
+# Component description file for Pei Smbus Library.\r
+#\r
+# SMBUS library that layers on top of the SMBUS PPI.\r
+# Copyright (c) 2006 - 2007, Intel Corporation\r
+#\r
+#  All rights reserved. This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution. The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#\r
+#**/\r
+\r
+################################################################################\r
+#\r
+# Defines Section - statements that will be processed to create a Makefile.\r
+#\r
+################################################################################\r
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = PeiSmbusLib\r
+  FILE_GUID                      = 2A1E1C92-AABA-4d62-AC40-F3A4C3387356\r
+  MODULE_TYPE                    = PEIM\r
+  VERSION_STRING                 = 1.0\r
+  LIBRARY_CLASS                  = SmbusLib|PEIM\r
+  EDK_RELEASE_VERSION            = 0x00020000\r
+  EFI_SPECIFICATION_VERSION      = 0x00020000\r
+\r
+\r
+#\r
+# The following information is for reference only and not required by the build tools.\r
+#\r
+#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
+#\r
+\r
+################################################################################\r
+#\r
+# Sources Section - list of files that are required for the build to succeed.\r
+#\r
+################################################################################\r
+\r
+[Sources.common]\r
+  SmbusLib.c\r
+  PeiSmbusLib.c\r
+  InternalSmbusLib.h\r
+\r
+\r
+################################################################################\r
+#\r
+# Package Dependency Section - list of Package files that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+\r
+\r
+################################################################################\r
+#\r
+# Library Class Section - list of Library Classes that are required for\r
+#                         this module.\r
+#\r
+################################################################################\r
+\r
+[LibraryClasses]\r
+  BaseMemoryLib\r
+  PeiServicesTablePointerLib\r
+  DebugLib\r
+\r
+\r
+################################################################################\r
+#\r
+# PPI C Name Section - list of PPI and PPI Notify C Names that this module\r
+#                      uses or produces.\r
+#\r
+################################################################################\r
+\r
+[Ppis]\r
+  gEfiPeiSmbus2PpiGuid                           # PPI ALWAYS_CONSUMED\r
+\r
index a6e06b85d01a66f88d50ea176911269dfa358dde..a39efb9c4e1889176a3ca7e8be3fe1b13b415c8b 100644 (file)
@@ -3,7 +3,7 @@
   <MsaHeader>\r
     <ModuleName>PeiSmbusLib</ModuleName>\r
     <ModuleType>PEIM</ModuleType>\r
   <MsaHeader>\r
     <ModuleName>PeiSmbusLib</ModuleName>\r
     <ModuleType>PEIM</ModuleType>\r
-    <GuidValue>51C4C059-67F0-4e3c-9A55-FF42A8291C8C</GuidValue>\r
+    <GuidValue>2A1E1C92-AABA-4d62-AC40-F3A4C3387356</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for Pei Smbus Library.</Abstract>\r
     <Description>SMBUS library that layers on top of the SMBUS PPI.</Description>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for Pei Smbus Library.</Abstract>\r
     <Description>SMBUS library that layers on top of the SMBUS PPI.</Description>\r
@@ -45,7 +45,7 @@
   </PackageDependencies>\r
   <PPIs>\r
     <Ppi Usage="ALWAYS_CONSUMED">\r
   </PackageDependencies>\r
   <PPIs>\r
     <Ppi Usage="ALWAYS_CONSUMED">\r
-      <PpiCName>gEfiPeiSmbusPpiGuid</PpiCName>\r
+      <PpiCName>gEfiPeiSmbusPpi2Guid</PpiCName>\r
     </Ppi>\r
   </PPIs>\r
   <Externs>\r
     </Ppi>\r
   </PPIs>\r
   <Externs>\r
index 13c38fb934d50bd883ce0c3e0c543cda3384555e..ad92ea0b8e56466b2bfe2d2e509b24dd5481c836 100644 (file)
@@ -2,20 +2,19 @@
 Implementation of SmBusLib class library for PEI phase.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
 Implementation of SmBusLib class library for PEI phase.\r
 \r
 Copyright (c) 2006, Intel Corporation<BR>\r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 \r
 Module Name: SmbusLib.c\r
 \r
 **/\r
 \r
 \r
 \r
 Module Name: SmbusLib.c\r
 \r
 **/\r
 \r
-#include <Ppi/Smbus2.h>\r
 #include "InternalSmbusLib.h"\r
 \r
 /**\r
 #include "InternalSmbusLib.h"\r
 \r
 /**\r
@@ -190,7 +189,7 @@ SmBusReadDataByte (
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusReadByte, SmBusAddress, 1, &Byte, Status);\r
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusReadByte, SmBusAddress, 1, &Byte, Status);\r
-  \r
+\r
   return Byte;\r
 }\r
 \r
   return Byte;\r
 }\r
 \r
@@ -229,7 +228,7 @@ SmBusWriteDataByte (
 \r
   Byte = Value;\r
   InternalSmBusExec (EfiSmbusWriteByte, SmBusAddress, 1, &Byte, Status);\r
 \r
   Byte = Value;\r
   InternalSmBusExec (EfiSmbusWriteByte, SmBusAddress, 1, &Byte, Status);\r
-  \r
+\r
   return Value;\r
 }\r
 \r
   return Value;\r
 }\r
 \r
@@ -242,7 +241,7 @@ SmBusWriteDataByte (
   If Status is not NULL, then the status of the executed command is returned in Status.\r
   If Length in SmBusAddress is not zero, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
   If Status is not NULL, then the status of the executed command is returned in Status.\r
   If Length in SmBusAddress is not zero, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
-  \r
+\r
   @param  SmBusAddress    Address that encodes the SMBUS Slave Address,\r
                           SMBUS Command, SMBUS Data Length, and PEC.\r
   @param  Status          Return status for the executed command.\r
   @param  SmBusAddress    Address that encodes the SMBUS Slave Address,\r
                           SMBUS Command, SMBUS Data Length, and PEC.\r
   @param  Status          Return status for the executed command.\r
@@ -264,7 +263,7 @@ SmBusReadDataWord (
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusReadWord, SmBusAddress, 2, &Word, Status);\r
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusReadWord, SmBusAddress, 2, &Word, Status);\r
-  \r
+\r
   return Word;\r
 }\r
 \r
   return Word;\r
 }\r
 \r
@@ -339,7 +338,7 @@ SmBusProcessCall (
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusProcessCall, SmBusAddress, 2, &Value, Status);\r
   ASSERT (SMBUS_LIB_RESEARVED (SmBusAddress) == 0);\r
 \r
   InternalSmBusExec (EfiSmbusProcessCall, SmBusAddress, 2, &Value, Status);\r
-  \r
+\r
   return Value;\r
 }\r
 \r
   return Value;\r
 }\r
 \r
@@ -388,7 +387,7 @@ SmBusReadBlock (
   The SMBUS slave address, SMBUS command, and SMBUS length fields of SmBusAddress are required.\r
   Bytes are written to the SMBUS from Buffer.\r
   The number of bytes written is returned, and will never return a value larger than 32-bytes.\r
   The SMBUS slave address, SMBUS command, and SMBUS length fields of SmBusAddress are required.\r
   Bytes are written to the SMBUS from Buffer.\r
   The number of bytes written is returned, and will never return a value larger than 32-bytes.\r
-  If Status is not NULL, then the status of the executed command is returned in Status.  \r
+  If Status is not NULL, then the status of the executed command is returned in Status.\r
   If Length in SmBusAddress is zero or greater than 32, then ASSERT().\r
   If Buffer is NULL, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
   If Length in SmBusAddress is zero or greater than 32, then ASSERT().\r
   If Buffer is NULL, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
index f04e9388d792a25440b475a02fa15a124e8dff82..0f51017f46c4748ac245cb3f12e80ff57e1dc868 100644 (file)
   ${WORKSPACE}/MdePkg/Library/DxeMemoryAllocationLib/DxeMemoryAllocationLib.inf\r
   ${WORKSPACE}/MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
   ${WORKSPACE}/MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
   ${WORKSPACE}/MdePkg/Library/DxeMemoryAllocationLib/DxeMemoryAllocationLib.inf\r
   ${WORKSPACE}/MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
   ${WORKSPACE}/MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
-#  ${WORKSPACE}/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf\r
+  ${WORKSPACE}/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf\r
+  #${WORKSPACE}/MdePkg/Library/HiiLib/HiiLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf\r
+  ${WORKSPACE}/MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
+  ${WORKSPACE}/MdePkg/Library/PeiMemoryLib/PeiMemoryLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
   ${WORKSPACE}/MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r
-#  ${WORKSPACE}/MdePkg/Library/PeiSmbusLib/PeiSmbusLib.inf\r
+  ${WORKSPACE}/MdePkg/Library/PeiSmbusLibSmbus2/PeiSmbusLib.inf\r
   ${WORKSPACE}/MdePkg/Library/SerialPortLibNull/SerialPortLibNull.inf\r
   ${WORKSPACE}/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
   ${WORKSPACE}/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
   ${WORKSPACE}/MdePkg/Library/SerialPortLibNull/SerialPortLibNull.inf\r
   ${WORKSPACE}/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
   ${WORKSPACE}/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r