blob: a4b0ceb0b89d833d747451d5ac5ca31f04bdcc11 [file] [log] [blame]
Randall Spangler29e88072012-06-19 10:03:53 -07001/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Che-Liang Chiou8511f782011-04-22 16:01:38 +08002 * 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
Bill Richardson0c3ba242013-03-29 11:09:30 -07009#include "sysincludes.h"
Bill Richardsonb64f0972014-05-28 15:49:23 -070010#include "utility.h"
Bill Richardson0c3ba242013-03-29 11:09:30 -070011
Che-Liang Chiou8511f782011-04-22 16:01:38 +080012#include "rollback_index.h"
13
14#include "tss_constants.h"
15
16
Randall Spanglerfb267152016-10-11 15:28:16 -070017uint32_t SetVirtualDevMode(int val)
18{
19 return TPM_SUCCESS;
Mike Frysinger71b126b2012-06-09 15:24:41 -040020}
21
Randall Spanglerfb267152016-10-11 15:28:16 -070022uint32_t TPMClearAndReenable(void)
23{
24 return TPM_SUCCESS;
Che-Liang Chiou8511f782011-04-22 16:01:38 +080025}
26
Randall Spanglerfb267152016-10-11 15:28:16 -070027uint32_t RollbackKernelRead(uint32_t *version)
28{
29 *version = 0;
30 return TPM_SUCCESS;
Che-Liang Chiou8511f782011-04-22 16:01:38 +080031}
32
Randall Spanglerfb267152016-10-11 15:28:16 -070033uint32_t RollbackKernelWrite(uint32_t version)
34{
35 return TPM_SUCCESS;
Che-Liang Chiou8511f782011-04-22 16:01:38 +080036}
37
Randall Spanglerfb267152016-10-11 15:28:16 -070038uint32_t RollbackKernelLock(int recovery_mode)
39{
40 return TPM_SUCCESS;
Che-Liang Chiou8511f782011-04-22 16:01:38 +080041}
Bill Richardsonb64f0972014-05-28 15:49:23 -070042
Randall Spangler53195652016-05-10 09:45:05 -070043uint32_t RollbackFwmpRead(struct RollbackSpaceFwmp *fwmp)
44{
Randall Spangler664096b2016-10-13 16:16:41 -070045 memset(fwmp, 0, sizeof(*fwmp));
Randall Spangler53195652016-05-10 09:45:05 -070046 return TPM_SUCCESS;
47}