Some redundant library classes and GUIDs
have been removed in inf, .c and .h files.
https://bugzilla.tianocore.org/show_bug.cgi?id=1044
https://bugzilla.tianocore.org/show_bug.cgi?id=1045
https://bugzilla.tianocore.org/show_bug.cgi?id=1047
https://bugzilla.tianocore.org/show_bug.cgi?id=1049
https://bugzilla.tianocore.org/show_bug.cgi?id=1051
https://bugzilla.tianocore.org/show_bug.cgi?id=1052
https://bugzilla.tianocore.org/show_bug.cgi?id=1053
https://bugzilla.tianocore.org/show_bug.cgi?id=1054
https://bugzilla.tianocore.org/show_bug.cgi?id=1055
https://bugzilla.tianocore.org/show_bug.cgi?id=1056
https://bugzilla.tianocore.org/show_bug.cgi?id=1017
https://bugzilla.tianocore.org/show_bug.cgi?id=1035
https://bugzilla.tianocore.org/show_bug.cgi?id=1033
https://bugzilla.tianocore.org/show_bug.cgi?id=1012
https://bugzilla.tianocore.org/show_bug.cgi?id=1011
https://bugzilla.tianocore.org/show_bug.cgi?id=1062
v2:
1. Correct copyright year.
2. Fix alignment issue in AcpiPlatformDxe.inf.
3. Add DevicePathLib which is removed before in I2cHostDxe.inf.
4. Update NvmExpressPei.inf, NvmExpressPei.h, IScsiDxe.inf,
IScsiDxe.inf, IScsiDxe.h, DxeMain.inf, DxeMain.h, PiSmmCore.inf
and PiSmmCore.h for https://bugzilla.tianocore.org/show_bug.cgi?id=1062.
v3:
1. Add https://bugzilla.tianocore.org/show_bug.cgi?id=1062 to the
link list.
2. Remove DevicePathLib from I2cHostDxe.inf.
3. Update NvmExpressPei.inf, NvmExpressPei.h, UfsPciHcDxe.inf,
UfsPciHcDxe.h, I2cHostDxe.inf, AtaBusDxe.inf, IScsiDxe.inf,
IScsiDxe.h, DxeMain.inf, DxeMain.h, PiSmmCore.inf and PiSmmCore.h
for https://bugzilla.tianocore.org/show_bug.cgi?id=1062.
(Forget to add UfsPciHcDxe.inf, UfsPciHcDxe.h, AtaBusDxe.inf,
and I2cHostDxe.inf previously.)
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
32 files changed:
#include <Library/PrintLib.h>\r
#include <Library/BmpSupportLib.h>\r
#include <Protocol/GraphicsOutput.h>\r
#include <Library/PrintLib.h>\r
#include <Library/BmpSupportLib.h>\r
#include <Protocol/GraphicsOutput.h>\r
-#include <Guid/GlobalVariable.h>\r
#include <Guid/CapsuleReport.h>\r
#include <Guid/SystemResourceTable.h>\r
#include <Guid/FmpCapsule.h>\r
#include <Guid/CapsuleReport.h>\r
#include <Guid/SystemResourceTable.h>\r
#include <Guid/FmpCapsule.h>\r
MdeModulePkg/MdeModulePkg.dec\r
\r
[Guids]\r
MdeModulePkg/MdeModulePkg.dec\r
\r
[Guids]\r
- gEfiGlobalVariableGuid ## CONSUMES ## GUID\r
gEfiCapsuleReportGuid ## CONSUMES ## GUID\r
gEfiFmpCapsuleGuid ## CONSUMES ## GUID\r
gWindowsUxCapsuleGuid ## CONSUMES ## GUID\r
gEfiCapsuleReportGuid ## CONSUMES ## GUID\r
gEfiFmpCapsuleGuid ## CONSUMES ## GUID\r
gWindowsUxCapsuleGuid ## CONSUMES ## GUID\r
#include <Library/PrintLib.h>\r
#include <Library/UefiLib.h>\r
#include <Library/DevicePathLib.h>\r
#include <Library/PrintLib.h>\r
#include <Library/UefiLib.h>\r
#include <Library/DevicePathLib.h>\r
-#include <Library/PeCoffGetEntryPointLib.h>\r
#include <Library/DxeServicesLib.h>\r
#include <Protocol/SmmCommunication.h>\r
#include <Guid/PiSmmCommunicationRegionTable.h>\r
#include <Library/DxeServicesLib.h>\r
#include <Protocol/SmmCommunication.h>\r
#include <Guid/PiSmmCommunicationRegionTable.h>\r
UefiLib\r
PrintLib\r
DevicePathLib\r
UefiLib\r
PrintLib\r
DevicePathLib\r
- PeCoffGetEntryPointLib\r
DxeServicesLib\r
\r
[Protocols]\r
DxeServicesLib\r
\r
[Protocols]\r
ReportStatusCodeLib\r
\r
[Guids]\r
ReportStatusCodeLib\r
\r
[Guids]\r
- gEfiDiskInfoIdeInterfaceGuid ## SOMETIMES_PRODUCES ## UNDEFINED\r
gEfiDiskInfoAhciInterfaceGuid ## SOMETIMES_PRODUCES ## UNDEFINED\r
\r
[Protocols]\r
gEfiDiskInfoAhciInterfaceGuid ## SOMETIMES_PRODUCES ## UNDEFINED\r
\r
[Protocols]\r
[LibraryClasses]\r
BaseMemoryLib\r
DebugLib\r
[LibraryClasses]\r
BaseMemoryLib\r
DebugLib\r
MemoryAllocationLib\r
UefiBootServicesTableLib\r
UefiDriverEntryPoint\r
MemoryAllocationLib\r
UefiBootServicesTableLib\r
UefiDriverEntryPoint\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/IoLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/IoLib.h>\r
-#include <Library/PciLib.h>\r
#include <Library/TimerLib.h>\r
\r
//\r
#include <Library/TimerLib.h>\r
\r
//\r
MemoryAllocationLib\r
BaseMemoryLib\r
IoLib\r
MemoryAllocationLib\r
BaseMemoryLib\r
IoLib\r
TimerLib\r
PeimEntryPoint\r
\r
TimerLib\r
PeimEntryPoint\r
\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/DevicePathLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/DevicePathLib.h>\r
#include <Library/PcdLib.h>\r
-#include <Library/PeCoffLib.h>\r
\r
#include <IndustryStandard/Pci.h>\r
#include <IndustryStandard/PeImage.h>\r
\r
#include <IndustryStandard/Pci.h>\r
#include <IndustryStandard/PeImage.h>\r
BaseLib\r
UefiDriverEntryPoint\r
DebugLib\r
BaseLib\r
UefiDriverEntryPoint\r
DebugLib\r
\r
[Protocols]\r
gEfiPciHotPlugRequestProtocolGuid ## SOMETIMES_PRODUCES\r
\r
[Protocols]\r
gEfiPciHotPlugRequestProtocolGuid ## SOMETIMES_PRODUCES\r
#include <Library/BaseLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiLib.h>\r
#include <Library/BaseLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiLib.h>\r
-#include <Library/DevicePathLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
[LibraryClasses]\r
BaseLib\r
DebugLib\r
[LibraryClasses]\r
BaseLib\r
DebugLib\r
UefiDriverEntryPoint\r
UefiBootServicesTableLib\r
UefiLib\r
UefiDriverEntryPoint\r
UefiBootServicesTableLib\r
UefiLib\r
#include <Library/DevicePathLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/ReportStatusCodeLib.h>\r
#include <Library/DevicePathLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/ReportStatusCodeLib.h>\r
-#include <Library/TimerLib.h>\r
#include <Library/DxeServicesLib.h>\r
#include <Library/DebugAgentLib.h>\r
#include <Library/CpuExceptionHandlerLib.h>\r
#include <Library/DxeServicesLib.h>\r
#include <Library/DebugAgentLib.h>\r
#include <Library/CpuExceptionHandlerLib.h>\r
UefiBootServicesTableLib\r
DevicePathLib\r
ReportStatusCodeLib\r
UefiBootServicesTableLib\r
DevicePathLib\r
ReportStatusCodeLib\r
DxeServicesLib\r
DebugAgentLib\r
CpuExceptionHandlerLib\r
DxeServicesLib\r
DebugAgentLib\r
CpuExceptionHandlerLib\r
gEfiHiiPackageListProtocolGuid ## SOMETIMES_PRODUCES\r
gEfiEbcProtocolGuid ## SOMETIMES_CONSUMES\r
gEfiSmmBase2ProtocolGuid ## SOMETIMES_CONSUMES\r
gEfiHiiPackageListProtocolGuid ## SOMETIMES_PRODUCES\r
gEfiEbcProtocolGuid ## SOMETIMES_CONSUMES\r
gEfiSmmBase2ProtocolGuid ## SOMETIMES_CONSUMES\r
- gEfiBlockIoProtocolGuid ## SOMETIMES_CONSUMES\r
\r
# Arch Protocols\r
gEfiBdsArchProtocolGuid ## CONSUMES\r
\r
# Arch Protocols\r
gEfiBdsArchProtocolGuid ## CONSUMES\r
#include <Guid/PropertiesTable.h>\r
\r
#include <Protocol/FirmwareVolume2.h>\r
#include <Guid/PropertiesTable.h>\r
\r
#include <Protocol/FirmwareVolume2.h>\r
-#include <Protocol/BlockIo.h>\r
#include <Protocol/SimpleFileSystem.h>\r
\r
#include "DxeMain.h"\r
#include <Protocol/SimpleFileSystem.h>\r
\r
#include "DxeMain.h"\r
#include <Library/PcdLib.h>\r
#include <Library/SmmCorePlatformHookLib.h>\r
#include <Library/PerformanceLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/SmmCorePlatformHookLib.h>\r
#include <Library/PerformanceLib.h>\r
-#include <Library/TimerLib.h>\r
#include <Library/HobLib.h>\r
#include <Library/SmmMemLib.h>\r
\r
#include <Library/HobLib.h>\r
#include <Library/SmmMemLib.h>\r
\r
PcdLib\r
SmmCorePlatformHookLib\r
PerformanceLib\r
PcdLib\r
SmmCorePlatformHookLib\r
PerformanceLib\r
\r
[Protocols]\r
gEfiDxeSmmReadyToLockProtocolGuid ## UNDEFINED # SmiHandlerRegister\r
\r
[Protocols]\r
gEfiDxeSmmReadyToLockProtocolGuid ## UNDEFINED # SmiHandlerRegister\r
gEfiSmmGpiDispatch2ProtocolGuid ## SOMETIMES_CONSUMES\r
gEfiSmmIoTrapDispatch2ProtocolGuid ## SOMETIMES_CONSUMES\r
gEfiSmmUsbDispatch2ProtocolGuid ## SOMETIMES_CONSUMES\r
gEfiSmmGpiDispatch2ProtocolGuid ## SOMETIMES_CONSUMES\r
gEfiSmmIoTrapDispatch2ProtocolGuid ## SOMETIMES_CONSUMES\r
gEfiSmmUsbDispatch2ProtocolGuid ## SOMETIMES_CONSUMES\r
- gEfiSmmCpuProtocolGuid ## SOMETIMES_CONSUMES\r
gEdkiiSmmMemoryAttributeProtocolGuid ## CONSUMES\r
gEfiSmmSxDispatch2ProtocolGuid ## SOMETIMES_CONSUMES\r
\r
gEdkiiSmmMemoryAttributeProtocolGuid ## CONSUMES\r
gEfiSmmSxDispatch2ProtocolGuid ## SOMETIMES_CONSUMES\r
\r
#include <Library/UefiLib.h>\r
#include <Library/DevicePathLib.h>\r
#include <Library/PeCoffGetEntryPointLib.h>\r
#include <Library/UefiLib.h>\r
#include <Library/DevicePathLib.h>\r
#include <Library/PeCoffGetEntryPointLib.h>\r
-#include <Library/DxeServicesLib.h>\r
#include <Protocol/LoadedImage.h>\r
#include <Protocol/SmmAccess2.h>\r
#include <Protocol/SmmReadyToLock.h>\r
#include <Protocol/LoadedImage.h>\r
#include <Protocol/SmmAccess2.h>\r
#include <Protocol/SmmReadyToLock.h>\r
\r
[LibraryClasses]\r
UefiLib\r
\r
[LibraryClasses]\r
UefiLib\r
DebugLib\r
UefiBootServicesTableLib\r
UefiDriverEntryPoint\r
\r
[Protocols]\r
gEfiAcpiTableProtocolGuid ## CONSUMES\r
DebugLib\r
UefiBootServicesTableLib\r
UefiDriverEntryPoint\r
\r
[Protocols]\r
gEfiAcpiTableProtocolGuid ## CONSUMES\r
+ gEfiFirmwareVolume2ProtocolGuid ## CONSUMES\r
\r
[Pcd]\r
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiTableStorageFile ## CONSUMES\r
\r
[Pcd]\r
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiTableStorageFile ## CONSUMES\r
\r
#include <Guid/Acpi.h>\r
#include <Guid/FirmwarePerformance.h>\r
\r
#include <Guid/Acpi.h>\r
#include <Guid/FirmwarePerformance.h>\r
-#include <Guid/EventGroup.h>\r
-#include <Guid/EventLegacyBios.h>\r
\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
\r
[Guids]\r
gEfiEventExitBootServicesGuid ## CONSUMES ## Event\r
\r
[Guids]\r
gEfiEventExitBootServicesGuid ## CONSUMES ## Event\r
- gEfiEventReadyToBootGuid ## CONSUMES ## Event\r
- gEfiEventLegacyBootGuid ## SOMETIMES_CONSUMES ## Event\r
## SOMETIMES_CONSUMES ## HOB\r
## SOMETIMES_CONSUMES ## Variable:L"FirmwarePerformance"\r
## PRODUCES ## Variable:L"FirmwarePerformance"\r
## SOMETIMES_CONSUMES ## HOB\r
## SOMETIMES_CONSUMES ## Variable:L"FirmwarePerformance"\r
## PRODUCES ## Variable:L"FirmwarePerformance"\r
\r
[LibraryClasses]\r
UefiBootServicesTableLib\r
\r
[LibraryClasses]\r
UefiBootServicesTableLib\r
UefiDriverEntryPoint\r
BaseMemoryLib\r
BaseLib\r
UefiDriverEntryPoint\r
BaseMemoryLib\r
BaseLib\r
\r
[Guids]\r
gEfiFileInfoGuid ## SOMETIMES_CONSUMES ## GUID\r
\r
[Guids]\r
gEfiFileInfoGuid ## SOMETIMES_CONSUMES ## GUID\r
- gEfiFileSystemInfoGuid ## SOMETIMES_CONSUMES ## GUID\r
- gEfiFileSystemVolumeLabelInfoIdGuid ## SOMETIMES_CONSUMES ## GUID\r
gEfiDebugImageInfoTableGuid ## SOMETIMES_CONSUMES ## GUID\r
\r
[Depex]\r
gEfiDebugImageInfoTableGuid ## SOMETIMES_CONSUMES ## GUID\r
\r
[Depex]\r
#include <Protocol/SimpleFileSystem.h>\r
#include <Protocol/DebuggerConfiguration.h>\r
#include <Guid/FileInfo.h>\r
#include <Protocol/SimpleFileSystem.h>\r
#include <Protocol/DebuggerConfiguration.h>\r
#include <Guid/FileInfo.h>\r
-#include <Guid/FileSystemInfo.h>\r
-#include <Guid/FileSystemVolumeLabelInfo.h>\r
#include <Guid/DebugImageInfoTable.h>\r
\r
typedef UINTN EFI_DEBUG_STATUS;\r
#include <Guid/DebugImageInfoTable.h>\r
\r
typedef UINTN EFI_DEBUG_STATUS;\r
DxeServicesTableLib\r
UefiBootServicesTableLib\r
UefiRuntimeServicesTableLib\r
DxeServicesTableLib\r
UefiBootServicesTableLib\r
UefiRuntimeServicesTableLib\r
\r
[Guids]\r
gEfiSystemResourceTableGuid ## PRODUCES ## SystemTable\r
\r
[Guids]\r
gEfiSystemResourceTableGuid ## PRODUCES ## SystemTable\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/CapsuleLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/CapsuleLib.h>\r
-#include <Library/PrintLib.h>\r
\r
#include <Protocol/FirmwareManagement.h>\r
#include <Protocol/EsrtManagement.h>\r
\r
#include <Protocol/FirmwareManagement.h>\r
#include <Protocol/EsrtManagement.h>\r
gEfiIfrTianoGuid ## SOMETIMES_PRODUCES ## UNDEFINED\r
gEfiAcpiTableGuid ## SOMETIMES_CONSUMES ## SystemTable\r
gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## SystemTable\r
gEfiIfrTianoGuid ## SOMETIMES_PRODUCES ## UNDEFINED\r
gEfiAcpiTableGuid ## SOMETIMES_CONSUMES ## SystemTable\r
gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## SystemTable\r
- gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable\r
## SOMETIMES_PRODUCES ## Variable:L"iSCSIDeviceList"\r
## SOMETIMES_CONSUMES ## Variable:L"iSCSIDeviceList"\r
## SOMETIMES_CONSUMES ## UNDEFINED # HiiIsConfigHdrMatch mVendorStorageName\r
## SOMETIMES_PRODUCES ## Variable:L"iSCSIDeviceList"\r
## SOMETIMES_CONSUMES ## Variable:L"iSCSIDeviceList"\r
## SOMETIMES_CONSUMES ## UNDEFINED # HiiIsConfigHdrMatch mVendorStorageName\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
\r
#include <Guid/EventGroup.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
\r
#include <Guid/EventGroup.h>\r
-#include <Guid/Acpi.h>\r
\r
#include "IScsiCommon.h"\r
#include "IScsiDriver.h"\r
\r
#include "IScsiCommon.h"\r
#include "IScsiDriver.h"\r
#include <Library/BaseLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiLib.h>\r
#include <Library/BaseLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiLib.h>\r
-#include <Library/IoLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/UefiRuntimeLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/UefiRuntimeLib.h>\r
UefiRuntimeLib\r
UefiBootServicesTableLib\r
UefiDriverEntryPoint\r
UefiRuntimeLib\r
UefiBootServicesTableLib\r
UefiDriverEntryPoint\r
UefiLib\r
DebugLib\r
BaseLib\r
UefiLib\r
DebugLib\r
BaseLib\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiLib.h>\r
-#include <Library/PcdLib.h>\r
#include <Guid/PiSmmCommunicationRegionTable.h>\r
\r
#define DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES 4\r
#include <Guid/PiSmmCommunicationRegionTable.h>\r
\r
#define DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES 4\r
MemoryAllocationLib\r
HobLib\r
DebugLib\r
MemoryAllocationLib\r
HobLib\r
DebugLib\r
\r
[Guids]\r
gEdkiiPiSmmCommunicationRegionTableGuid ## PRODUCES ## SystemTable\r
\r
[Guids]\r
gEdkiiPiSmmCommunicationRegionTableGuid ## PRODUCES ## SystemTable\r