Vadim Bendebury | 5679752 | 2015-05-20 10:32:25 -0700 | [diff] [blame] | 1 | // This file was extracted from the TCG Published |
| 2 | // Trusted Platform Module Library |
| 3 | // Part 4: Supporting Routines |
| 4 | // Family "2.0" |
| 5 | // Level 00 Revision 01.16 |
| 6 | // October 30, 2014 |
| 7 | |
Vadim Bendebury | f5cc58b | 2015-05-31 14:09:19 -0700 | [diff] [blame] | 8 | #ifndef _VENDOR_STRING_H |
| 9 | #define _VENDOR_STRING_H |
| 10 | // |
Vadim Bendebury | 5a945de | 2015-10-30 10:45:00 -0700 | [diff] [blame] | 11 | // Define up to 4-byte values for MANUFACTURER. This value defines the |
| 12 | // response for TPM_PT_MANUFACTURER in TPM2_GetCapability(). The |
| 13 | // definition should be replaced as appropriate when this code is used for |
| 14 | // actual implementations. |
Vadim Bendebury | f5cc58b | 2015-05-31 14:09:19 -0700 | [diff] [blame] | 15 | // |
Vadim Bendebury | 5a945de | 2015-10-30 10:45:00 -0700 | [diff] [blame] | 16 | #define MANUFACTURER "CROS" |
Vadim Bendebury | f5cc58b | 2015-05-31 14:09:19 -0700 | [diff] [blame] | 17 | // |
| 18 | // The following #if macro may be deleted after a proper MANUFACTURER is provided. |
| 19 | // |
| 20 | #ifndef MANUFACTURER |
| 21 | #error MANUFACTURER is not provided. \ |
Vadim Bendebury | 5a945de | 2015-10-30 10:45:00 -0700 | [diff] [blame] | 22 | Please modify VendorString.h to provide a specific \ |
Vadim Bendebury | f5cc58b | 2015-05-31 14:09:19 -0700 | [diff] [blame] | 23 | manufacturer name. |
| 24 | #endif |
| 25 | // |
| 26 | // Define up to 4, 4-byte values. The values must each be 4 bytes long and the last value used may contain |
| 27 | // trailing zeros. These values define the response for TPM_PT_VENDOR_STRING_(1-4) in |
| 28 | // TPM2_GetCapability(). The following line should be un-commented and a vendor specific string should |
| 29 | // be provided here. The vendor strings 2-4 may also be defined as appropriately. |
| 30 | // |
| 31 | #define VENDOR_STRING_1 "xCG " |
| 32 | #define VENDOR_STRING_2 "fTPM" |
| 33 | // #define VENDOR_STRING_3 |
| 34 | // #define VENDOR_STRING_4 |
| 35 | // |
| 36 | // The following #if macro may be deleted after a proper VENDOR_STRING_1 is provided. |
| 37 | // |
| 38 | #ifndef VENDOR_STRING_1 |
| 39 | #error VENDOR_STRING_1 is not provided. \ |
| 40 | Please modify include\VendorString.h to provide a vednor specific \ |
| 41 | string. |
| 42 | // |
| 43 | #endif |
| 44 | // |
Vadim Bendebury | 5a945de | 2015-10-30 10:45:00 -0700 | [diff] [blame] | 45 | // the more significant 32-bits of a vendor-specific value indicating the |
| 46 | // version of the firmware. Some instrumentation could be added to replace |
| 47 | // the following definition(s) with some release tag, SHA1, build date, |
| 48 | // etc. |
Vadim Bendebury | f5cc58b | 2015-05-31 14:09:19 -0700 | [diff] [blame] | 49 | // |
Vadim Bendebury | 5a945de | 2015-10-30 10:45:00 -0700 | [diff] [blame] | 50 | #define FIRMWARE_V1 (0) |
Vadim Bendebury | f5cc58b | 2015-05-31 14:09:19 -0700 | [diff] [blame] | 51 | // |
Vadim Bendebury | 5a945de | 2015-10-30 10:45:00 -0700 | [diff] [blame] | 52 | // the optional less significant 32-bits of a vendor-specific value |
| 53 | // indicating the version of the firmware. |
Vadim Bendebury | f5cc58b | 2015-05-31 14:09:19 -0700 | [diff] [blame] | 54 | // |
Vadim Bendebury | 5a945de | 2015-10-30 10:45:00 -0700 | [diff] [blame] | 55 | #define FIRMWARE_V2 (1) |
Vadim Bendebury | f5cc58b | 2015-05-31 14:09:19 -0700 | [diff] [blame] | 56 | // |
| 57 | // The following #if macro may be deleted after a proper FIRMWARE_V1 is provided. |
| 58 | // |
| 59 | #ifndef FIRMWARE_V1 |
| 60 | #error FIRMWARE_V1 is not provided. \ |
| 61 | Please modify include\VendorString.h to provide a vendor specific firmware \ |
| 62 | version |
| 63 | #endif |
| 64 | #endif |