blob: a59aac0b1f646263166630e440c5b6da412c3a1b [file] [log] [blame]
Vadim Bendebury56797522015-05-20 10:32:25 -07001// This file was extracted from the TCG Published
2// Trusted Platform Module Library
3// Part 4: Supporting Routines
4// Family "2.0"
5// Level 00 Revision 01.16
6// October 30, 2014
7
8#ifndef _PLATFORM_DATA_H_
9#define _PLATFORM_DATA_H_
10#include "TpmBuildSwitches.h"
11#include "Implementation.h"
12#include "bool.h"
13//
14// From Cancel.c Cancel flag. It is initialized as FALSE, which indicate the command is not being canceled
15//
16extern BOOL s_isCanceled;
17//
18// From Clock.c This variable records the time when _plat__ClockReset() is called. This mechanism allow
19// us to subtract the time when TPM is power off from the total time reported by clock() function
20//
21extern unsigned long long s_initClock;
22extern unsigned int s_adjustRate;
23//
24// From LocalityPlat.c Locality of current command
25//
26extern unsigned char s_locality;
27//
Vadim Bendebury56797522015-05-20 10:32:25 -070028// From PPPlat.c Physical presence. It is initialized to FALSE
29//
30extern BOOL s_physicalPresence;
31//
32// From Power
33//
34extern BOOL s_powerLost;
35//
36// From Entropy.c
37//
38extern uint32_t lastEntropy;
39extern int firstValue;
40#endif // _PLATFORM_DATA_H_