blob: 1c62ccc6c7ec9a6cca598a0f1d7ae04cffd87623 [file] [log] [blame]
Vadim Bendebury56797522015-05-20 10:32:25 -07001// 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 Bendeburyf5cc58b2015-05-31 14:09:19 -07008#ifndef _VENDOR_STRING_H
9#define _VENDOR_STRING_H
10//
Vadim Bendebury5a945de2015-10-30 10:45:00 -070011// 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 Bendeburyf5cc58b2015-05-31 14:09:19 -070015//
Alberto Herrera02173662020-09-07 09:10:31 +000016#ifdef TPM2_SIMULATOR_MANUFACTURER
17#define MANUFACTURER "SIMU"
18#else
19// Some CR50-specific functions expect this manufacturer.
Vadim Bendebury5a945de2015-10-30 10:45:00 -070020#define MANUFACTURER "CROS"
Alberto Herrera02173662020-09-07 09:10:31 +000021#endif
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070022//
23// The following #if macro may be deleted after a proper MANUFACTURER is provided.
24//
25#ifndef MANUFACTURER
26#error MANUFACTURER is not provided. \
Vadim Bendebury5a945de2015-10-30 10:45:00 -070027Please modify VendorString.h to provide a specific \
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070028manufacturer name.
29#endif
30//
31// Define up to 4, 4-byte values. The values must each be 4 bytes long and the last value used may contain
32// trailing zeros. These values define the response for TPM_PT_VENDOR_STRING_(1-4) in
33// TPM2_GetCapability(). The following line should be un-commented and a vendor specific string should
34// be provided here. The vendor strings 2-4 may also be defined as appropriately.
35//
36#define VENDOR_STRING_1 "xCG "
37#define VENDOR_STRING_2 "fTPM"
38// #define VENDOR_STRING_3
39// #define VENDOR_STRING_4
40//
41// The following #if macro may be deleted after a proper VENDOR_STRING_1 is provided.
42//
43#ifndef VENDOR_STRING_1
44#error VENDOR_STRING_1 is not provided. \
45Please modify include\VendorString.h to provide a vednor specific \
46string.
47//
48#endif
49//
Vadim Bendebury5a945de2015-10-30 10:45:00 -070050// the more significant 32-bits of a vendor-specific value indicating the
51// version of the firmware. Some instrumentation could be added to replace
52// the following definition(s) with some release tag, SHA1, build date,
53// etc.
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070054//
Vadim Bendebury5a945de2015-10-30 10:45:00 -070055#define FIRMWARE_V1 (0)
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070056//
Vadim Bendebury5a945de2015-10-30 10:45:00 -070057// the optional less significant 32-bits of a vendor-specific value
58// indicating the version of the firmware.
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070059//
Vadim Bendebury5a945de2015-10-30 10:45:00 -070060#define FIRMWARE_V2 (1)
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070061//
62// The following #if macro may be deleted after a proper FIRMWARE_V1 is provided.
63//
64#ifndef FIRMWARE_V1
65#error FIRMWARE_V1 is not provided. \
66Please modify include\VendorString.h to provide a vendor specific firmware \
67version
68#endif
69#endif