blob: d441babddb77cf3b598a110a8c550da09fc9afcc [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#include "Implementation.h"
9#include "Platform.h"
10#include "PlatformData.h"
11//
12// From Cancel.c
13//
14BOOL s_isCanceled;
15//
16// From Clock.c
17//
18unsigned long long s_initClock;
19unsigned int s_adjustRate;
20//
21// From LocalityPlat.c
22//
23unsigned char s_locality;
24//
25// From Power.c
26//
27BOOL s_powerLost;
28//
29// From Entropy.c
30//
31uint32_t lastEntropy;
32int firstValue;
33//
34// From NVMem.c
35//
36#ifdef VTPM
37# undef FILE_BACKED_NV
38#endif
39#ifdef FILE_BACKED_NV
40FILE *s_NVFile = NULL;
41#endif
42unsigned char s_NV[NV_MEMORY_SIZE];
43BOOL s_NvIsAvailable;
44BOOL s_NV_unrecoverable;
45BOOL s_NV_recoverable;
46//
47// From PPPlat.c
48//
49BOOL s_physicalPresence;