]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PerformancePkg/Library/TscTimerLib/BaseTscTimerLib.inf
Add BaseTscTimerLib, and then merge the three TscTimerLib to one directory.
[mirror_edk2.git] / PerformancePkg / Library / TscTimerLib / BaseTscTimerLib.inf
diff --git a/PerformancePkg/Library/TscTimerLib/BaseTscTimerLib.inf b/PerformancePkg/Library/TscTimerLib/BaseTscTimerLib.inf
new file mode 100644 (file)
index 0000000..2c33b77
--- /dev/null
@@ -0,0 +1,54 @@
+## @file\r
+#  Base Timer Library which uses the Time Stamp Counter in the processor.\r
+#\r
+#  Note: There will be 1ms penalty to get TSC frequency every time\r
+#    by waiting for 3579 clocks of the ACPI timer, or 1ms.\r
+#\r
+#  A version of the Timer Library using the processor's TSC.\r
+#  The time stamp counter in newer processors may support an enhancement, referred to as invariant TSC.\r
+#  The invariant TSC runs at a constant rate in all ACPI P-, C-. and T-states.\r
+#  This is the architectural behavior moving forward.\r
+#  TSC reads are much more efficient and do not incur the overhead associated with a ring transition or\r
+#  access to a platform resource.\r
+#\r
+#  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\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
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = BaseTscTimerLib\r
+  FILE_GUID                      = D29338B9-50FE-4e4f-B7D4-A150A2C1F4FB\r
+  MODULE_TYPE                    = BASE\r
+  VERSION_STRING                 = 1.0\r
+  LIBRARY_CLASS                  = TimerLib\r
+\r
+\r
+#\r
+#  VALID_ARCHITECTURES           = IA32 X64\r
+#\r
+\r
+[Sources.common]\r
+  TscTimerLibShare.c\r
+  BaseTscTimerLib.c\r
+\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+  PerformancePkg/PerformancePkg.dec\r
+\r
+\r
+[LibraryClasses]\r
+  PcdLib\r
+  PciLib\r
+  IoLib\r
+  BaseLib\r
+\r
+[Pcd.common]\r
+  gPerformancePkgTokenSpaceGuid.PcdPerfPkgAcpiIoPortBaseAddress\r