Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Side by Side Diff: vboot_firmware/include/rollback_index.h

Issue 2711006: Import recent tpm_lite changes that make all TPM commands return a status. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: cleanup from gauravsh's feedback Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « vboot_firmware/include/firmware_image_fw.h ('k') | vboot_firmware/include/tlcl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
(...skipping 10 matching lines...) Expand all
21 #define KERNEL_VERSIONS 1 21 #define KERNEL_VERSIONS 1
22 22
23 /* TPM NVRAM location indices. */ 23 /* TPM NVRAM location indices. */
24 #define FIRMWARE_VERSIONS_NV_INDEX 0x1001 24 #define FIRMWARE_VERSIONS_NV_INDEX 0x1001
25 #define KERNEL_VERSIONS_NV_INDEX 0x1002 25 #define KERNEL_VERSIONS_NV_INDEX 0x1002
26 #define TPM_IS_INITIALIZED_NV_INDEX 0x1003 26 #define TPM_IS_INITIALIZED_NV_INDEX 0x1003
27 #define KERNEL_VERSIONS_BACKUP_NV_INDEX 0x1004 27 #define KERNEL_VERSIONS_BACKUP_NV_INDEX 0x1004
28 #define KERNEL_BACKUP_IS_VALID_NV_INDEX 0x1005 28 #define KERNEL_BACKUP_IS_VALID_NV_INDEX 0x1005
29 29
30 /* All functions return 0 if successful, non-zero if error */ 30 /* All functions return 0 if successful, non-zero if error */
31 int SetupTPM(void); 31 uint32_t SetupTPM(void);
32 int GetStoredVersions(int type, uint16_t* key_version, uint16_t* version); 32 uint32_t GetStoredVersions(int type, uint16_t* key_version, uint16_t* version);
33 int WriteStoredVersions(int type, uint16_t key_version, uint16_t version); 33 uint32_t WriteStoredVersions(int type, uint16_t key_version, uint16_t version);
34 int LockFirmwareVersions(); 34 uint32_t LockFirmwareVersions(void);
35 int LockKernelVersionsByLockingPP(); 35 uint32_t LockKernelVersionsByLockingPP(void);
36 36
37 #endif /* VBOOT_REFERENCE_ROLLBACK_INDEX_H_ */ 37 #endif /* VBOOT_REFERENCE_ROLLBACK_INDEX_H_ */
OLDNEW
« no previous file with comments | « vboot_firmware/include/firmware_image_fw.h ('k') | vboot_firmware/include/tlcl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698