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

Side by Side Diff: vboot_firmware/lib/rollback_index.c

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/lib/include/vboot_struct.h ('k') | vboot_firmware/lib/stateful_util.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 #include "rollback_index.h" 9 #include "rollback_index.h"
10 10
11 #include <stdint.h>
12
13 #include "utility.h"
14 #include "tlcl.h" 11 #include "tlcl.h"
15 #include "tss_constants.h" 12 #include "tss_constants.h"
13 #include "utility.h"
16 14
17 uint16_t g_firmware_key_version = 0; 15 uint16_t g_firmware_key_version = 0;
18 uint16_t g_firmware_version = 0; 16 uint16_t g_firmware_version = 0;
19 uint16_t g_kernel_key_version = 0; 17 uint16_t g_kernel_key_version = 0;
20 uint16_t g_kernel_version = 0; 18 uint16_t g_kernel_version = 0;
21 19
22 #define RETURN_ON_FAILURE(tpm_command) do { \ 20 #define RETURN_ON_FAILURE(tpm_command) do { \
23 uint32_t result; \ 21 uint32_t result; \
24 if ((result = (tpm_command)) != TPM_SUCCESS) { \ 22 if ((result = (tpm_command)) != TPM_SUCCESS) { \
25 return result; \ 23 return result; \
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 return TPM_SUCCESS; 353 return TPM_SUCCESS;
356 } 354 }
357 355
358 uint32_t LockFirmwareVersions() { 356 uint32_t LockFirmwareVersions() {
359 return TlclSetGlobalLock(); 357 return TlclSetGlobalLock();
360 } 358 }
361 359
362 uint32_t LockKernelVersionsByLockingPP() { 360 uint32_t LockKernelVersionsByLockingPP() {
363 return TlclLockPhysicalPresence(); 361 return TlclLockPhysicalPresence();
364 } 362 }
OLDNEW
« no previous file with comments | « vboot_firmware/lib/include/vboot_struct.h ('k') | vboot_firmware/lib/stateful_util.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698