aboutsummaryrefslogtreecommitdiff
path: root/PlatformData.h
blob: a59aac0b1f646263166630e440c5b6da412c3a1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// This file was extracted from the TCG Published
// Trusted Platform Module Library
// Part 4: Supporting Routines
// Family "2.0"
// Level 00 Revision 01.16
// October 30, 2014

#ifndef _PLATFORM_DATA_H_
#define _PLATFORM_DATA_H_
#include    "TpmBuildSwitches.h"
#include    "Implementation.h"
#include    "bool.h"
//
//     From Cancel.c Cancel flag. It is initialized as FALSE, which indicate the command is not being canceled
//
extern BOOL         s_isCanceled;
//
//     From Clock.c This variable records the time when _plat__ClockReset() is called. This mechanism allow
//     us to subtract the time when TPM is power off from the total time reported by clock() function
//
extern unsigned long long          s_initClock;
extern unsigned int                s_adjustRate;
//
//     From LocalityPlat.c Locality of current command
//
extern unsigned char s_locality;
//
//     From PPPlat.c Physical presence. It is initialized to FALSE
//
extern BOOL         s_physicalPresence;
//
//     From Power
//
extern BOOL             s_powerLost;
//
//     From Entropy.c
//
extern uint32_t        lastEntropy;
extern int             firstValue;
#endif // _PLATFORM_DATA_H_