• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2015 - 2018, Intel Corporation
4  * All rights reserved.
5  */
6 #ifndef TCTI_SOCKET_H
7 #define TCTI_SOCKET_H
8 
9 #include "tss2_tcti.h"
10 
11 /*
12  * Command codes that may be sent to simulator through out of band command
13  * channel (aka "the other socket").
14  */
15 #define MS_SIM_POWER_ON         1
16 #define MS_SIM_POWER_OFF        2
17 #define MS_SIM_TPM_SEND_COMMAND 8
18 #define MS_SIM_CANCEL_ON        9
19 #define MS_SIM_CANCEL_OFF       10
20 #define MS_SIM_NV_ON            11
21 #define TPM_SESSION_END         20
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 TSS2_RC tcti_platform_command(
28     TSS2_TCTI_CONTEXT *tctiContext,
29     UINT32 cmd);
30 
31 TSS2_RC Tss2_Tcti_Mssim_Init (
32     TSS2_TCTI_CONTEXT *tctiContext,
33     size_t *size,
34     const char *conf);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif /* TCTI_SOCKET_H */
41