OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 * | 4 * |
5 * Functions for querying, manipulating and locking rollback indices | 5 * Functions for querying, manipulating and locking rollback indices |
6 * stored in the TPM NVRAM. | 6 * stored in the TPM NVRAM. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef VBOOT_REFERENCE_ROLLBACK_INDEX_H_ | 9 #ifndef VBOOT_REFERENCE_ROLLBACK_INDEX_H_ |
10 #define VBOOT_REFERENCE_ROLLBACK_INDEX_H_ | 10 #define VBOOT_REFERENCE_ROLLBACK_INDEX_H_ |
11 | 11 |
12 #include "sysincludes.h" | 12 #include "sysincludes.h" |
| 13 #include "tss_constants.h" |
13 | 14 |
14 /* Rollback version types. */ | 15 /* Rollback version types. */ |
15 #define FIRMWARE_VERSIONS 0 | 16 #define FIRMWARE_VERSIONS 0 |
16 #define KERNEL_VERSIONS 1 | 17 #define KERNEL_VERSIONS 1 |
17 | 18 |
18 /* Initialization mode */ | 19 /* Initialization mode */ |
19 #define RO_RECOVERY_MODE 0 | 20 #define RO_RECOVERY_MODE 0 |
20 #define RO_NORMAL_MODE 1 | 21 #define RO_NORMAL_MODE 1 |
21 #define RW_NORMAL_MODE 2 | 22 #define RW_NORMAL_MODE 2 |
22 | 23 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 /* The following functions are here for testing only. */ | 99 /* The following functions are here for testing only. */ |
99 | 100 |
100 /* Store 1 in *|initialized| if the TPM NVRAM spaces have been initialized, 0 | 101 /* Store 1 in *|initialized| if the TPM NVRAM spaces have been initialized, 0 |
101 * otherwise. Return TPM errors. */ | 102 * otherwise. Return TPM errors. */ |
102 uint32_t GetSpacesInitialized(int* initialized); | 103 uint32_t GetSpacesInitialized(int* initialized); |
103 | 104 |
104 /* Issue a TPM_Clear and reenable/reactivate the TPM. */ | 105 /* Issue a TPM_Clear and reenable/reactivate the TPM. */ |
105 uint32_t TPMClearAndReenable(void); | 106 uint32_t TPMClearAndReenable(void); |
106 | 107 |
107 #endif /* VBOOT_REFERENCE_ROLLBACK_INDEX_H_ */ | 108 #endif /* VBOOT_REFERENCE_ROLLBACK_INDEX_H_ */ |
OLD | NEW |