mocked_rollback_index.c revision 71b126ba46c3b2fda3007dc0dd24a9f74adab604
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 14uint32_t SetVirtualDevMode(int val) { 15 return TPM_SUCCESS; 16} 17 18 19uint32_t TPMClearAndReenable(void) { 20 return TPM_SUCCESS; 21} 22 23 24uint32_t SetupTPM(int recovery_mode, int developer_mode, 25 int disable_dev_request, RollbackSpaceFirmware* rsf) { 26 return TPM_SUCCESS; 27} 28 29 30uint32_t RollbackS3Resume(void) { 31 return TPM_SUCCESS; 32} 33 34 35uint32_t RollbackFirmwareSetup(int recovery_mode, int is_hw_dev, 36 int disable_dev_request, 37 int *is_virt_dev, uint32_t *version) { 38 *version = 0; 39 return TPM_SUCCESS; 40} 41 42 43uint32_t RollbackFirmwareWrite(uint32_t version) { 44 return TPM_SUCCESS; 45} 46 47 48uint32_t RollbackFirmwareLock(void) { 49 return TPM_SUCCESS; 50} 51 52 53uint32_t RollbackKernelRead(uint32_t* version) { 54 *version = 0; 55 return TPM_SUCCESS; 56} 57 58 59uint32_t RollbackKernelWrite(uint32_t version) { 60 return TPM_SUCCESS; 61} 62 63 64uint32_t RollbackKernelLock(void) { 65 return TPM_SUCCESS; 66} 67