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 | 5 |
6 /* TPM Lightweight Command Library. | 6 /* TPM Lightweight Command Library. |
7 * | 7 * |
8 * A low-level library for interfacing to TPM hardware or an emulator. | 8 * A low-level library for interfacing to TPM hardware or an emulator. |
9 */ | 9 */ |
10 | 10 |
| 11 /* FIXME(gauravsh): |
| 12 * NOTE: This file is copied over from |
| 13 * src/platform/tpm_lite/src/tlcl/tlcl.h |
| 14 * Ideally, we want to directly include it without having two maintain |
| 15 * duplicate copies in sync. But in the current model, this is hard |
| 16 * to do without breaking standalone compilation. |
| 17 * Eventually tpm_lite should be moved into vboot_reference. |
| 18 */ |
| 19 |
11 #ifndef TPM_LITE_TLCL_H_ | 20 #ifndef TPM_LITE_TLCL_H_ |
12 #define TPM_LITE_TLCL_H_ | 21 #define TPM_LITE_TLCL_H_ |
13 | 22 |
14 #include <stdarg.h> | 23 #include <stdarg.h> |
15 #include <stdint.h> | 24 #include <stdint.h> |
16 #include <stdio.h> | 25 #include <stdio.h> |
17 #include <stdlib.h> | 26 #include <stdlib.h> |
18 | 27 |
19 /* Call this first. | 28 /* Call this first. |
20 */ | 29 */ |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 84 |
76 /* Issues a PhysicalSetDeactivated. Pass 0 to activate. Returns result code. | 85 /* Issues a PhysicalSetDeactivated. Pass 0 to activate. Returns result code. |
77 */ | 86 */ |
78 int TlclPhysicalSetDeactivated(uint8_t flag); | 87 int TlclPhysicalSetDeactivated(uint8_t flag); |
79 | 88 |
80 /* Gets some permanent flags of interest. (Add more here as needed.) | 89 /* Gets some permanent flags of interest. (Add more here as needed.) |
81 */ | 90 */ |
82 int TlclGetFlags(uint8_t* disable, uint8_t* deactivated); | 91 int TlclGetFlags(uint8_t* disable, uint8_t* deactivated); |
83 | 92 |
84 #endif /* TPM_LITE_TLCL_H_ */ | 93 #endif /* TPM_LITE_TLCL_H_ */ |
OLD | NEW |