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

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

Issue 2861020: Refactor rollback interface for LoadKernel(), LoadFirmware(). (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: 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 | « firmware/include/rollback_index.h ('k') | firmware/lib/vboot_firmware.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
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 return TPM_SUCCESS; 361 return TPM_SUCCESS;
362 } 362 }
363 363
364 uint32_t LockFirmwareVersions() { 364 uint32_t LockFirmwareVersions() {
365 return TlclSetGlobalLock(); 365 return TlclSetGlobalLock();
366 } 366 }
367 367
368 uint32_t LockKernelVersionsByLockingPP() { 368 uint32_t LockKernelVersionsByLockingPP() {
369 return TlclLockPhysicalPresence(); 369 return TlclLockPhysicalPresence();
370 } 370 }
371
372
373
374 /* NEW APIS! HELP ME LUIGI, YOU'RE MY ONLY HOPE! */
375
376 uint32_t RollbackFirmwareSetup(int developer_mode,
377 uint16_t* key_version, uint16_t* version) {
378 return TPM_SUCCESS;
379 }
380
381 uint32_t RollbackFirmwareWrite(uint16_t key_version, uint16_t version) {
382 return TPM_SUCCESS;
383 }
384
385 uint32_t RollbackFirmwareLock(void) {
386 return TPM_SUCCESS;
387 }
388
389 uint32_t RollbackKernelRecovery(int developer_mode) {
390 return TPM_SUCCESS;
391 }
392
393 uint32_t RollbackKernelRead(uint16_t* key_version, uint16_t* version) {
394 return TPM_SUCCESS;
395 }
396
397 uint32_t RollbackKernelWrite(uint16_t key_version, uint16_t version) {
398 return TPM_SUCCESS;
399 }
400
401 uint32_t RollbackKernelLock(void) {
402 return TPM_SUCCESS;
403 }
OLDNEW
« no previous file with comments | « firmware/include/rollback_index.h ('k') | firmware/lib/vboot_firmware.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698