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

Side by Side Diff: firmware/lib/include/rollback_index.h

Issue 2844044: added reboot return codes to load kernel and firmware (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: After remerge 2 Created 10 years, 5 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 | « firmware/include/load_kernel_fw.h ('k') | firmware/lib/rollback_index.c » ('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_
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
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_ */
OLDNEW
« no previous file with comments | « firmware/include/load_kernel_fw.h ('k') | firmware/lib/rollback_index.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698