1 // 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 //
16 extern 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 //
21 extern unsigned long long          s_initClock;
22 extern unsigned int                s_adjustRate;
23 //
24 //     From LocalityPlat.c Locality of current command
25 //
26 extern unsigned char s_locality;
27 //
28 //     From PPPlat.c Physical presence. It is initialized to FALSE
29 //
30 extern BOOL         s_physicalPresence;
31 //
32 //     From Power
33 //
34 extern BOOL             s_powerLost;
35 //
36 //     From Entropy.c
37 //
38 extern uint32_t        lastEntropy;
39 extern int             firstValue;
40 #endif // _PLATFORM_DATA_H_
41