blob: 42866d7ad7f9177e9f3d49fd30f29b089b5088e6 [file] [log] [blame]
Vadim Bendeburyb86371b2015-05-27 18:16:19 -07001/*
2 * Copyright 2015 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef __TPM2_TIME_FP_H
8#define __TPM2_TIME_FP_H
9
10void TimeFillInfo(
11 TPMS_CLOCK_INFO *clockInfo
12);
Vadim Bendeburyaeff48d2015-06-01 14:17:50 -070013TPM_RC TimeGetRange(
14 UINT16 offset, // IN: offset in TPMS_TIME_INFO
15 UINT16 size, // IN: size of data
16 TIME_INFO *dataBuffer // OUT: result buffer
17 );
Vadim Bendeburyff6d8432015-06-01 19:18:37 -070018void TimePowerOn(
19 void
20 );
Vadim Bendebury6fc1e9f2015-05-28 16:05:45 -070021void TimeSetAdjustRate(
22 TPM_CLOCK_ADJUST adjust // IN: adjust constant
23);
Vadim Bendebury523b0eb2015-06-01 18:53:59 -070024void TimeStartup(
25 STARTUP_TYPE type // IN: start up type
26 );
Vadim Bendeburyda725062015-05-31 14:41:18 -070027void TimeUpdateToCurrent(
28 void
29 );
30
Vadim Bendeburyb86371b2015-05-27 18:16:19 -070031#endif // __TPM2_TIME_FP_H