• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
8 #ifndef         _VENDOR_STRING_H
9 #define         _VENDOR_STRING_H
10 //
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.
15 //
16 #define        MANUFACTURER       "CROS"
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. \
22 Please modify VendorString.h to provide a specific \
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 //
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.
49 //
50 #define     FIRMWARE_V1               (0)
51 //
52 //     the optional less significant 32-bits of a vendor-specific value
53 //     indicating the version of the firmware.
54 //
55 #define     FIRMWARE_V2               (1)
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
65