1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/include/usr/secureboot/trustedboot_reasoncodes.H $ */
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
/* You may obtain a copy of the License at */
/* */
/* http://www.apache.org/licenses/LICENSE-2.0 */
/* */
/* Unless required by applicable law or agreed to in writing, software */
/* distributed under the License is distributed on an "AS IS" BASIS, */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
/* implied. See the License for the specific language governing */
/* permissions and limitations under the License. */
/* */
/* IBM_PROLOG_END_TAG */
/////////////////////////////////////////////////////////////////
// NOTE: This file is exportable as TSS-Lite for skiboot/PHYP //
/////////////////////////////////////////////////////////////////
#ifndef __TRUSTEDBOOT_REASONCODES_H
#define __TRUSTEDBOOT_REASONCODES_H
#ifdef __HOSTBOOT_MODULE
#include <hbotcompid.H>
#else
#define SECURE_COMP_ID 0x1E00
#endif
#ifdef __cplusplus
namespace TRUSTEDBOOT
{
#endif
enum TRUSTEDModuleId
{
MOD_HOST_UPDATE_MASTER_TPM = 0x00,
MOD_TPM_INITIALIZE = 0x01,
MOD_TPM_CMD_STARTUP = 0x02,
MOD_TPM_CMD_GETCAPFWVERSION = 0x03,
MOD_TPM_MARSHALCMDDATA = 0x04,
MOD_TPM_UNMARSHALRESPDATA = 0x05,
MOD_TPM_VERIFYFUNCTIONAL = 0x06,
MOD_TPMLOGMGR_INITIALIZE = 0x10,
MOD_TPMLOGMGR_ADDEVENT = 0x11,
};
enum TRUSTEDReasonCode
{
// Reason codes 0x00 - 0x9F reserved for secure_reasoncodes.H
RC_TPM_START_FAIL = SECURE_COMP_ID | 0xA0,
RC_TPM_EXISTENCE_FAIL = SECURE_COMP_ID | 0xA1,
RC_TPM_GETCAP_FAIL = SECURE_COMP_ID | 0xA2,
RC_TPM_GETCAP_FW_INVALID_RESP = SECURE_COMP_ID | 0xA3,
RC_TPM_GETCAP2_FAIL = SECURE_COMP_ID | 0xA4,
RC_TPM_GETCAP2_FW_INVALID_RESP = SECURE_COMP_ID | 0xA5,
RC_TPM_MARSHAL_INVALID_CMD = SECURE_COMP_ID | 0xA6,
RC_TPM_MARSHALING_FAIL = SECURE_COMP_ID | 0xA7,
RC_TPM_UNMARSHAL_INVALID_CMD = SECURE_COMP_ID | 0xA8,
RC_TPM_UNMARSHALING_FAIL = SECURE_COMP_ID | 0xA9,
RC_TPMLOGMGR_ADDEVENT_FAIL = SECURE_COMP_ID | 0xAA,
RC_TPMLOGMGR_ADDEVENTMARSH_FAIL = SECURE_COMP_ID | 0xAB,
RC_TPMLOGMGR_INIT_FAIL = SECURE_COMP_ID | 0xAC,
RC_TPM_NOFUNCTIONALTPM_FAIL = SECURE_COMP_ID | 0xAD,
};
#ifdef __cplusplus
}
#endif
#endif
|