• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## @file
2#  Base ACPI Timer Library
3#
4#  Provides basic timer support using the ACPI timer hardware.  The performance
5#  counter features are provided by the processors time stamp counter.
6#
7#  Note: The implementation uses the lower 24-bits of the ACPI timer and
8#  is compatible with both 24-bit and 32-bit ACPI timers.
9#
10#  Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR>
11#  This program and the accompanying materials
12#  are licensed and made available under the terms and conditions of the BSD License
13#  which accompanies this distribution.  The full text of the license may be found at
14#  http://opensource.org/licenses/bsd-license.php
15#
16#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
17#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18#
19##
20
21[Defines]
22  INF_VERSION                    = 0x00010005
23  BASE_NAME                      = BaseAcpiTimerLib
24  FILE_GUID                      = 564DE85F-049E-4481-BF7A-CA04D2788CF9
25  MODULE_TYPE                    = BASE
26  VERSION_STRING                 = 1.0
27  LIBRARY_CLASS                  = TimerLib|SEC PEI_CORE PEIM
28  CONSTRUCTOR                    = AcpiTimerLibConstructor
29  MODULE_UNI_FILE                = BaseAcpiTimerLib.uni
30
31[Sources]
32  AcpiTimerLib.c
33  BaseAcpiTimerLib.c
34
35[Packages]
36  MdePkg/MdePkg.dec
37  PcAtChipsetPkg/PcAtChipsetPkg.dec
38
39[LibraryClasses]
40  BaseLib
41  PcdLib
42  PciLib
43  IoLib
44  DebugLib
45
46[Pcd]
47  gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiIoPciBusNumber             ## CONSUMES
48  gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiIoPciDeviceNumber          ## CONSUMES
49  gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiIoPciFunctionNumber        ## CONSUMES
50  gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiIoPciEnableRegisterOffset  ## CONSUMES
51  gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiIoBarEnableMask            ## CONSUMES
52  gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiIoPciBarRegisterOffset     ## CONSUMES
53  gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiIoPortBaseAddress          ## CONSUMES
54  gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiPm1TmrOffset               ## CONSUMES
55  gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiIoPortBaseAddressMask      ## CONSUMES