mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
43 lines
953 B
C
Executable File
43 lines
953 B
C
Executable File
/** @file
|
|
Copyright (C) 2016, The HermitCrabs Lab. All rights reserved.
|
|
|
|
All rights reserved.
|
|
|
|
This program and the accompanying materials
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
**/
|
|
|
|
#ifndef OC_TIMER_LIB_H
|
|
#define OC_TIMER_LIB_H
|
|
|
|
#include <Library/TimerLib.h>
|
|
|
|
/**
|
|
Calculate the TSC frequency
|
|
|
|
@retval The calculated TSC frequency.
|
|
**/
|
|
UINT64
|
|
RecalculateTSC (
|
|
VOID
|
|
);
|
|
|
|
/**
|
|
Obtain ACPI PM timer address for this BSP.
|
|
|
|
@param[out] Type Address source type, optional.
|
|
|
|
@retval ACPI PM timer address or 0.
|
|
**/
|
|
UINTN
|
|
OcGetPmTimerAddr (
|
|
OUT CONST CHAR8 **Type OPTIONAL
|
|
);
|
|
|
|
#endif // OC_TIMER_LIB_H
|