]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / SecPeiDxeTimerLibCpu / SecPeiDxeTimerLibCpu.inf
index f3d13bd088e52e0e472085a501b5a9872de4319c..0feb42f0b366b529d414ced52c5aa16a83dc20b8 100644 (file)
-#/** @file\r
-# Timer Library implementation for Boot Timer moudles that require timer services.\r
+## @file\r
+# Instance of Timer Library only using CPU resources.\r
 #\r
-# Timer Library that uses CPU resources to provide calibrated\r
-#  delays on IA-32 and x64, and uses ITC on IPF. Note: Because CpuLocalApci\r
-#  and ITC could be programmed by OS, it cannot be used by SMM drivers\r
-#  and runtime drivers, ACPI timer is recommended for SMM drivers and RUNTIME\r
-#  drivers.\r
-# Copyright (c) 2007 - 2007, Intel Corporation.\r
+# Timer Library that only uses CPU resources to provide calibrated delays\r
+#  on IA-32, x64, and IPF.\r
+# Note: A driver of type DXE_RUNTIME_DRIVER and DXE_SMM_DRIVER can use this TimerLib\r
+#  in their initialization without any issues. They only have to be careful in\r
+#  the implementation of runtime services and SMI handlers.\r
+#  Because CPU Local APIC and ITC could be programmed by OS, it cannot be\r
+#  used by SMM drivers and runtime drivers, ACPI timer is recommended for SMM\r
+#  drivers and runtime drivers.\r
 #\r
-#  All rights reserved. This program and the accompanying materials\r
+# Note that for IA-32 and x64, this library only supports xAPIC mode. If x2APIC\r
+# support is desired, the SecPeiDxeTimerLibUefiCpu library can be used.\r
+#\r
+# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
+#\r
+#  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
+#  http://opensource.org/licenses/bsd-license.php.\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 #\r
 #\r
-#**/\r
+##\r
 \r
-################################################################################\r
-#\r
-# Defines Section - statements that will be processed to create a Makefile.\r
-#\r
-################################################################################\r
 [Defines]\r
   INF_VERSION                    = 0x00010005\r
   BASE_NAME                      = SecPeiDxeTimerLibCpu\r
+  MODULE_UNI_FILE                = SecPeiDxeTimerLibCpu.uni\r
   FILE_GUID                      = b5a05743-9b71-489b-a0ed-a0eb3950d23b\r
   MODULE_TYPE                    = BASE\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = TimerLib|BASE DXE_CORE DXE_DRIVER DXE_SAL_DRIVER PEIM PEI_CORE SEC UEFI_APPLICATION UEFI_DRIVER \r
-  EDK_RELEASE_VERSION            = 0x00020000\r
-  EFI_SPECIFICATION_VERSION      = 0x00020000\r
+  LIBRARY_CLASS                  = TimerLib\r
 \r
 \r
-#\r
-# The following information is for reference only and not required by the build tools.\r
 #\r
 #  VALID_ARCHITECTURES           = IA32 X64 IPF\r
 #\r
 \r
-################################################################################\r
-#\r
-# Sources Section - list of files that are required for the build to succeed.\r
-#\r
-################################################################################\r
-\r
-[Sources.common]\r
-  CommonHeader.h\r
-\r
-[Sources.Ia32]\r
-  x86TimerLib.c\r
-\r
-[Sources.X64]\r
-  x86TimerLib.c\r
+[Sources.Ia32, Sources.X64]\r
+  X86TimerLib.c\r
 \r
 [Sources.IPF]\r
   IpfTimerLib.c\r
 \r
 \r
-################################################################################\r
-#\r
-# Includes Section - list of Include locations that are required for\r
-#                    this module.\r
-#\r
-################################################################################\r
-\r
-[Includes]\r
-  $(WORKSPACE)/MdePkg\Include/Library\r
-\r
-################################################################################\r
-#\r
-# Package Dependency Section - list of Package files that are required for\r
-#                              this module.\r
-#\r
-################################################################################\r
-\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
 \r
 \r
-################################################################################\r
-#\r
-# Library Class Section - list of Library Classes that are required for\r
-#                         this module.\r
-#\r
-################################################################################\r
-\r
 [LibraryClasses]\r
   BaseLib\r
 \r
-[LibraryClasses.IA32]\r
-  PcdLib\r
-  IoLib\r
-\r
-[LibraryClasses.X64]\r
+[LibraryClasses.IA32, LibraryClasses.X64]\r
   PcdLib\r
   IoLib\r
-\r
-[LibraryClasses.IPF]\r
   DebugLib\r
 \r
+[LibraryClasses.IPF]\r
+  PalLib\r
 \r
-################################################################################\r
-#\r
-# Pcd DYNAMIC - list of PCDs that this module is coded for.\r
-#\r
-################################################################################\r
-\r
-[PcdsDynamic.IA32]\r
-  PcdFSBClock|gEfiMdePkgTokenSpaceGuid\r
 \r
-[PcdsDynamic.X64]\r
-  PcdFSBClock|gEfiMdePkgTokenSpaceGuid\r
+[Pcd.IA32, Pcd.X64]\r
+  gEfiMdePkgTokenSpaceGuid.PcdFSBClock  ## CONSUMES\r
 \r