]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Checked in part of MDE library instances following PI and UEFI. It includes:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 22 Jun 2007 16:22:26 +0000 (16:22 +0000)
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 22 Jun 2007 16:22:26 +0000 (16:22 +0000)
1) UefiLib adds features of RFC 3066/Iso639 language string and driver model protocols installation.

2) PeiCoreEntryPoint following PI.

3) UefiDriverEntryPoint following UEFI/EFI.

4) PeiServicesTablePointerLib following PI for IPF and x86.

5) Remove many CommonHeader.h. If there is only one C file in module, we should add the common headers in C file instead of creating a new CommonHeader.h.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2723 6f19259b-4bc3-4df7-8a09-765794883524

120 files changed:
MdePkg/Include/Library/BaseLib.h
MdePkg/Include/Library/HiiLib.h
MdePkg/Include/Library/PeiCoreEntryPoint.h
MdePkg/Include/Library/ReportStatusCodeLib.h
MdePkg/Include/Library/ScsiLib.h
MdePkg/Include/Library/UefiLib.h
MdePkg/Include/Library/UsbLib.h
MdePkg/Include/Uefi.h
MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
MdePkg/Library/BaseDebugLibNull/CommonHeader.h [deleted file]
MdePkg/Library/BaseDebugLibNull/DebugLib.c
MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
MdePkg/Library/BasePciCf8Lib/CommonHeader.h [deleted file]
MdePkg/Library/BasePciCf8Lib/PciLib.c
MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
MdePkg/Library/BasePciExpressLib/CommonHeader.h [deleted file]
MdePkg/Library/BasePciExpressLib/PciLib.c
MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
MdePkg/Library/BasePciLibCf8/CommonHeader.h [deleted file]
MdePkg/Library/BasePciLibCf8/PciLib.c
MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
MdePkg/Library/BasePciLibPciExpress/CommonHeader.h [deleted file]
MdePkg/Library/BasePciLibPciExpress/PciLib.c
MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
MdePkg/Library/BasePeCoffGetEntryPointLib/CommonHeader.h [deleted file]
MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c
MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
MdePkg/Library/BasePerformanceLibNull/CommonHeader.h [deleted file]
MdePkg/Library/BasePerformanceLibNull/PerformanceLib.c
MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.inf
MdePkg/Library/BasePostCodeLibDebug/CommonHeader.h [deleted file]
MdePkg/Library/BasePostCodeLibDebug/PostCode.c
MdePkg/Library/BasePostCodeLibPort80/BasePostCodeLibPort80.inf
MdePkg/Library/BasePostCodeLibPort80/CommonHeader.h [deleted file]
MdePkg/Library/BasePostCodeLibPort80/PostCode.c
MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
MdePkg/Library/BaseTimerLibNullTemplate/CommonHeader.h [deleted file]
MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c
MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
MdePkg/Library/BaseUefiDecompressLib/CommonHeader.h [deleted file]
MdePkg/Library/DxeCoreEntryPoint/CommonHeader.h [deleted file]
MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c
MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
MdePkg/Library/DxeCoreHobLib/CommonHeader.h [deleted file]
MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
MdePkg/Library/DxeCoreHobLib/HobLib.c
MdePkg/Library/DxeCoreHobLib/HobLib.h [deleted file]
MdePkg/Library/DxeCoreHobLib/InternalHobLib.h [new file with mode: 0644]
MdePkg/Library/DxeHobLib/CommonHeader.h [deleted file]
MdePkg/Library/DxeHobLib/DxeHobLib.inf
MdePkg/Library/DxeHobLib/HobLib.c
MdePkg/Library/DxeMemoryAllocationLib/DxeMemoryAllocationLib.inf
MdePkg/Library/DxeMemoryAllocationLib/MemoryAllocationLib.c
MdePkg/Library/DxeMemoryAllocationLib/MemoryAllocationLibInternals.h
MdePkg/Library/DxePcdLib/CommonHeader.h [deleted file]
MdePkg/Library/DxePcdLib/DxePcdLib.c
MdePkg/Library/DxePcdLib/DxePcdLib.inf
MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.c
MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
MdePkg/Library/PeiCoreEntryPoint/CommonHeader.h [deleted file]
MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.c
MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
MdePkg/Library/PeiMemoryAllocationLib/CommonHeader.h [deleted file]
MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLibInternals.h
MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
MdePkg/Library/PeiPcdLib/CommonHeader.h [deleted file]
MdePkg/Library/PeiPcdLib/PeiPcdLib.c
MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
MdePkg/Library/PeiResourcePublicationLib/CommonHeader.h [deleted file]
MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.c
MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
MdePkg/Library/PeiServicesLib/CommonHeader.h [deleted file]
MdePkg/Library/PeiServicesLib/PeiServicesLib.c
MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
MdePkg/Library/PeiServicesTablePointerLibIdt/Ia32/AsmPeiSevicesTablePointer.S [new file with mode: 0644]
MdePkg/Library/PeiServicesTablePointerLibIdt/Ia32/AsmPeiSevicesTablePointer.asm [new file with mode: 0644]
MdePkg/Library/PeiServicesTablePointerLibIdt/Ia32/AsmPeiSevicesTablePointer.c [new file with mode: 0644]
MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h [new file with mode: 0644]
MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointer.c [new file with mode: 0644]
MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.msa [new file with mode: 0644]
MdePkg/Library/PeiServicesTablePointerLibIdt/x64/AsmPeiSevicesTablePointer.S [new file with mode: 0644]
MdePkg/Library/PeiServicesTablePointerLibIdt/x64/AsmPeiSevicesTablePointer.asm [new file with mode: 0644]
MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c [new file with mode: 0644]
MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointerLibKr7.msa [new file with mode: 0644]
MdePkg/Library/PeimEntryPoint/CommonHeader.h [deleted file]
MdePkg/Library/PeimEntryPoint/PeimEntryPoint.c
MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c
MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
MdePkg/Library/UefiBootServicesTableLib/CommonHeader.h [deleted file]
MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.c
MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
MdePkg/Library/UefiDebugLibConOut/CommonHeader.h [deleted file]
MdePkg/Library/UefiDebugLibConOut/DebugLib.c
MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
MdePkg/Library/UefiDebugLibStdErr/CommonHeader.h [deleted file]
MdePkg/Library/UefiDebugLibStdErr/DebugLib.c
MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
MdePkg/Library/UefiDevicePathLib/CommonHeader.h [deleted file]
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
MdePkg/Library/UefiDevicePathLibDevicePathProtocol/CommonHeader.h [deleted file]
MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
MdePkg/Library/UefiDriverEntryPoint/CommonHeader.h [deleted file]
MdePkg/Library/UefiDriverEntryPoint/DriverEntryPoint.c
MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
MdePkg/Library/UefiLib/CommonHeader.h
MdePkg/Library/UefiLib/UefiLib.inf
MdePkg/Library/UefiLib/UefiLib.msa
MdePkg/Library/UefiLib/UefiNotTiano.c
MdePkg/Library/UefiRuntimeServicesTableLib/CommonHeader.h [deleted file]
MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
MdePkg/MdePkg.dec
MdePkg/MdePkg.nspd

index 5fbcb10d58648b83b63e2582614c8ccbd5c56763..5d87fc9c2b3fa96267dc70805d587ff095c6b6bd 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef __BASE_LIB__
 #define __BASE_LIB__
 
+#include <IndustryStandard/Pal.h>
+
 //
 // Definitions for architecture specific types
 // These include SPIN_LOCK and BASE_LIBRARY_JUMP_BUFFER
index 4d3e18db62b814e41ada5def377b7991d6230154..9da8d292ce6e33455eedd65074f622aa43057448 100644 (file)
   The allocated and initialized packages.\r
 \r
 **/\r
-EFI_HII_PACKAGE_LIST_HEADER*\r
+EFI_HII_PACKAGE_LIST_HEADER *\r
 EFIAPI\r
 PreparePackages (\r
-  IN UINTN           NumberOfPackages,\r
-  IN CONST EFI_GUID  *Guid OPTIONAL,\r
+  IN CONST  UINTN     NumberOfPackages,\r
+  IN CONST  EFI_GUID  *Guid OPTIONAL,\r
   ...\r
-  )\r
-;\r
-\r
-\r
+  );\r
 \r
 #endif\r
index 76afc594cb8dcab147a573c054c50ec9c2e7528e..00105f5d0b5a7c786c54c1839e2949430d532b59 100644 (file)
@@ -16,19 +16,35 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define __MODULE_ENTRY_POINT_H__\r
 \r
 /**\r
+\r
   Enrty point to PEI core.\r
 \r
-  @param  PeiStartupDescriptor Pointer of start up information.\r
\r
-  @return Status returned by entry points of core and drivers. \r
+  @param SecCoreData    Points to a data structure containing\r
+                        information about the PEI core's\r
+                        operating environment, such as the size\r
+                        and location of temporary RAM, the stack\r
+                        location and the BFV location. The type\r
+                        EFI_SEC_PEI_HAND_OFF is\r
+\r
+  @param PpiList        Points to a list of one or more PPI\r
+                        descriptors to be installed initially by\r
+                        the PEI core. An empty PPI list consists\r
+                        of a single descriptor with the end-tag\r
+                        EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST.\r
+                        As part of its initialization phase, the\r
+                        PEI Foundation will add these SEC-hosted\r
+                        PPIs to its PPI database such that both\r
+                        the PEI Foundation and any modules can\r
+                        leverage the associated service calls\r
+                        and/or code in these early PPIs.\r
 \r
 **/\r
-EFI_STATUS\r
-EFIAPI\r
-_ModuleEntryPoint (\r
+VOID\r
+EFIAPI \r
+_ModuleEntryPoint(\r
   IN CONST  EFI_SEC_PEI_HAND_OFF    *SecCoreData,\r
   IN CONST  EFI_PEI_PPI_DESCRIPTOR  *PpiList\r
-  );\r
+);\r
 \r
 /**\r
   Wrapper of enrty point to PEI core.\r
@@ -38,7 +54,7 @@ _ModuleEntryPoint (
   @return Status returned by entry points of core and drivers. \r
 \r
 **/\r
-EFI_STATUS\r
+VOID\r
 EFIAPI\r
 EfiMain (\r
   IN CONST  EFI_SEC_PEI_HAND_OFF    *SecCoreData,\r
@@ -69,7 +85,7 @@ ProcessLibraryConstructorList (
   @return Status returned by entry points of drivers.  \r
  \r
 **/\r
-EFI_STATUS\r
+VOID\r
 EFIAPI\r
 ProcessModuleEntryPointList (\r
   IN CONST  EFI_SEC_PEI_HAND_OFF    *SecCoreData,\r
index 6b32ddb1379623d522c3b322b2511f4035f539aa..626ad11e28b0d39d6baf5deb31ac17e56675819e 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef __REPORT_STATUS_CODE_LIB_H__\r
 #define __REPORT_STATUS_CODE_LIB_H__\r
 \r
+#include <Protocol/DevicePath.h>\r
+\r
 //\r
 // Declare bits for PcdReportStatusCodePropertyMask\r
 //\r
 // Extended Data structure definitions with EFI_STATUS_CODE_DATA headers removed\r
 //\r
 \r
-///\r
-/// Voltage Extended Error Data\r
-///\r
-typedef struct {\r
-  EFI_EXP_BASE10_DATA   Voltage;\r
-  EFI_EXP_BASE10_DATA   Threshold;\r
-} REPORT_STATUS_CODE_LIBRARY_COMPUTING_UNIT_VOLTAGE_ERROR_DATA;\r
-\r
-///\r
-/// Microcode Update Extended Error Data\r
-///\r
-typedef struct {\r
-  UINT32                Version;\r
-} REPORT_STATUS_CODE_LIBRARY_COMPUTING_UNIT_MICROCODE_UPDATE_ERROR_DATA;\r
-\r
-///\r
-/// Asynchronous Timer Extended Error Data\r
-///\r
-typedef struct {\r
-  EFI_EXP_BASE10_DATA   TimerLimit;\r
-} REPORT_STATUS_CODE_LIBRARY_COMPUTING_UNIT_TIMER_EXPIRED_ERROR_DATA;\r
-\r
-///\r
-/// Host Processor Mismatch Extended Error Data\r
-///\r
-typedef struct {\r
-  UINT32                Instance;\r
-  UINT16                Attributes;\r
-} REPORT_STATUS_CODE_LIBRARY_HOST_PROCESSOR_MISMATCH_ERROR_DATA;\r
-\r
-///\r
-/// Thermal Extended Error Data\r
-///\r
-typedef struct {\r
-  EFI_EXP_BASE10_DATA   Temperature;\r
-  EFI_EXP_BASE10_DATA   Threshold;\r
-} REPORT_STATUS_CODE_LIBRARY_COMPUTING_UNIT_THERMAL_ERROR_DATA;\r
-\r
-///\r
-/// Processor Disabled Extended Error Data\r
-///\r
-typedef struct {\r
-  UINT32                Cause;\r
-  BOOLEAN               SoftwareDisabled;\r
-} REPORT_STATUS_CODE_LIBRARY_COMPUTING_UNIT_CPU_DISABLED_ERROR_DATA;\r
-\r
-///\r
-/// Embedded cache init extended data\r
-///\r
-typedef struct {\r
-  UINT32                Level;\r
-  EFI_INIT_CACHE_TYPE   Type;\r
-} REPORT_STATUS_CODE_LIBRARY_CACHE_INIT_DATA;\r
-\r
-///\r
-/// Memory Extended Error Data\r
-///\r
-typedef struct {\r
-  EFI_MEMORY_ERROR_GRANULARITY  Granularity;\r
-  EFI_MEMORY_ERROR_OPERATION    Operation;\r
-  UINTN                         Syndrome;\r
-  EFI_PHYSICAL_ADDRESS          Address;\r
-  UINTN                         Resolution;\r
-} REPORT_STATUS_CODE_LIBRARY_MEMORY_EXTENDED_ERROR_DATA;\r
-\r
-///\r
-/// DIMM number\r
-///\r
-typedef struct {\r
-  UINT16                Array;\r
-  UINT16                Device;\r
-} REPORT_STATUS_CODE_LIBRARY_STATUS_CODE_DIMM_NUMBER;\r
-\r
-///\r
-/// Memory Module Mismatch Extended Error Data\r
-///\r
-typedef struct {\r
-  EFI_STATUS_CODE_DIMM_NUMBER Instance;\r
-} REPORT_STATUS_CODE_LIBRARY_MEMORY_MODULE_MISMATCH_ERROR_DATA;\r
-\r
-///\r
-/// Memory Range Extended Data\r
-///\r
-typedef struct {\r
-  EFI_PHYSICAL_ADDRESS  Start;\r
-  EFI_PHYSICAL_ADDRESS  Length;\r
-} REPORT_STATUS_CODE_LIBRARY_MEMORY_RANGE_EXTENDED_DATA;\r
-\r
-///\r
-/// Device handle Extended Data. Used for many\r
-/// errors and progress codes to point to the device.\r
-///\r
-typedef struct {\r
-  EFI_HANDLE            Handle;\r
-} REPORT_STATUS_CODE_LIBRARY_DEVICE_HANDLE_EXTENDED_DATA;\r
-\r
-typedef struct {\r
-  UINT8                                *DevicePath;\r
-} REPORT_STATUS_CODE_LIBRARY_DEVICE_PATH_EXTENDED_DATA;\r
-\r
-typedef struct {\r
-  EFI_HANDLE                     ControllerHandle;\r
-  EFI_HANDLE                     DriverBindingHandle;\r
-  UINT16                         DevicePathSize;\r
-  UINT8                          *RemainingDevicePath;\r
-} REPORT_STATUS_CODE_LIBRARY_STATUS_CODE_START_EXTENDED_DATA;\r
-\r
-///\r
-/// Resource Allocation Failure Extended Error Data\r
-///\r
-typedef struct {\r
-  UINT32                             Bar;\r
-  UINT16                             DevicePathSize;\r
-  UINT16                             ReqResSize;\r
-  UINT16                             AllocResSize;\r
-  UINT8                              *DevicePath;\r
-  UINT8                              *ReqRes;\r
-  UINT8                              *AllocRes;\r
-} REPORT_STATUS_CODE_LIBRARY_RESOURCE_ALLOC_FAILURE_ERROR_DATA;\r
-\r
-///\r
-/// Extended Error Data for Assert\r
-///\r
-typedef struct {\r
-  UINT32                      LineNumber;\r
-  UINT32                      FileNameSize;\r
-  EFI_STATUS_CODE_STRING_DATA *FileName;\r
-} REPORT_STATUS_CODE_LIBRARY_DEBUG_ASSERT_DATA;\r
-\r
-///\r
-/// System Context Data EBC/IA32/IPF\r
-///\r
-typedef struct {\r
-  EFI_STATUS_CODE_EXCEP_SYSTEM_CONTEXT  Context;\r
-} REPORT_STATUS_CODE_LIBRARY_STATUS_CODE_EXCEP_EXTENDED_DATA;\r
-\r
-///\r
-/// Legacy Oprom extended data\r
-///\r
-typedef struct {\r
-  EFI_HANDLE            DeviceHandle;\r
-  EFI_PHYSICAL_ADDRESS  RomImageBase;\r
-} REPORT_STATUS_CODE_LIBRARY_LEGACY_OPROM_EXTENDED_DATA;\r
-\r
 //\r
 // Extern for the modules Caller ID GUID\r
 //\r
index bb1a1adbb343ae0dcb20e0331b5c1d99146f68c2..239cd1c304038c8b8903d3aae9b49bb1f818e3b0 100644 (file)
@@ -24,6 +24,8 @@ Module Name:
 #ifndef _SCSI_LIB_H\r
 #define _SCSI_LIB_H\r
 \r
+#include <Protocol/ScsiIo.h>\r
+\r
 //\r
 // the time unit is 100ns, since the SCSI I/O defines timeout in 100ns unit.\r
 //\r
index 9eaf48cace7ed9403aeeefacea43c7e4dca9b4b1..ef231f177403aea597cc084f6553ea37f976204a 100644 (file)
 #ifndef __UEFI_LIB_H__\r
 #define __UEFI_LIB_H__\r
 \r
+#include <Protocol/DriverBinding.h>\r
+#include <Protocol/DriverConfiguration.h>\r
+#include <Protocol/ComponentName.h>\r
+#include <Protocol/ComponentName2.h>\r
+#include <Protocol/DriverDiagnostics.h>\r
+#include <Protocol/DriverDiagnostics2.h>\r
+\r
 //\r
 // Unicode String Table\r
 //\r
@@ -708,4 +715,125 @@ AsciiErrorPrint (
   ...\r
   );\r
 \r
+/**\r
+  Intialize a driver by installing the Driver Binding Protocol onto the\r
+  driver's DriverBindingHandle.  This is typically the same as the driver's\r
+  ImageHandle, but it can be different if the driver produces multiple\r
+  DriverBinding Protocols.  This function also initializes the EFI Driver\r
+  Library that initializes the global variables gST, gBS, gRT.\r
+\r
+  @param  ImageHandle          The image handle of the driver\r
+  @param  SystemTable          The EFI System Table that was passed to the driver's entry point\r
+  @param  DriverBinding        A Driver Binding Protocol instance that this driver is producing\r
+  @param  DriverBindingHandle  The handle that DriverBinding is to be installe onto.  If this\r
+                               parameter is NULL, then a new handle is created.\r
+\r
+  @retval EFI_SUCCESS          DriverBinding is installed onto DriverBindingHandle\r
+  @retval Other                Status from gBS->InstallProtocolInterface()\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+EfiLibInstallDriverBinding (\r
+  IN CONST EFI_HANDLE             ImageHandle,\r
+  IN CONST EFI_SYSTEM_TABLE       *SystemTable,\r
+  IN EFI_DRIVER_BINDING_PROTOCOL  *DriverBinding,\r
+  IN EFI_HANDLE                   DriverBindingHandle\r
+  );\r
+\r
+/**\r
+  Intialize a driver by installing the Driver Binding Protocol onto the\r
+  driver's DriverBindingHandle.  This is typically the same as the driver's\r
+  ImageHandle, but it can be different if the driver produces multiple\r
+  DriverBinding Protocols.  This function also initializes the EFI Driver\r
+  Library that initializes the global variables gST, gBS, gRT.\r
+\r
+  @ImageHandle                 The image handle of the driver\r
+  @SystemTable                 The EFI System Table that was passed to the driver's entry point\r
+  @DriverBinding               A Driver Binding Protocol instance that this driver is producing\r
+  @DriverBindingHandle         The handle that DriverBinding is to be installe onto.  If this\r
+                               parameter is NULL, then a new handle is created.\r
+  @ComponentName               A Component Name Protocol instance that this driver is producing\r
+  @DriverConfiguration         A Driver Configuration Protocol instance that this driver is producing\r
+  @DriverDiagnostics           A Driver Diagnostics Protocol instance that this driver is producing\r
+\r
+  @retval EFI_SUCCESS          DriverBinding is installed onto DriverBindingHandle\r
+  @retval Other                Status from gBS->InstallProtocolInterface()\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+EfiLibInstallAllDriverProtocols (\r
+  IN CONST EFI_HANDLE                         ImageHandle,\r
+  IN CONST EFI_SYSTEM_TABLE                   *SystemTable,\r
+  IN EFI_DRIVER_BINDING_PROTOCOL              *DriverBinding,\r
+  IN EFI_HANDLE                               DriverBindingHandle,\r
+  IN CONST EFI_COMPONENT_NAME_PROTOCOL        *ComponentName,       OPTIONAL\r
+  IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL  *DriverConfiguration, OPTIONAL\r
+  IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL    *DriverDiagnostics    OPTIONAL\r
+  );\r
+\r
+\r
+/**\r
+  Intialize a driver by installing the Driver Binding Protocol\r
+  onto the driver's DriverBindingHandle.  This is typically the\r
+  same as the driver's ImageHandle, but it can be different if\r
+  the driver produces multiple DriverBinding Protocols.  This\r
+  function also initializes the EFI Driver Library that\r
+  initializes the global variables gST, gBS, gRT.\r
+\r
+  @ImageHandle                  The image handle of the driver\r
+  \r
+  @SystemTable                  The EFI System Table that was\r
+                                passed to the driver's entry\r
+                                point\r
+  \r
+  @DriverBinding                A Driver Binding Protocol\r
+                                instance that this driver is\r
+                                producing\r
+  \r
+  @DriverBindingHandle          The handle that DriverBinding is\r
+                                to be installe onto.  If this\r
+                                parameter is NULL, then a new\r
+                                handle is created.\r
+  \r
+  @ComponentName                A Component Name Protocol\r
+                                instance that this driver is\r
+                                producing\r
+  \r
+  @ComponentName2               A Component Name 2 Protocol\r
+                                instance that this driver is\r
+                                producing\r
+  \r
+  @DriverConfiguration          A Driver Configuration Protocol\r
+                                instance that this driver is\r
+                                producing\r
+  \r
+  @DriverDiagnostics            A Driver Diagnostics Protocol\r
+                                instance that this driver is\r
+                                producing\r
+  \r
+  @DriverDiagnostics2           A Driver Diagnostics 2 Protocol\r
+                                instance that this driver is\r
+                                producing\r
+\r
+  @retval EFI_SUCCESS          DriverBinding is installed onto DriverBindingHandle\r
+  @retval Other                Status from gBS->InstallProtocolInterface()\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+EfiLibInstallAllDriverProtocols2 (\r
+  IN CONST EFI_HANDLE                         ImageHandle,\r
+  IN CONST EFI_SYSTEM_TABLE                   *SystemTable,\r
+  IN EFI_DRIVER_BINDING_PROTOCOL              *DriverBinding,\r
+  IN EFI_HANDLE                               DriverBindingHandle,\r
+  IN CONST EFI_COMPONENT_NAME_PROTOCOL        *ComponentName,       OPTIONAL\r
+  IN CONST EFI_COMPONENT_NAME2_PROTOCOL       *ComponentName2,      OPTIONAL\r
+  IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL  *DriverConfiguration, OPTIONAL\r
+  IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL    *DriverDiagnostics,   OPTIONAL\r
+  IN CONST EFI_DRIVER_DIAGNOSTICS2_PROTOCOL   *DriverDiagnostics2   OPTIONAL\r
+  );\r
+\r
+\r
 #endif\r
index 005e045aacbec99aef260cc0c885bf9cca27fe1e..6e00c1ce32d42b28c5ee04f664d764c548361878 100644 (file)
@@ -25,6 +25,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef _USB_DXE_LIB_H\r
 #define _USB_DXE_LIB_H\r
 \r
+#include <Protocol/UsbIo.h>\r
 //\r
 // define the timeout time as 3ms\r
 //\r
index 3ae15dea9adaedde00154bb15337e9fbdf6020f5..e2f68d5779857f9c73f45e90059f68ce763f820e 100644 (file)
@@ -21,8 +21,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef __PI_UEFI_H__\r
 #define __PI_UEFI_H__\r
 \r
-#include <UefiBaseType.h>\r
-#include <UefiSpec.h>\r
+#include <Uefi/UefiBaseType.h>\r
+#include <Uefi/UefiSpec.h>\r
 \r
 #endif\r
 \r
index bc939c270edff9cd9b38c6c05700cbe649ae3ba2..7d5f9264ab851e87cc239de4c4d243435b4d9ace 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   DebugLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BaseDebugLibNull/CommonHeader.h b/MdePkg/Library/BaseDebugLibNull/CommonHeader.h
deleted file mode 100644 (file)
index 27168bf..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007 - 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/DebugLib.h>\r
-\r
-#endif\r
index 1d3e719b0d15b7f9d892e4e53dd4e47422eb04ae..d45782109561c92d11d2488fd81f60e6bbe10da4 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+\r
+//\r
+// The Library classes this module produced\r
+//\r
+#include <Library/DebugLib.h>\r
 \r
 /**\r
 \r
index 2814b59a78efa82d995300dfe3cb1eda1f7c97b8..f5505dba74eda3c3964d0a4890ccb8fbdf3f9308 100644 (file)
@@ -45,7 +45,6 @@
 \r
 [Sources.common]\r
   PciLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BasePciCf8Lib/CommonHeader.h b/MdePkg/Library/BasePciCf8Lib/CommonHeader.h
deleted file mode 100644 (file)
index 01be6d5..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PciCf8Lib.h>\r
-#include <Library/IoLib.h>\r
-#include <Library/DebugLib.h>\r
-\r
-#endif\r
index 77676b7eb7558ff345c51b0a0e4516e7d798e0de..0c8ae6b3cfd93db43856b10751bfd9833b660c03 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PciCf8Lib.h>\r
+#include <Library/IoLib.h>\r
+#include <Library/DebugLib.h>\r
 \r
 //\r
 // Declare I/O Ports used to perform PCI Confguration Cycles\r
index 18868b98ce61fe35bc2cc1afc11701265f4b6b3d..d184d6ce4387c70e8e29122c6e24f3e8bdab1188 100644 (file)
@@ -45,7 +45,6 @@
 \r
 [Sources.common]\r
   PciLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BasePciExpressLib/CommonHeader.h b/MdePkg/Library/BasePciExpressLib/CommonHeader.h
deleted file mode 100644 (file)
index 0f71c42..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PciExpressLib.h>\r
-#include <Library/IoLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/PcdLib.h>\r
-\r
-#endif\r
index a98e66dd46f7c1bcc3c8e9e8f7d46e59e59a1dda..30536dfbf6aa44fd54254b4a5de96a2fc3b2b5ad 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PciExpressLib.h>\r
+#include <Library/IoLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/PcdLib.h>\r
+\r
 \r
 /**\r
   Assert the validity of a PCI address. A valid PCI address should contain 1's\r
index 5914d4d0ecea79e1b04652cb16c6bf2c4de5e5ec..09593dc94225519724cad7a1a7bc9a1a845db693 100644 (file)
@@ -45,7 +45,6 @@
 \r
 [Sources.common]\r
   PciLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BasePciLibCf8/CommonHeader.h b/MdePkg/Library/BasePciLibCf8/CommonHeader.h
deleted file mode 100644 (file)
index 07c1b07..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007 - 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PciLib.h>\r
-#include <Library/PciCf8Lib.h>\r
-\r
-#endif\r
index 1bf9c87ea8988dbae3c769fe9540b160d2ae7ebe..52ef02e310a6071e00ad4325fced075b326dae8d 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PciLib.h>\r
+#include <Library/PciCf8Lib.h>\r
 \r
 /**\r
   Reads an 8-bit PCI configuration register.\r
index 91ea0eeaa03ffb90b3f9ac5f384f98f58ebbc7d3..4d74eca60568507784f5bcc0b96e6dca22a059a8 100644 (file)
@@ -45,7 +45,6 @@
 \r
 [Sources.common]\r
   PciLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BasePciLibPciExpress/CommonHeader.h b/MdePkg/Library/BasePciLibPciExpress/CommonHeader.h
deleted file mode 100644 (file)
index b101e3f..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007 - 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PciLib.h>\r
-#include <Library/PciExpressLib.h>\r
-\r
-#endif\r
index 0b828dd8c74093057e80550d5d2d243ce5b7e4bb..de7c761f7e842fa8338a98af4e43827ece24078c 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PciLib.h>\r
+#include <Library/PciExpressLib.h>\r
 \r
 /**\r
   Reads an 8-bit PCI configuration register.\r
index 99bb3f76708b485c649fc17b3cf9903bc29a5381..a3423d3a6b9e6aa4102ea73dfa5a53cd21a93dc8 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   PeCoffGetEntryPoint.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BasePeCoffGetEntryPointLib/CommonHeader.h b/MdePkg/Library/BasePeCoffGetEntryPointLib/CommonHeader.h
deleted file mode 100644 (file)
index fcc8d3e..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PeCoffGetEntryPointLib.h>\r
-#include <Library/DebugLib.h>\r
-\r
-#endif\r
index 057a171e96272b5857a6c86603060350c7e52179..c44bb6420472bdb4b9265a1a9b8ca93bdc0b3856 100644 (file)
 \r
 **/\r
 \r
-\r
-\r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
+//\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
 //\r
-#include "CommonHeader.h"\r
-#include <Include/IndustryStandard/PeImage.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PeCoffGetEntryPointLib.h>\r
+#include <Library/DebugLib.h>\r
+\r
+#include <IndustryStandard/PeImage.h>\r
 \r
 /**\r
   Retrieves and returns a pointer to the entry point to a PE/COFF image that has been loaded\r
index 9f50ecd852f4034d0c9bcd98d2c09a09eed45b3c..b3d87c5ca3811f5af5e854740adf8c60fad3fdb2 100644 (file)
@@ -45,7 +45,6 @@
 \r
 [Sources.common]\r
   PerformanceLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BasePerformanceLibNull/CommonHeader.h b/MdePkg/Library/BasePerformanceLibNull/CommonHeader.h
deleted file mode 100644 (file)
index 17bcd31..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PerformanceLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/PcdLib.h>\r
-\r
-#endif\r
index 1785bab28f7132b544e643975dda8e3ed56278db..e9f21b5774564c329381c86ad6f959f1135b390f 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PerformanceLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/PcdLib.h>\r
 \r
 /**\r
   Creates a record for the beginning of a performance measurement. \r
index bc8e36d4d4c6c3a205f03c0f47bd605f91c3b2f7..466480bd65db2622fe079c3998016e25e86809ef 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   PostCode.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BasePostCodeLibDebug/CommonHeader.h b/MdePkg/Library/BasePostCodeLibDebug/CommonHeader.h
deleted file mode 100644 (file)
index 7d68ffe..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PostCodeLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/PcdLib.h>\r
-\r
-#endif\r
index f929ba811dd04d3ad815b855dd94d2d49e4e5fc1..7b5896f7b7852bc77e178f5454d4391c430269f3 100644 (file)
 \r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PostCodeLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/PcdLib.h>\r
 \r
 /**\r
   Sends an 32-bit value to a POST card.\r
index b43a00619188577d312acd8751d8bcbcfb6a9b72..117114a7e43e9fcf93289c2d2b7fb7bc0e80d8cf 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   PostCode.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BasePostCodeLibPort80/CommonHeader.h b/MdePkg/Library/BasePostCodeLibPort80/CommonHeader.h
deleted file mode 100644 (file)
index 12ef16f..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PostCodeLib.h>\r
-#include <Library/PcdLib.h>\r
-#include <Library/IoLib.h>\r
-\r
-#endif\r
index a5e8a65be173c043b37947e9382f24990883d538..d3b11e66c7db0ac36542f262d21eb7739640fd0d 100644 (file)
 \r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PostCodeLib.h>\r
+#include <Library/PcdLib.h>\r
+#include <Library/IoLib.h>\r
 \r
 /**\r
   Sends an 32-bit value to a POST card.\r
index 5a48211afccbbc08997d126e67bfc497395ea261..6147e14bcbcfdaec78c2c90193990d4fc442fea3 100644 (file)
@@ -47,7 +47,6 @@
 \r
 [Sources.common]\r
   TimerLibNull.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BaseTimerLibNullTemplate/CommonHeader.h b/MdePkg/Library/BaseTimerLibNullTemplate/CommonHeader.h
deleted file mode 100644 (file)
index c65882c..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/TimerLib.h>\r
-#include <Library/DebugLib.h>\r
-\r
-#endif\r
index caca0c3cc2b095258c61669904259804c9d0309b..ddfc6fed3e388fbdca26806b68b4237700e81934 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/TimerLib.h>\r
+#include <Library/DebugLib.h>\r
 \r
 /**\r
   Stalls the CPU for at least the given number of microseconds.\r
index 15917a1c12b767805e6d21fad185fd50a9a233ef..36d9a47e722d5208b8bce8aeef11ffb877c93ff6 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/UefiDecompressLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
 \r
 #include "BaseUefiDecompressLibInternals.h"\r
 \r
index 979c95b4465f2bd148214739e3c2cba8c6618917..2d613647ad002081df870193b78129a5727c0e53 100644 (file)
@@ -45,7 +45,6 @@
 [Sources.common]\r
   BaseUefiDecompressLibInternals.h\r
   BaseUefiDecompressLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/BaseUefiDecompressLib/CommonHeader.h b/MdePkg/Library/BaseUefiDecompressLib/CommonHeader.h
deleted file mode 100644 (file)
index 38ef4e2..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Base.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/UefiDecompressLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-\r
-#endif\r
diff --git a/MdePkg/Library/DxeCoreEntryPoint/CommonHeader.h b/MdePkg/Library/DxeCoreEntryPoint/CommonHeader.h
deleted file mode 100644 (file)
index 6f409d6..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/DxeCoreEntryPoint.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/BaseLib.h>\r
-\r
-#endif\r
index 34e84614767e8e5e4c313f14723a8af3008c0a98..e410d41f25642c004364a0d74c8de53e0d2ed9b5 100644 (file)
@@ -13,9 +13,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiDxe.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/DxeCoreEntryPoint.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/BaseLib.h>\r
 \r
 //\r
 // Cache copy of HobList pointer. \r
index ad1bb48a4f6afcf9dbd336a455bcecb42f91e614..7af788720279a006940c2de375dd42b5eb0d5473 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   DxeCoreEntryPoint.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/DxeCoreHobLib/CommonHeader.h b/MdePkg/Library/DxeCoreHobLib/CommonHeader.h
deleted file mode 100644 (file)
index 2ea383a..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/HobLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-\r
-#endif\r
index b85faa09f9ceab7b026d573a808afd38996efa54..fd1fd242f455e295f263323befa2b8ee9811d632 100644 (file)
@@ -44,9 +44,8 @@
 ################################################################################\r
 \r
 [Sources.common]\r
-  HobLib.h\r
+  InternalHobLib.h\r
   HobLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
index 8175bf67a2187bf60b572a85d276f482bc829a44..751d7cfeff5a4bc3a887e6bd1a18bdeaae9dbadc 100644 (file)
 \r
 **/\r
 \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
 //\r
-// Include common header file for this module.\r
+// The Library classes this module consumes\r
 //\r
-#include "CommonHeader.h"\r
+#include <Library/HobLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
 \r
-#include "HobLib.h"\r
+#include "InternalHobLib.h""\r
 \r
 /**\r
   Returns the pointer to the HOB list.\r
diff --git a/MdePkg/Library/DxeCoreHobLib/HobLib.h b/MdePkg/Library/DxeCoreHobLib/HobLib.h
deleted file mode 100644 (file)
index 1ff08af..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/** @file\r
-  Internal include file of DXE Entry Point HOB Library.\r
-\r
-  Copyright (c) 2006, Intel Corporation\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
-  Module Name:  HobLib.h\r
-\r
-**/\r
-\r
-#ifndef __DXE_ENTRY_POINT_HOB_LIB_H__\r
-#define __DXE_ENTRY_POINT_HOB_LIB_H__\r
-\r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
-\r
-extern VOID *gHobList;\r
-\r
-#endif\r
diff --git a/MdePkg/Library/DxeCoreHobLib/InternalHobLib.h b/MdePkg/Library/DxeCoreHobLib/InternalHobLib.h
new file mode 100644 (file)
index 0000000..8f03476
--- /dev/null
@@ -0,0 +1,22 @@
+/** @file\r
+  Internal include file of DXE Entry Point HOB Library.\r
+\r
+  Copyright (c) 2006, Intel Corporation\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
+  Module Name:  HobLib.h\r
+\r
+**/\r
+\r
+#ifndef __DXE_ENTRY_POINT_HOB_LIB_H__\r
+#define __DXE_ENTRY_POINT_HOB_LIB_H__\r
+\r
+extern VOID *gHobList;\r
+\r
+#endif\r
diff --git a/MdePkg/Library/DxeHobLib/CommonHeader.h b/MdePkg/Library/DxeHobLib/CommonHeader.h
deleted file mode 100644 (file)
index b0ccd70..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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 <Guid/HobList.h>\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/HobLib.h>\r
-#include <Library/UefiLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-\r
-#endif\r
index d5cf9d567a54a3f6215a82ef8d3747463636426a..04437e003a8094341042715bd64421b034ba060d 100644 (file)
@@ -46,7 +46,6 @@
 \r
 [Sources.common]\r
   HobLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
index c77e07172bb0a13595840ef52a49ceb2c15d9724..b05f14386b4309d4dd0417133129d93e38dc1127 100644 (file)
 **/\r
 \r
 \r
-\r
 //\r
-// Include common header file for this module.\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 <Guid/HobList.h>\r
+//\r
+// The Library classes this module consumes\r
 //\r
-#include "CommonHeader.h"\r
+#include <Library/HobLib.h>\r
+#include <Library/UefiLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
 \r
 STATIC VOID  *mHobList = NULL;\r
 \r
index 94289796388f9755cb693e5d136b6666e60e5215..e3032a9a5f1b9dccbb1f8706203b937ab4f2db37 100644 (file)
@@ -46,7 +46,6 @@
 [Sources.common]\r
   MemoryAllocationLibInternals.h\r
   MemoryAllocationLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
index b25b637734845461be287b1785f2a66b73c27e8f..e26accb316cb7db774940eeccf0822776501333d 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiDxe.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/MemoryAllocationLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
 \r
 #include "MemoryAllocationLibInternals.h"\r
 \r
index 0d8685e121f680745804a8b2a581745c7118ec0b..1234e2e6c7a21604641870b946bed5c092ce1be9 100644 (file)
 #ifndef __DXE_MEMORY_ALLOCATION_LIB_INTERNALS_H__\r
 #define __DXE_MEMORY_ALLOCATION_LIB_INTERNALS_H__\r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
-\r
 /**\r
   Allocates one or more 4KB pages of a certain memory type.\r
 \r
diff --git a/MdePkg/Library/DxePcdLib/CommonHeader.h b/MdePkg/Library/DxePcdLib/CommonHeader.h
deleted file mode 100644 (file)
index 9d2a5e1..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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/Pcd.h>\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PcdLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-\r
-#endif\r
index 380d167aff72e7f892da0d67e6635415a20c5ce3..b05c6550c81663071d7b86193c483e2e15fb7607 100644 (file)
@@ -16,9 +16,20 @@ Module Name: DxePcdLib.c
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiDxe.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+#include <Protocol/Pcd.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PcdLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
 \r
 static PCD_PROTOCOL  *mPcd;\r
 \r
index eb6459fe4badb7ca3a46e506e521eab1ae0911c5..a2e90258c3c2ec340fd861f49d2e15199818ec14 100644 (file)
@@ -47,7 +47,6 @@
 \r
 [Sources.common]\r
   DxePcdLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
index cda2b9639cab70a85dfcfa218a042cf5a7d7c517..5aea46e08455ef753a22b962cd0b5400f73e16b2 100644 (file)
 \r
 **/\r
 \r
-\r
 //\r
-// Include common header file for this module.\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 <Guid/DxeServices.h>\r
+//\r
+// The Library classes this module consumes\r
 //\r
-#include "CommonHeader.h"\r
+#include <Library/DxeServicesTableLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiLib.h>\r
 \r
 //\r
 // Cache copy of the DXE Services Table\r
index a5a47fd506f097ef678fe6d492b658e96acd2419..1f870c24bae37d8a1f03180c4f9229c8b0e1f545 100644 (file)
@@ -46,7 +46,6 @@
 \r
 [Sources.common]\r
   DxeServicesTableLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/PeiCoreEntryPoint/CommonHeader.h b/MdePkg/Library/PeiCoreEntryPoint/CommonHeader.h
deleted file mode 100644 (file)
index df5adc8..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007 - 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PeiCoreEntryPoint.h>\r
-\r
-#endif\r
index ab2a172399b006e892df460a819ec8539a0db2be..0dc56b3aeff84432487d31054a7a5e299c50ccae 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Entry point to a the PEI Core.\r
 \r
-Copyright (c) 2007, Intel Corporation<BR>\r
+Copyright (c) 2006 - 2007, 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
@@ -13,11 +13,19 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiPei.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module produced\r
+//\r
+#include <Library/PeiCoreEntryPoint.h>\r
 \r
 /**\r
+\r
   Enrty point to PEI core.\r
 \r
   @param SecCoreData    Points to a data structure containing\r
@@ -40,23 +48,21 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
                         and/or code in these early PPIs.\r
 \r
 **/\r
-EFI_STATUS\r
-EFIAPI\r
-_ModuleEntryPoint (\r
-  IN CONST EFI_SEC_PEI_HAND_OFF    *SecCoreData,\r
-  IN CONST EFI_PEI_PPI_DESCRIPTOR  *PpiList\r
-  )\r
+VOID\r
+EFIAPI \r
+_ModuleEntryPoint(\r
+  IN CONST  EFI_SEC_PEI_HAND_OFF    *SecCoreData,\r
+  IN CONST  EFI_PEI_PPI_DESCRIPTOR  *PpiList\r
+)\r
 {\r
-  //\r
-  // Call the PEI Core entry point\r
-  //\r
-  return ProcessModuleEntryPointList (SecCoreData, PpiList, NULL);\r
+  ProcessModuleEntryPointList (SecCoreData, PpiList, NULL);\r
 }\r
 \r
 \r
 /**\r
+  \r
   Wrapper of enrty point to PEI core.\r
-\r
+  \r
   @param SecCoreData    Points to a data structure containing\r
                         information about the PEI core's\r
                         operating environment, such as the size\r
@@ -77,11 +83,12 @@ _ModuleEntryPoint (
                         and/or code in these early PPIs.\r
 \r
 **/\r
-EFI_STATUS\r
+VOID\r
+EFIAPI\r
 EfiMain (\r
-  IN CONST EFI_SEC_PEI_HAND_OFF    *SecCoreData,\r
-  IN CONST EFI_PEI_PPI_DESCRIPTOR  *PpiList\r
+  IN CONST  EFI_SEC_PEI_HAND_OFF    *SecCoreData,\r
+  IN CONST  EFI_PEI_PPI_DESCRIPTOR  *PpiList\r
   )\r
 {\r
-  return _ModuleEntryPoint (SecCoreData, PpiList);\r
+  _ModuleEntryPoint (SecCoreData, PpiList);\r
 }\r
index 0d48630d8522577cff274780e7b295ec6f88a966..06456e73132fb14b03a871c905fec3aa5ac6b51b 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   PeiCoreEntryPoint.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/PeiMemoryAllocationLib/CommonHeader.h b/MdePkg/Library/PeiMemoryAllocationLib/CommonHeader.h
deleted file mode 100644 (file)
index 5c99e07..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/MemoryAllocationLib.h>\r
-#include <Library/PeiServicesTablePointerLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-#include <Library/DebugLib.h>\r
-\r
-#endif\r
index 32c62c25f92c173f0d5407984f93b759f5a0db98..156111cef4d4c99c13af2b0c1f19cb512ea2e638 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiPei.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/MemoryAllocationLib.h>\r
+#include <Library/PeiServicesTablePointerLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
 \r
 #include "MemoryAllocationLibInternals.h"\r
 \r
index 73745d972bb7bc59671c2c03688cc8a3ae1cd9c7..55e594fb388ad07552fde6b9b7718c814e3c9686 100644 (file)
 #ifndef __PEI_MEMORY_ALLOCATION_LIB_INTERNALS_H__\r
 #define __PEI_MEMORY_ALLOCATION_LIB_INTERNALS_H__\r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
-\r
 /**\r
   Allocates one or more 4KB pages of a certain memory type.\r
 \r
index ee462f845260686814774caee5312ae45c0f9dbc..cf8c78920867e0a1220af99279c40f24d03382d3 100644 (file)
@@ -46,7 +46,6 @@
 [Sources.common]\r
   MemoryAllocationLibInternals.h\r
   MemoryAllocationLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/PeiPcdLib/CommonHeader.h b/MdePkg/Library/PeiPcdLib/CommonHeader.h
deleted file mode 100644 (file)
index dae5581..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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/Pcd.h>\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PcdLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/PeiServicesTablePointerLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-\r
-#endif\r
index 76102c6a242be83aa098a25fb44a4f77d3edc7a0..f686d4e8656505f2e81571fbde4b8479e76bd734 100644 (file)
@@ -18,9 +18,20 @@ Module Name: PeiPcdLib.c
 \r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiPei.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+#include <Ppi/Pcd.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PcdLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/PeiServicesTablePointerLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
 \r
 /**\r
   The constructor function retrieve the PCD_PPI pointer.\r
index 25c1e7801c26683176a34bb5d10e8f45345ccf10..60de929637ff3d163b7a472ee918a861f670d06c 100644 (file)
@@ -46,7 +46,6 @@
 \r
 [Sources.common]\r
   PeiPcdLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/PeiResourcePublicationLib/CommonHeader.h b/MdePkg/Library/PeiResourcePublicationLib/CommonHeader.h
deleted file mode 100644 (file)
index 9aef9c8..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/ResourcePublicationLib.h>\r
-#include <Library/PeiServicesLib.h>\r
-#include <Library/DebugLib.h>\r
-\r
-#endif\r
index fca01dcd5776a89d30b4e4d0d96803c603941542..94292f2f397af9bb76a425fbe6045fbdeeff3753 100644 (file)
 \r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiPei.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/ResourcePublicationLib.h>\r
+#include <Library/PeiServicesLib.h>\r
+#include <Library/DebugLib.h>\r
+\r
 \r
 /**\r
   \r
index ade69a994bde3e321124f24f01bd07d9ec78f0a8..84da87a412fa552e4f77f598465fac1f23916ec8 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   PeiResourcePublicationLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/PeiServicesLib/CommonHeader.h b/MdePkg/Library/PeiServicesLib/CommonHeader.h
deleted file mode 100644 (file)
index abc6987..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007 - 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PeiServicesLib.h>\r
-#include <Library/PeiServicesTablePointerLib.h>\r
-\r
-#endif\r
index b6eeb7dd8ffd9d0e12ae28e8c9c5866ef0c80b93..7294618a88f3b612c3b6c646af74e8f502cf9c99 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiPei.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PeiServicesLib.h>\r
+#include <Library/PeiServicesTablePointerLib.h>\r
 \r
 /**\r
   This service enables a given PEIM to register an interface into the PEI Foundation.\r
index a7d40b1a7f6a27dc54e12645749418915d719850..daa421b46441d58d7438f716b2585ffb352b0fce 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   PeiServicesLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
index 6c4d7851e8647931a8d07cd92aa5b7a8e554c18f..c923f601d87a695b6c615d69e0c032126ea490a6 100644 (file)
 \r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiPei.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PeiServicesTablePointerLib.h>\r
+#include <Library/DebugLib.h>\r
 \r
 static EFI_PEI_SERVICES  **gPeiServices;\r
 \r
index bd8c311690290aaf163713c4b52613c933f4dac2..dc997ad6225acf5b9e15b71ff2e216a679aaa43c 100644 (file)
@@ -47,7 +47,6 @@
 \r
 [Sources.common]\r
   PeiServicesTablePointer.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/PeiServicesTablePointerLibIdt/Ia32/AsmPeiSevicesTablePointer.S b/MdePkg/Library/PeiServicesTablePointerLibIdt/Ia32/AsmPeiSevicesTablePointer.S
new file mode 100644 (file)
index 0000000..22d32ac
--- /dev/null
@@ -0,0 +1,36 @@
+#------------------------------------------------------------------------------\r
+#\r
+# Copyright (c) 2006, Intel Corporation\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
+# Module Name:\r
+#\r
+#   ReadIdtr.Asm\r
+#\r
+# Abstract:\r
+#\r
+#   AsmPeiSevicesTablePointer function\r
+#\r
+# Notes:\r
+#\r
+#------------------------------------------------------------------------------\r
+\r
+.globl ASM_PFX(AsmPeiSevicesTablePointer)\r
+\r
+#------------------------------------------------------------------------------\r
+# EFI_PEI_SERVICES **\r
+# EFIAPI\r
+# AsmPeiSevicesTablePointer (\r
+#   );\r
+#------------------------------------------------------------------------------\r
+ASM_PFX(AsmPeiSevicesTablePointer):\r
+    movl    4(%esp), %eax\r
+    sidt    (%eax)\r
+    movl    -4(%eax), %eax\r
+    ret\r
diff --git a/MdePkg/Library/PeiServicesTablePointerLibIdt/Ia32/AsmPeiSevicesTablePointer.asm b/MdePkg/Library/PeiServicesTablePointerLibIdt/Ia32/AsmPeiSevicesTablePointer.asm
new file mode 100644 (file)
index 0000000..74f19af
--- /dev/null
@@ -0,0 +1,41 @@
+;------------------------------------------------------------------------------\r
+;\r
+; Copyright (c) 2006, Intel Corporation\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
+; Module Name:\r
+;\r
+;   AsmPeiSevicesTablePointer.Asm\r
+;\r
+; Abstract:\r
+;\r
+;   AsmPeiSevicesTablePointer function\r
+;\r
+; Notes:\r
+;\r
+;------------------------------------------------------------------------------\r
+\r
+    .386\r
+    .model  flat,C\r
+    .code\r
+\r
+;------------------------------------------------------------------------------\r
+; EFI_PEI_SERVICES **\r
+; EFIAPI\r
+; AsmPeiSevicesTablePointer (\r
+;   );\r
+;------------------------------------------------------------------------------\r
+PeiServicesTablePointer PROC\r
+    mov     eax, [esp + 4]\r
+    sidt    fword ptr [eax]\r
+    mov     eax, [eax - 4]\r
+    ret\r
+PeiServicesTablePointer ENDP\r
+\r
+    END\r
diff --git a/MdePkg/Library/PeiServicesTablePointerLibIdt/Ia32/AsmPeiSevicesTablePointer.c b/MdePkg/Library/PeiServicesTablePointerLibIdt/Ia32/AsmPeiSevicesTablePointer.c
new file mode 100644 (file)
index 0000000..aa578ee
--- /dev/null
@@ -0,0 +1,25 @@
+/** @file\r
+  AsmReadIdtr function\r
+\r
+  Copyright (c) 2006 - 2007, 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
+\r
+**/\r
+\r
+EFI_PEI_SERVICES **\r
+EFIAPI\r
+AsmPeiSevicesTablePointer (\r
+  VOID\r
+  )\r
+{\r
+  _asm {\r
+    sidt    fword ptr [eax]\r
+    mov     eax, [eax - 4]\r
+  }\r
+}\r
diff --git a/MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h b/MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h
new file mode 100644 (file)
index 0000000..44bc71b
--- /dev/null
@@ -0,0 +1,31 @@
+/*++\r
+\r
+Copyright (c) 2006 - 2007 Intel Corporation. All rights reserved\r
+This software and associated documentation (if any) is furnished\r
+under a license and may only be used or copied in accordance\r
+with the terms of the license. Except as permitted by such\r
+license, no part of this software or documentation may be\r
+reproduced, stored in a retrieval system, or transmitted in any\r
+form or by any means without the express written consent of\r
+Intel Corporation.\r
+\r
+\r
+Module Name:\r
+\r
+  InternalPeiServicesTablePointer.h\r
+\r
+  \r
+--*/\r
+\r
+#ifndef __INTERNAL_PEI_SERVICES_TABLE_POINTER_H__\r
+#define __INTERNAL_PEI_SERVICES_TABLE_POINTER_H__\r
+\r
+extern \r
+EFI_PEI_SERVICES **\r
+EFIAPI\r
+AsmPeiSevicesTablePointer (\r
+  VOID\r
+  );\r
+\r
+\r
+#endif
\ No newline at end of file
diff --git a/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointer.c b/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointer.c
new file mode 100644 (file)
index 0000000..4c9b3d3
--- /dev/null
@@ -0,0 +1,50 @@
+/*++\r
+\r
+Copyright (c) 2006 Intel Corporation. All rights reserved\r
+This software and associated documentation (if any) is furnished\r
+under a license and may only be used or copied in accordance\r
+with the terms of the license. Except as permitted by such\r
+license, no part of this software or documentation may be\r
+reproduced, stored in a retrieval system, or transmitted in any\r
+form or by any means without the express written consent of\r
+Intel Corporation.\r
+\r
+\r
+Module Name:\r
+\r
+  PeiServicesTablePointer.c\r
+\r
+Abstract:\r
+\r
+  PEI Services Table Pointer Library.\r
+  \r
+--*/\r
+\r
+#include "InternalPeiServicesTablePointer.h"\r
+\r
+/**\r
+  \r
+  The function returns the pointer to PeiServicee following\r
+  PI1.0.\r
+  \r
+  For IA32, the four-bytes field immediately prior to new IDT\r
+  base addres is used to save the EFI_PEI_SERVICES**.\r
+  For x64, the eight-bytes field immediately prior to new IDT\r
+  base addres is used to save the EFI_PEI_SERVICES**.\r
+\r
+  @retval  The pointer to PeiServices.\r
+\r
+**/\r
+EFI_PEI_SERVICES **\r
+EFIAPI\r
+GetPeiServicesTablePointer (\r
+  VOID\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+\r
+  PeiServices = (EFI_PEI_SERVICES **) AsmPeiSevicesTablePointer ();\r
+  ASSERT (PeiServices != NULL);\r
+  return PeiServices;\r
+}\r
+\r
diff --git a/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.msa b/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.msa
new file mode 100644 (file)
index 0000000..99c482e
--- /dev/null
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r
+  <MsaHeader>\r
+    <ModuleName>PeiServicesTablePointerLibIdt</ModuleName>\r
+    <ModuleType>PEIM</ModuleType>\r
+    <GuidValue>DED3F743-CE2C-4ba6-92A2-FFCE2A6D72D9</GuidValue>\r
+    <Version>1.0</Version>\r
+    <Abstract>Component description file for IPF KR1 Pei Services Table Pointer Library</Abstract>\r
+    <Description>PEI Services Table Library implementation that retrieves a pointer to the PEI
+      Services Table from the KR1 register on IPF.</Description>\r
+    <Copyright>Copyright (c) 2006 - 2007, Intel Corporation.</Copyright>\r
+    <License>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.</License>\r
+    <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00000052</Specification>\r
+  </MsaHeader>\r
+  <ModuleDefinitions>\r
+    <SupportedArchitectures>IA32 X64</SupportedArchitectures>\r
+    <BinaryModule>false</BinaryModule>\r
+    <OutputFileBasename>PeiServicesTablePointerLibIdt</OutputFileBasename>\r
+  </ModuleDefinitions>\r
+  <LibraryClassDefinitions>\r
+    <LibraryClass Usage="ALWAYS_PRODUCED" SupModuleList="PEIM PEI_CORE">\r
+      <Keyword>PeiServicesTablePointerLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>DebugLib</Keyword>\r
+    </LibraryClass>\r
+  </LibraryClassDefinitions>\r
+  <SourceFiles>\r
+    <Filename SupArchList="IA32 X64">PeiServicesTablePointer.c</Filename>\r
+    <Filename SupArchList="IA32" ToolChainFamily="GCC">Ia32/AsmPeiSevicesTablePointer.S</Filename>\r
+    <Filename SupArchList="IA32" ToolChainFamily="MSFT">Ia32/AsmPeiSevicesTablePointer.c</Filename>\r
+    <Filename SupArchList="X64" ToolChainFamily="GCC">x64/AsmPeiSevicesTablePointer.S</Filename>\r
+    <Filename SupArchList="X64" ToolChainFamily="MSFT">x64/AsmPeiSevicesTablePointer.asm</Filename>\r
+  </SourceFiles>\r
+  <NonProcessedFiles>\r
+    <Filename>Ia32/AsmPeiSevicesTablePointer.Asm</Filename>\r
+  </NonProcessedFiles>\r
+  <PackageDependencies>\r
+    <Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
+  </PackageDependencies>\r
+  <Externs>\r
+    <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
+    <Specification>EDK_RELEASE_VERSION 0x00020000</Specification>\r
+  </Externs>\r
+</ModuleSurfaceArea>
\ No newline at end of file
diff --git a/MdePkg/Library/PeiServicesTablePointerLibIdt/x64/AsmPeiSevicesTablePointer.S b/MdePkg/Library/PeiServicesTablePointerLibIdt/x64/AsmPeiSevicesTablePointer.S
new file mode 100644 (file)
index 0000000..30eccdd
--- /dev/null
@@ -0,0 +1,36 @@
+#------------------------------------------------------------------------------
+#
+# 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:
+#
+#   AsmPeiSevicesTablePointer.S
+#
+# Abstract:
+#
+#   AsmPeiSevicesTablePointer function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+
+#------------------------------------------------------------------------------
+# EFI_PEI_SERVICES **
+# EFIAPI
+# AsmPeiSevicesTablePointer (
+#   );
+#------------------------------------------------------------------------------
+.global AsmPeiSevicesTablePointer;
+.align 16;
+AsmPeiSevicesTablePointer:
+    sidt    (%rcx)
+    movq    -8(%rcx), %rcx
+    ret
diff --git a/MdePkg/Library/PeiServicesTablePointerLibIdt/x64/AsmPeiSevicesTablePointer.asm b/MdePkg/Library/PeiServicesTablePointerLibIdt/x64/AsmPeiSevicesTablePointer.asm
new file mode 100644 (file)
index 0000000..290e929
--- /dev/null
@@ -0,0 +1,38 @@
+;------------------------------------------------------------------------------\r
+;\r
+; Copyright (c) 2006, Intel Corporation\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
+; Module Name:\r
+;\r
+;   ReadIdtr.Asm\r
+;\r
+; Abstract:\r
+;\r
+;   AsmPeiSevicesTablePointer function\r
+;\r
+; Notes:\r
+;\r
+;------------------------------------------------------------------------------\r
+\r
+    .code\r
+\r
+;------------------------------------------------------------------------------\r
+; EFI_PEI_SERVICES **\r
+; EFIAPI\r
+; AsmPeiSevicesTablePointer (\r
+;   );\r
+;------------------------------------------------------------------------------\r
+AsmPeiSevicesTablePointer   PROC\r
+    sidt    fword ptr [rcx]\r
+    mov     rcx, [rcx - 8]\r
+    ret\r
+AsmPeiSevicesTablePointer   ENDP\r
+\r
+    END\r
diff --git a/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c b/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c
new file mode 100644 (file)
index 0000000..c3cd57e
--- /dev/null
@@ -0,0 +1,46 @@
+/*++\r
+\r
+Copyright (c) 2006 Intel Corporation. All rights reserved\r
+This software and associated documentation (if any) is furnished\r
+under a license and may only be used or copied in accordance\r
+with the terms of the license. Except as permitted by such\r
+license, no part of this software or documentation may be\r
+reproduced, stored in a retrieval system, or transmitted in any\r
+form or by any means without the express written consent of\r
+Intel Corporation.\r
+\r
+\r
+Module Name:\r
+\r
+  PeiServicesTablePointer.c\r
+\r
+Abstract:\r
+\r
+  PEI Services Table Pointer Library.\r
+  \r
+--*/\r
+\r
+#include <Library/BaseLib.h>\r
+\r
+/**\r
+  The function returns the pointer to PeiServices.\r
+\r
+  The function returns the pointer to PeiServices.\r
+  It will ASSERT() if the pointer to PeiServices is NULL.\r
+\r
+  @retval  The pointer to PeiServices.\r
+\r
+**/\r
+EFI_PEI_SERVICES **\r
+EFIAPI\r
+GetPeiServicesTablePointer (\r
+  VOID\r
+  )\r
+{\r
+  EFI_PEI_SERVICES  **PeiServices;\r
+\r
+  PeiServices = (EFI_PEI_SERVICES **)(UINTN)AsmReadKr7 ();\r
+  ASSERT (PeiServices != NULL);\r
+  return PeiServices;\r
+}\r
+\r
diff --git a/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointerLibKr7.msa b/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointerLibKr7.msa
new file mode 100644 (file)
index 0000000..77f926a
--- /dev/null
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r
+  <MsaHeader>\r
+    <ModuleName>PeiServicesTablePointerLibKr7</ModuleName>\r
+    <ModuleType>PEIM</ModuleType>\r
+    <GuidValue>E0E7D776-E7EB-4e5f-9AA8-54CF3AA64A43</GuidValue>\r
+    <Version>1.0</Version>\r
+    <Abstract>Component description file for IPF KR1 Pei Services Table Pointer Library</Abstract>\r
+    <Description>PEI Services Table Library implementation that retrieves a pointer to the PEI
+      Services Table from the KR1 register on IPF.</Description>\r
+    <Copyright>Copyright (c) 2006 - 2007, Intel Corporation.</Copyright>\r
+    <License>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.</License>\r
+    <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00000052</Specification>\r
+  </MsaHeader>\r
+  <ModuleDefinitions>\r
+    <SupportedArchitectures>IPF</SupportedArchitectures>\r
+    <BinaryModule>false</BinaryModule>\r
+    <OutputFileBasename>PeiServicesTablePointerLibKr7</OutputFileBasename>\r
+  </ModuleDefinitions>\r
+  <LibraryClassDefinitions>\r
+    <LibraryClass Usage="ALWAYS_PRODUCED" SupModuleList="PEIM PEI_CORE">\r
+      <Keyword>PeiServicesTablePointerLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>DebugLib</Keyword>\r
+    </LibraryClass>\r
+  </LibraryClassDefinitions>\r
+  <SourceFiles>\r
+    <Filename>PeiServicesTablePointer.c</Filename>\r
+  </SourceFiles>\r
+  <PackageDependencies>\r
+    <Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
+  </PackageDependencies>\r
+  <Externs>\r
+    <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
+    <Specification>EDK_RELEASE_VERSION 0x00020000</Specification>\r
+  </Externs>\r
+</ModuleSurfaceArea>
\ No newline at end of file
diff --git a/MdePkg/Library/PeimEntryPoint/CommonHeader.h b/MdePkg/Library/PeimEntryPoint/CommonHeader.h
deleted file mode 100644 (file)
index 64d6b7a..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/PeimEntryPoint.h>\r
-#include <Library/DebugLib.h>\r
-\r
-#endif\r
index f80d4c2c88cebad09df7d39ca196e28dbb5dd11c..a7faf2b5f4dd28c34e8ea0a56fed8149ad3e17ac 100644 (file)
@@ -14,9 +14,17 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiPei.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PeimEntryPoint.h>\r
+#include <Library/DebugLib.h>\r
 \r
 /**\r
   Image entry point of Peim.\r
index cefd6e4e88a59583492efcda813303b033c05941..b8668d8389ab22bc31dc4ae58642c4a1385008a0 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   PeimEntryPoint.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
index 580668c88252d1bb3c90585fcb3f5d12355f54b5..d56a0888041c43a74340378968d8f423444a7e77 100644 (file)
@@ -13,9 +13,17 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Uefi.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/UefiApplicationEntryPoint.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
 \r
 /**\r
   Enrty point to UEFI application.\r
index 0bb4cde41805085c6a99809a5fc8b7b1b0090e74..60d06fd75f63bee1f74242fa6bafb9f5f915de2f 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   ApplicationEntryPoint.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/UefiBootServicesTableLib/CommonHeader.h b/MdePkg/Library/UefiBootServicesTableLib/CommonHeader.h
deleted file mode 100644 (file)
index c7a33f2..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/DebugLib.h>\r
-\r
-#endif\r
index b7795e6a3c0c1b903c358ce46dfdbeb8200a2205..bf77adf49c66103a57f059cffd8fb1f31e331285 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiDxe.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/DebugLib.h>\r
 \r
 EFI_HANDLE         gImageHandle = NULL;\r
 EFI_SYSTEM_TABLE   *gST         = NULL;\r
index 3d5b1f376b40745bdee79dbd09d6dba88b9e7536..25fa23aad4ae02c8be044874d9ff5c7deb2430b5 100644 (file)
@@ -45,7 +45,6 @@
 \r
 [Sources.common]\r
   UefiBootServicesTableLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/UefiDebugLibConOut/CommonHeader.h b/MdePkg/Library/UefiDebugLibConOut/CommonHeader.h
deleted file mode 100644 (file)
index 1851011..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Uefi.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/DebugLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/PrintLib.h>\r
-#include <Library/PcdLib.h>\r
-#include <Library/BaseLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-\r
-#endif\r
index 711f29c6d12f93176134af81dca88131aebc28f1..ebe00c7f359684066b374bc1ff93d27630798e0d 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Uefi.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/PrintLib.h>\r
+#include <Library/PcdLib.h>\r
+#include <Library/BaseLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+\r
 \r
 //\r
 // Define the maximum debug and assert message length that this library supports \r
index 2d7868503fa48532276bad02b98e2bc0c662fe23..6aee822fe371a836062e474e6184898a2534d8f0 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   DebugLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/UefiDebugLibStdErr/CommonHeader.h b/MdePkg/Library/UefiDebugLibStdErr/CommonHeader.h
deleted file mode 100644 (file)
index 1851011..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Uefi.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/DebugLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/PrintLib.h>\r
-#include <Library/PcdLib.h>\r
-#include <Library/BaseLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-\r
-#endif\r
index c03009c801432cdc4cd6fdeacdc57d6eb3f6ac35..ca4e56e98dced3b793d20c5ac9dfc2baf73e8455 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Uefi.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/PrintLib.h>\r
+#include <Library/PcdLib.h>\r
+#include <Library/BaseLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
 \r
 //\r
 // Define the maximum debug and assert message length that this library supports \r
index 9f8fbe64c1026466203a64ce43dea0026dacfbf0..a46f3ef0d5fd979484461a8e1750e96aa91f9c5e 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   DebugLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/UefiDevicePathLib/CommonHeader.h b/MdePkg/Library/UefiDevicePathLib/CommonHeader.h
deleted file mode 100644 (file)
index d34b4d9..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007 - 2007, Intel Corporation\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Uefi.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-#include <Protocol/DevicePath.h>\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/DevicePathLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/BaseLib.h>\r
-\r
-#endif\r
index bdc512b495ae616d92a7cd600e37173917636dce..2031fe69eac75ff70edf6bc8bb4ccce266af9206 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Uefi.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+#include <Protocol/DevicePath.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/DevicePathLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/BaseLib.h>\r
 \r
 /**\r
   Returns the size of a device path in bytes.\r
index 20f6449f2369b183da70ecf1c987e91b2d175381..d21cde18cf22fe5bb6f2e6f7df2997fbed5d3449 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   UefiDevicePathLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/CommonHeader.h b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/CommonHeader.h
deleted file mode 100644 (file)
index 40a075d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007 - 2007, Intel Corporation\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Uefi.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-#include <Protocol/DevicePathUtilities.h>\r
-#include <Protocol/DevicePath.h>\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/DevicePathLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/BaseLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-\r
-#endif\r
index 2492e4b95db373f9a56716cb8d1b724160c382d0..6a587ab1c57086ff61341aaa6d3134433b8778a6 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Uefi.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+#include <Protocol/DevicePathUtilities.h>\r
+#include <Protocol/DevicePath.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/DevicePathLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/BaseLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
 \r
 STATIC EFI_DEVICE_PATH_UTILITIES_PROTOCOL          *mDevicePathUtilities = NULL;\r
 \r
index 39da0153782a55b0f80adc45f9856bc0ab946289..4827da100c1a8c937b8b067696447629d5658bc5 100644 (file)
@@ -46,7 +46,6 @@
 \r
 [Sources.common]\r
   UefiDevicePathLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
diff --git a/MdePkg/Library/UefiDriverEntryPoint/CommonHeader.h b/MdePkg/Library/UefiDriverEntryPoint/CommonHeader.h
deleted file mode 100644 (file)
index 7749e63..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007 - 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <Uefi.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-#include <Protocol/LoadedImage.h>\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/UefiDriverEntryPoint.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-\r
-#endif\r
index 8e3b30ac1e585a1b44b4fde1c3541ea2eb86388b..20abcdaf6b821e7d63629463f9d902c6c5afbaad 100644 (file)
@@ -14,9 +14,19 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <Uefi.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+#include <Protocol/LoadedImage.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/UefiDriverEntryPoint.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
 \r
 \r
 /**\r
@@ -49,7 +59,6 @@ _DriverUnloadHandler (
   // unloaded, and the library destructors should not be called\r
   //\r
   if (!EFI_ERROR (Status)) {\r
-\r
     ProcessLibraryDestructorList (ImageHandle, gST);\r
   }\r
 \r
@@ -60,31 +69,6 @@ _DriverUnloadHandler (
 }\r
 \r
 \r
-/**\r
-  Notification Entry of ExitBootService event. In the entry, all notifications in _gDriverExitBootServicesEvent[]\r
-  would be invoked.\r
-\r
-  @param Event   The Event that is being processed.\r
-  @param Context Event Context.\r
-\r
-**/\r
-STATIC\r
-VOID\r
-EFIAPI\r
-_DriverExitBootServices (\r
-  IN EFI_EVENT        Event,\r
-  IN VOID             *Context\r
-  )\r
-{\r
-  EFI_EVENT_NOTIFY  ChildNotifyEventHandler;\r
-  UINTN             Index;\r
-\r
-  for (Index = 0; _gDriverExitBootServicesEvent[Index] != NULL; Index++) {\r
-    ChildNotifyEventHandler = _gDriverExitBootServicesEvent[Index];\r
-    ChildNotifyEventHandler (Event, NULL);\r
-  }\r
-}\r
-\r
 /**\r
   Enrty point to DXE Driver.\r
 \r
@@ -114,6 +98,11 @@ _ModuleEntryPoint (
     }\r
   }\r
 \r
+  //\r
+  // Call constructor for all libraries\r
+  //\r
+  ProcessLibraryConstructorList (ImageHandle, SystemTable);\r
+\r
   //\r
   //  Install unload handler...\r
   //\r
@@ -127,11 +116,6 @@ _ModuleEntryPoint (
     LoadedImage->Unload = _DriverUnloadHandler;\r
   }\r
 \r
-  //\r
-  // Call constructor for all libraries\r
-  //\r
-  ProcessLibraryConstructorList (ImageHandle, SystemTable);\r
-\r
   //\r
   // Call the driver entry point\r
   //\r
index b28ed5d66e7639a292888e9c1309ae3ae211f9ac..e552d55dc4c9413e7bb4a1d2cd932ccde112855a 100644 (file)
@@ -44,7 +44,6 @@
 \r
 [Sources.common]\r
   DriverEntryPoint.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
index 9a52f266e0f2eebe66adfd9ec3df0f9314048006..ad028a769a1f6e08adc8b3da255c982ec0567784 100644 (file)
 //\r
 #include <Protocol/DriverBinding.h>\r
 #include <Protocol/ComponentName.h>\r
+#include <Protocol/ComponentName2.h>\r
 #include <Protocol/DriverConfiguration.h>\r
 #include <Protocol/DriverDiagnostics.h>\r
+#include <Protocol/DriverDiagnostics2.h>\r
 \r
 \r
 #include <Guid/EventGroup.h>\r
index 1b218a42cb95ed464d1aa7bdf3cf8fe560e7077d..1801b17bdf3001629ee4f1c216e7714d2c964f1e 100644 (file)
@@ -48,6 +48,7 @@
 [Sources.common]\r
   UefiLibPrint.c\r
   UefiNotTiano.c\r
+  UefiDriverModel.c\r
   Console.c\r
   UefiLib.c\r
   CommonHeader.h\r
 \r
 [PcdsFixedAtBuild.common]\r
   PcdUefiLibMaxPrintBufferSize|gEfiMdePkgTokenSpaceGuid\r
+\r
+[PcdsFeatureFlag.common]\r
   PcdDriverDiagnosticsDisable|gEfiMdePkgTokenSpaceGuid\r
   PcdComponentNameDisable|gEfiMdePkgTokenSpaceGuid\r
+  PcdDriverDiagnostics2Disable|gEfiMdePkgTokenSpaceGuid\r
+  PcdComponentName2Disable|gEfiMdePkgTokenSpaceGuid\r
 \r
index b6693d4854dc10ef55ffea7bb3bf07bc56ade8f4..a5616ab1c65c6b3c852aaed6a6e1d5239601721d 100644 (file)
@@ -55,6 +55,7 @@
     <Filename>Console.c</Filename>\r
     <Filename>UefiNotTiano.c</Filename>\r
     <Filename>UefiLibPrint.c</Filename>\r
+    <Filename>UefiDriverModel.c</Filename>\r
   </SourceFiles>\r
   <PackageDependencies>\r
     <Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
       <TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>\r
       <HelpText>This PCD is used by UefiLib APIs, which are Print, ErrorPrint, AsciiPrint, AsciiErrorPrint. If the length of the formatted Unicode or ASCII string is greater than PcdUefiLibMaxPrintBufferSize, then only the first (PcdUefiLibMaxPrintBufferSize / Sizeof(CHAR16)) Unicode characters or PcdUefiLibMaxPrintBufferSize Ascii characters are sent to the respective console.</HelpText>\r
     </PcdEntry>\r
+    <PcdEntry PcdItemType="FEATURE_FLAG" Usage="ALWAYS_CONSUMED">\r
+      <C_Name>PcdDriverDiagnosticsDisable</C_Name>\r
+      <TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <HelpText>If this value is set TRUE, autogen will replace Driver Diagnostics Protocol instance with NULL.</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry PcdItemType="FEATURE_FLAG" Usage="ALWAYS_CONSUMED">\r
+      <C_Name>PcdDriverDiagnostics2Disable</C_Name>\r
+      <TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <HelpText>If this value is set TRUE, autogen will replace Driver Diagnostics2 Protocol instance with NULL.</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry PcdItemType="FEATURE_FLAG" Usage="ALWAYS_CONSUMED">\r
+      <C_Name>PcdComponentNameDisable</C_Name>\r
+      <TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <HelpText>If this value is set TRUE, autogen will replace Component Name Protocol instance with NULL.</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry PcdItemType="FEATURE_FLAG" Usage="ALWAYS_CONSUMED">\r
+      <C_Name>PcdComponentName2Disable</C_Name>\r
+      <TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <HelpText>If this value is set TRUE, autogen will replace Component Name2 Protocol instance with NULL.</HelpText>\r
+    </PcdEntry>\r
   </PcdCoded>\r
 </ModuleSurfaceArea>
\ No newline at end of file
index b00cc22d8231c80b07e75c97c19b0a9269847b88..9eba9ddf48648350afc59f8cec927e33e996840a 100644 (file)
@@ -103,7 +103,10 @@ EfiCreateEventLegacyBootEx (
 \r
   ASSERT (LegacyBootEvent != NULL);\r
 \r
-  if (gST->Hdr.Revision < 0x00020000) {\r
+  if (gST->Hdr.Revision < EFI_2_00_SYSTEM_TABLE_REVISION) {\r
+    DEBUG ((EFI_D_ERROR, "EFI1.1 can't support LegacyBootEvent!"));\r
+    ASSERT (FALSE);\r
+\r
     return EFI_UNSUPPORTED;\r
   } else {\r
     //\r
@@ -145,7 +148,7 @@ EfiCreateEventReadyToBoot (
   )\r
 {\r
   return EfiCreateEventReadyToBootEx (\r
-           TPL_CALLBACK ,\r
+           TPL_CALLBACK,\r
            InternalEmptyFuntion,\r
            NULL,\r
            ReadyToBootEvent\r
@@ -184,7 +187,10 @@ EfiCreateEventReadyToBootEx (
 \r
   ASSERT (ReadyToBootEvent != NULL);\r
 \r
-  if (gST->Hdr.Revision < 0x00020000) {\r
+  if (gST->Hdr.Revision < EFI_2_00_SYSTEM_TABLE_REVISION) {\r
+    DEBUG ((EFI_D_ERROR, "EFI1.1 can't support ReadyToBootEvent!"));\r
+    ASSERT (FALSE);\r
+\r
     return EFI_UNSUPPORTED;\r
   } else {\r
     //\r
@@ -269,16 +275,20 @@ EfiSignalEventLegacyBoot (
   @retval Other             FvDevicePathNode is valid and pointer to NameGuid was returned.\r
 \r
 **/\r
-EFI_GUID *\r
+EFI_GUID*\r
 EFIAPI\r
 EfiGetNameGuidFromFwVolDevicePathNode (\r
-  IN CONST MEDIA_FW_VOL_FILEPATH_DEVICE_PATH  *FvDevicePathNode\r
+  IN CONST MEDIA_FW_VOL_FILEPATH_DEVICE_PATH  *FvFileDevicePathNode\r
   )\r
 {\r
-  ASSERT (FvDevicePathNode != NULL);\r
-  //\r
-  //  bugbug:Need to implement ...\r
-  //\r
+  ASSERT (FvFileDevicePathNode != NULL);\r
+\r
+  if (FvFileDevicePathNode->Header.Type == MEDIA_DEVICE_PATH &&\r
+      FvFileDevicePathNode->Header.SubType == MEDIA_PIWG_FW_FILE_DP\r
+     ) {\r
+    return (EFI_GUID *) &FvFileDevicePathNode->FvFileName;\r
+  }\r
+\r
   return NULL;\r
 }\r
 \r
@@ -300,14 +310,20 @@ EfiGetNameGuidFromFwVolDevicePathNode (
 VOID\r
 EFIAPI\r
 EfiInitializeFwVolDevicepathNode (\r
-  IN OUT MEDIA_FW_VOL_FILEPATH_DEVICE_PATH  *FvDevicePathNode,\r
-  IN CONST EFI_GUID                         *NameGuid\r
+  IN OUT    MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FvFileDevicePathNode,\r
+  IN CONST  EFI_GUID                          *NameGuid\r
   )\r
 {\r
-  ASSERT (FvDevicePathNode  != NULL);\r
+  ASSERT (FvFileDevicePathNode  != NULL);\r
   ASSERT (NameGuid          != NULL);\r
+\r
   //\r
-  //  bugbug:Need to implement ...\r
+  // Use the new Device path that does not conflict with the UEFI\r
   //\r
+  FvFileDevicePathNode->Header.Type     = MEDIA_DEVICE_PATH;\r
+  FvFileDevicePathNode->Header.SubType  = MEDIA_PIWG_FW_FILE_DP;\r
+  SetDevicePathNodeLength (&FvFileDevicePathNode->Header, sizeof (MEDIA_FW_VOL_FILEPATH_DEVICE_PATH));\r
+\r
+  CopyGuid (&FvFileDevicePathNode->FvFileName, NameGuid);\r
 }\r
 \r
diff --git a/MdePkg/Library/UefiRuntimeServicesTableLib/CommonHeader.h b/MdePkg/Library/UefiRuntimeServicesTableLib/CommonHeader.h
deleted file mode 100644 (file)
index ca35d63..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/**@file\r
-  Common header file shared by all source files.\r
-\r
-  This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
-\r
-  Copyright (c) 2007, Intel Corporation.\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
-#ifndef __COMMON_HEADER_H_\r
-#define __COMMON_HEADER_H_\r
-\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
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/UefiRuntimeServicesTableLib.h>\r
-#include <Library/DebugLib.h>\r
-\r
-#endif\r
index 7fb777348fe9bb3046bfdb6e221b909eee63afae..3d493d5af4d987731b956647cde00452786de26b 100644 (file)
 **/\r
 \r
 //\r
-// Include common header file for this module.\r
+// The package level header files this module uses\r
 //\r
-#include "CommonHeader.h"\r
+#include <PiDxe.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/UefiRuntimeServicesTableLib.h>\r
+#include <Library/DebugLib.h>\r
 \r
 EFI_RUNTIME_SERVICES  *gRT = NULL;\r
 \r
index 86d31fb6ab2daacb16c3d333d31e341d5136b6bb..d99c0193febe7680eaa6734387ab8f3889b0a154 100644 (file)
@@ -45,7 +45,6 @@
 \r
 [Sources.common]\r
   UefiRuntimeServicesTableLib.c\r
-  CommonHeader.h\r
 \r
 \r
 ################################################################################\r
index 38c956d9bbdceb2a2436b5c850513f37dbfcd66e..ece4a28024d12693c549e633b3151b2cd6032e7f 100644 (file)
 [PcdsFeatureFlag.common]\r
   PcdComponentNameDisable|0x0000000d|gEfiMdePkgTokenSpaceGuid|BOOLEAN|FALSE\r
   PcdDriverDiagnosticsDisable|0x0000000e|gEfiMdePkgTokenSpaceGuid|BOOLEAN|FALSE\r
+  PcdComponentName2Disable|0x0000ffff|gEfiMdePkgTokenSpaceGuid|BOOLEAN|FALSE\r
+  PcdDriverDiagnostics2Disable|0x0000fffe|gEfiMdePkgTokenSpaceGuid|BOOLEAN|FALSE\r
 \r
 [PcdsFixedAtBuild.common]\r
   PcdMaximumUnicodeStringLength|0x00000001|gEfiMdePkgTokenSpaceGuid|UINT32|1000000\r
index 97eb8c5a1f96c967ea27ce6331152eef771f83a8..4ce2a55d3035bca1093c1d8c5b93015fdcdcd19c 100644 (file)
       <HelpText>If this value is set TRUE, autogen will replace Compoent Name Protocol instance with NULL.</HelpText>\r
     </PcdEntry>\r
     <PcdEntry>\r
-      <C_Name>PcdDriverDiagnosticsDisable</C_Name>\r
+      <C_Name>PcdDriverDiagnostics2Disable</C_Name>\r
       <Token>0x0000000e</Token>\r
       <TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>\r
       <DatumType>BOOLEAN</DatumType>\r
       <DefaultValue>FALSE</DefaultValue>\r
       <HelpText>If this value is set TRUE, autogen will replace Driver Diagnostics Protocol instance with NULL.</HelpText>\r
     </PcdEntry>\r
+    <PcdEntry>\r
+      <C_Name>PcdComponentName2Disable</C_Name>\r
+      <Token>0x0000000f</Token>\r
+      <TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <DatumType>BOOLEAN</DatumType>\r
+      <ValidUsage>FEATURE_FLAG</ValidUsage>\r
+      <DefaultValue>FALSE</DefaultValue>\r
+      <HelpText>If this value is set TRUE, autogen will replace Compoent Name Protocol instance with NULL.</HelpText>\r
+    </PcdEntry>\r
+    <PcdEntry>\r
+      <C_Name>PcdDriverDiagnostics2Disable</C_Name>\r
+      <Token>0x00000010</Token>\r
+      <TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>\r
+      <DatumType>BOOLEAN</DatumType>\r
+      <ValidUsage>FEATURE_FLAG</ValidUsage>\r
+      <DefaultValue>FALSE</DefaultValue>\r
+      <HelpText>If this value is set TRUE, autogen will replace Driver Diagnostics Protocol instance with NULL.</HelpText>\r
+    </PcdEntry>\r
     <PcdEntry>\r
       <C_Name>PcdUefiLibMaxPrintBufferSize</C_Name>\r
       <Token>0x101</Token>\r