Vadim Bendebury | b86371b | 2015-05-27 18:16:19 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 10 | void TimeFillInfo(TPMS_CLOCK_INFO *clockInfo); |
| 11 | TPM_RC TimeGetRange(UINT16 offset, // IN: offset in TPMS_TIME_INFO |
| 12 | UINT16 size, // IN: size of data |
| 13 | TIME_INFO *dataBuffer // OUT: result buffer |
| 14 | ); |
| 15 | void TimePowerOn(void); |
| 16 | void TimeSetAdjustRate(TPM_CLOCK_ADJUST adjust // IN: adjust constant |
| 17 | ); |
| 18 | void TimeStartup(STARTUP_TYPE type // IN: start up type |
| 19 | ); |
| 20 | void TimeUpdateToCurrent(void); |
Vadim Bendebury | da72506 | 2015-05-31 14:41:18 -0700 | [diff] [blame] | 21 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 22 | #endif // __TPM2_TIME_FP_H |