You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
328c862595
This patch added common API interface for GetTimeStampFrequency. Since all current IA platforms have standard way to get the TSC frequency, it is better to move it into common lib. Signed-off-by: Maurice Ma <maurice.ma@intel.com>
36 lines
454 B
C
36 lines
454 B
C
/** @file
|
|
|
|
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef __TIME_STAMP_LIB_H__
|
|
#define __TIME_STAMP_LIB_H__
|
|
|
|
/**
|
|
Read current timestamp.
|
|
|
|
@return 64 bit current timestampe value.
|
|
|
|
**/
|
|
UINT64
|
|
EFIAPI
|
|
ReadTimeStamp (
|
|
VOID
|
|
);
|
|
|
|
/**
|
|
Get timestamp frequency in KHZ.
|
|
|
|
@return Timestamp frequency in KHZ.
|
|
|
|
**/
|
|
UINT32
|
|
EFIAPI
|
|
GetTimeStampFrequency (
|
|
VOID
|
|
);
|
|
|
|
#endif
|