blob: 0fe0982a892c55256f7093bf4001a60392b41d92 [file] [log] [blame]
Randall Spangler39f66112010-07-14 09:10:23 -07001/* 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
3 * found in the LICENSE file.
4 */
5
6/*
7 * TPM definitions not available in any TSS include file :-(
8 */
9
10#ifndef TPM_LITE_TPMEXTRAS_H_
11#define TPM_LITE_TPMEXTRAS_H_
12
Randall Spangler39f66112010-07-14 09:10:23 -070013#define TPM_MAX_COMMAND_SIZE 4096
14#define TPM_LARGE_ENOUGH_COMMAND_SIZE 256 /* saves space in the firmware */
Luigi Semenzato5896b962010-08-25 07:16:03 -070015#define TPM_ENCAUTH_SIZE 20
16#define TPM_PUBEK_SIZE 256
17
18#define TPM_ALL_LOCALITIES (TPM_LOC_ZERO | TPM_LOC_ONE | TPM_LOC_TWO \
19 | TPM_LOC_THREE | TPM_LOC_FOUR) /* 0x1f */
Randall Spangler39f66112010-07-14 09:10:23 -070020
21typedef struct tdTPM_WRITE_INFO {
22 uint32_t nvIndex;
23 uint32_t offset;
24 uint32_t dataSize;
25} TPM_WRITE_INFO;
26
Randall Spangler39f66112010-07-14 09:10:23 -070027#endif