]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf
Add a new Timer Library instance SecPeiDxeTimerLibUefiCpu into UefiCpuPkg. This libra...
[mirror_edk2.git] / UefiCpuPkg / Library / SecPeiDxeTimerLibUefiCpu / SecPeiDxeTimerLibUefiCpu.inf
diff --git a/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf b/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf
new file mode 100644 (file)
index 0000000..bf76f35
--- /dev/null
@@ -0,0 +1,63 @@
+## @file\r
+# Instance of Timer Library only using CPU resources.\r
+#\r
+# Timer Library that only uses CPU resources to provide calibrated delays\r
+#  on IA-32, x64, and IPF.\r
+# Note: 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
+# This library differs with the SecPeiDxeTimerLibCpu library in the MdePkg in\r
+# that it uses the local APIC library so that it supports x2APIC mode.\r
+#\r
+# Copyright (c) 2010, 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
+#  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
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = SecPeiDxeTimerLibUefiCpu\r
+  FILE_GUID                      = 4FFF2014-2086-4ee6-9B58-886D1967861C\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
+\r
+\r
+#\r
+#  VALID_ARCHITECTURES           = IA32 X64 IPF\r
+#\r
+\r
+[Sources.Ia32, Sources.X64]\r
+  X86TimerLib.c\r
+\r
+[Sources.IPF]\r
+  IpfTimerLib.c\r
+\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+  UefiCpuPkg/UefiCpuPkg.dec\r
+\r
+[LibraryClasses]\r
+  BaseLib\r
+\r
+[LibraryClasses.IA32, LibraryClasses.X64]\r
+  PcdLib\r
+  DebugLib\r
+  LocalApicLib\r
+\r
+[LibraryClasses.IPF]\r
+  PalLib\r
+\r
+\r
+[Pcd.IA32, Pcd.X64]\r
+  gEfiMdePkgTokenSpaceGuid.PcdFSBClock  ## CONSUMES\r
+\r