Line | Count | Source |
1 | | // This file was extracted from the TCG Published |
2 | | // Trusted Platform Module Library |
3 | | // Part 3: Commands |
4 | | // Family "2.0" |
5 | | // Level 00 Revision 01.16 |
6 | | // October 30, 2014 |
7 | | |
8 | | #include "InternalRoutines.h" |
9 | | LIB_EXPORT void |
10 | | _TPM_Init( |
11 | | void |
12 | | ) |
13 | 231 | { |
14 | | // Clear the failure mode flags |
15 | 231 | g_inFailureMode = FALSE; |
16 | 231 | g_forceFailureMode = FALSE; |
17 | 231 | g_nvStatePreserved = FALSE; |
18 | | |
19 | | // Initialize the NvEnvironment. |
20 | 231 | g_nvOk = NvPowerOn(); |
21 | | |
22 | | // Initialize crypto engine |
23 | 231 | CryptInitUnits(); |
24 | | |
25 | | // Start clock |
26 | 231 | TimePowerOn(); |
27 | | |
28 | | // Set initialization state |
29 | 231 | TPMInit(); |
30 | | |
31 | | // Initialize object table |
32 | 231 | ObjectStartup(); |
33 | | |
34 | | // Set g_DRTMHandle as unassigned |
35 | 231 | g_DRTMHandle = TPM_RH_UNASSIGNED; |
36 | | |
37 | | // No H-CRTM, yet. |
38 | 231 | g_DrtmPreStartup = FALSE; |
39 | | |
40 | 231 | return; |
41 | 231 | } |