Files
OpenCellular/firmware/lib/mocked_rollback_index.c
Randall Spangler 2afa87360d vboot: Remove vboot1 init and select-firmware APIs
And nuke all the underlying code that is unused once those APIs are
gone.  These APIs are not used by any project in ToT, having been
superseded last year by the vboot2 APIs.

No functional changes to live code, just lots of deletes.

CQ-DEPEND=CL:347414

BUG=chromium:611535
BRANCH=none
TEST=make runtests; build samus

Change-Id: I05ac752d74d1343dd03600b1c5e6ed22822e2802
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/347257
2016-07-26 17:31:52 -07:00

43 lines
861 B
C

/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Functions for querying, manipulating and locking rollback indices
* stored in the TPM NVRAM.
*/
#include "sysincludes.h"
#include "utility.h"
#include "rollback_index.h"
#include "tss_constants.h"
uint32_t SetVirtualDevMode(int val) {
return TPM_SUCCESS;
}
uint32_t TPMClearAndReenable(void) {
return TPM_SUCCESS;
}
uint32_t RollbackKernelRead(uint32_t* version) {
*version = 0;
return TPM_SUCCESS;
}
uint32_t RollbackKernelWrite(uint32_t version) {
return TPM_SUCCESS;
}
uint32_t RollbackKernelLock(int recovery_mode) {
return TPM_SUCCESS;
}
uint32_t RollbackFwmpRead(struct RollbackSpaceFwmp *fwmp)
{
Memset(fwmp, 0, sizeof(*fwmp));
return TPM_SUCCESS;
}