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

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

Issue 2833012: Move all system includes in vboot_firmware to sysincludes.h (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Oops, forgot the new header 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/load_kernel_fw.h ('k') | vboot_firmware/include/sysincludes.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_
11 11
12 #include <stdint.h> 12 #include "sysincludes.h"
13 13
14 /* TODO: global variables won't work in the boot stub, since it runs
15 directly out of ROM. */
14 extern uint16_t g_firmware_key_version; 16 extern uint16_t g_firmware_key_version;
15 extern uint16_t g_firmware_version; 17 extern uint16_t g_firmware_version;
16 extern uint16_t g_kernel_key_version; 18 extern uint16_t g_kernel_key_version;
17 extern uint16_t g_kernel_version; 19 extern uint16_t g_kernel_version;
18 20
19 /* Rollback version types. */ 21 /* Rollback version types. */
20 #define FIRMWARE_VERSIONS 0 22 #define FIRMWARE_VERSIONS 0
21 #define KERNEL_VERSIONS 1 23 #define KERNEL_VERSIONS 1
22 24
23 /* Initialization mode */ 25 /* Initialization mode */
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 * returning. In all other cases, the caller is responsible for locking the 57 * returning. In all other cases, the caller is responsible for locking the
56 * firmware versions once it decides it doesn't need to update them. 58 * firmware versions once it decides it doesn't need to update them.
57 */ 59 */
58 uint32_t SetupTPM(int mode, int developer_flag); 60 uint32_t SetupTPM(int mode, int developer_flag);
59 uint32_t GetStoredVersions(int type, uint16_t* key_version, uint16_t* version); 61 uint32_t GetStoredVersions(int type, uint16_t* key_version, uint16_t* version);
60 uint32_t WriteStoredVersions(int type, uint16_t key_version, uint16_t version); 62 uint32_t WriteStoredVersions(int type, uint16_t key_version, uint16_t version);
61 uint32_t LockFirmwareVersions(void); 63 uint32_t LockFirmwareVersions(void);
62 uint32_t LockKernelVersionsByLockingPP(void); 64 uint32_t LockKernelVersionsByLockingPP(void);
63 65
64 #endif /* VBOOT_REFERENCE_ROLLBACK_INDEX_H_ */ 66 #endif /* VBOOT_REFERENCE_ROLLBACK_INDEX_H_ */
OLDNEW
« no previous file with comments | « vboot_firmware/include/load_kernel_fw.h ('k') | vboot_firmware/include/sysincludes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698