blob: baf5164f8a19d06ffbeb45498cfa9f81447e84b9 [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//
Vadim Bendebury5a945de2015-10-30 10:45:00 -070016#define MANUFACTURER "CROS"
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070017//
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 Bendebury5a945de2015-10-30 10:45:00 -070022Please modify VendorString.h to provide a specific \
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070023manufacturer 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. \
40Please modify include\VendorString.h to provide a vednor specific \
41string.
42//
43#endif
44//
Vadim Bendebury5a945de2015-10-30 10:45:00 -070045// 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 Bendeburyf5cc58b2015-05-31 14:09:19 -070049//
Vadim Bendebury5a945de2015-10-30 10:45:00 -070050#define FIRMWARE_V1 (0)
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070051//
Vadim Bendebury5a945de2015-10-30 10:45:00 -070052// the optional less significant 32-bits of a vendor-specific value
53// indicating the version of the firmware.
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070054//
Vadim Bendebury5a945de2015-10-30 10:45:00 -070055#define FIRMWARE_V2 (1)
Vadim Bendeburyf5cc58b2015-05-31 14:09:19 -070056//
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. \
61Please modify include\VendorString.h to provide a vendor specific firmware \
62version
63#endif
64#endif