| OLD | NEW |
| 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 * Some TPM constants and type definitions for standalone compilation for use in | 5 * Some TPM constants and type definitions for standalone compilation for use in |
| 6 * the firmware | 6 * the firmware |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /* FIXME(gauravsh): | 9 /* FIXME(gauravsh): |
| 10 * NOTE: This file is copied over from | 10 * NOTE: This file is copied over from |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include <stdint.h> | 21 #include <stdint.h> |
| 22 | 22 |
| 23 #define TPM_MAX_COMMAND_SIZE 4096 | 23 #define TPM_MAX_COMMAND_SIZE 4096 |
| 24 #define TPM_LARGE_ENOUGH_COMMAND_SIZE 256 /* saves space in the firmware */ | 24 #define TPM_LARGE_ENOUGH_COMMAND_SIZE 256 /* saves space in the firmware */ |
| 25 | 25 |
| 26 #define TPM_SUCCESS ((uint32_t)0x00000000) | 26 #define TPM_SUCCESS ((uint32_t)0x00000000) |
| 27 #define TPM_NV_INDEX0 ((uint32_t)0x00000000) | 27 #define TPM_NV_INDEX0 ((uint32_t)0x00000000) |
| 28 #define TPM_NV_INDEX_LOCK ((uint32_t)0xffffffff) | 28 #define TPM_NV_INDEX_LOCK ((uint32_t)0xffffffff) |
| 29 #define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14) | 29 #define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14) |
| 30 #define TPM_NV_PER_PPWRITE (((uint32_t)1)<<0) | 30 #define TPM_NV_PER_PPWRITE (((uint32_t)1)<<0) |
| 31 #define TPM_NV_PER_GLOBALLOCK (((uint32_t)1)<<15) |
| 31 | 32 |
| 32 typedef uint8_t TSS_BOOL; | 33 typedef uint8_t TSS_BOOL; |
| 33 typedef uint16_t TPM_STRUCTURE_TAG; | 34 typedef uint16_t TPM_STRUCTURE_TAG; |
| 34 | 35 |
| 35 typedef struct tdTPM_WRITE_INFO { | 36 typedef struct tdTPM_WRITE_INFO { |
| 36 uint32_t nvIndex; | 37 uint32_t nvIndex; |
| 37 uint32_t offset; | 38 uint32_t offset; |
| 38 uint32_t dataSize; | 39 uint32_t dataSize; |
| 39 } TPM_WRITE_INFO; | 40 } TPM_WRITE_INFO; |
| 40 | 41 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 63 TSS_BOOL disableFullDALogicInfo; | 64 TSS_BOOL disableFullDALogicInfo; |
| 64 } TPM_PERMANENT_FLAGS; | 65 } TPM_PERMANENT_FLAGS; |
| 65 | 66 |
| 66 #define TPM_ALL_LOCALITIES (TPM_LOC_ZERO | TPM_LOC_ONE | TPM_LOC_TWO \ | 67 #define TPM_ALL_LOCALITIES (TPM_LOC_ZERO | TPM_LOC_ONE | TPM_LOC_TWO \ |
| 67 | TPM_LOC_THREE | TPM_LOC_FOUR) /* 0x1f */ | 68 | TPM_LOC_THREE | TPM_LOC_FOUR) /* 0x1f */ |
| 68 | 69 |
| 69 #define TPM_ENCAUTH_SIZE 20 | 70 #define TPM_ENCAUTH_SIZE 20 |
| 70 #define TPM_PUBEK_SIZE 256 | 71 #define TPM_PUBEK_SIZE 256 |
| 71 | 72 |
| 72 #endif /* TPM_LITE_TSS_CONSTANTS_H_ */ | 73 #endif /* TPM_LITE_TSS_CONSTANTS_H_ */ |
| OLD | NEW |