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

Side by Side Diff: firmware/lib/mocked_rollback_index.c

Issue 6883040: Add option to use mocked TPM driver (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Code review Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 /* Copyright (c) 2010-2011 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 *
5 * Functions for querying, manipulating and locking rollback indices
6 * stored in the TPM NVRAM.
7 */
8
9 #include "rollback_index.h"
10
11 #include "tss_constants.h"
12
13
14 uint32_t TPMClearAndReenable(void) {
15 return TPM_SUCCESS;
16 }
17
18
19 uint32_t SetupTPM(int recovery_mode, int developer_mode,
20 RollbackSpaceFirmware* rsf) {
21 return TPM_SUCCESS;
22 }
23
24
25 uint32_t RollbackS3Resume(void) {
26 return TPM_SUCCESS;
27 }
28
29
30 uint32_t RollbackFirmwareSetup(int developer_mode, uint32_t* version) {
31 *version = 0;
32 return TPM_SUCCESS;
33 }
34
35
36 uint32_t RollbackFirmwareRead(uint32_t* version) {
37 *version = 0;
38 return TPM_SUCCESS;
39 }
40
41
42 uint32_t RollbackFirmwareWrite(uint32_t version) {
43 return TPM_SUCCESS;
44 }
45
46
47 uint32_t RollbackFirmwareLock(void) {
48 return TPM_SUCCESS;
49 }
50
51
52 uint32_t RollbackKernelRecovery(int developer_mode) {
53 return TPM_SUCCESS;
54 }
55
56
57 uint32_t RollbackKernelRead(uint32_t* version) {
58 *version = 0;
59 return TPM_SUCCESS;
60 }
61
62
63 uint32_t RollbackKernelWrite(uint32_t version) {
64 return TPM_SUCCESS;
65 }
66
67
68 uint32_t RollbackKernelLock(void) {
69 return TPM_SUCCESS;
70 }
OLDNEW
« Makefile ('K') | « firmware/Makefile ('k') | firmware/lib/mocked_tpm_bootmode.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698