Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright(c) 2020, Intel Corporation. All rights reserved.
0004  */
0005 
0006 #ifndef __INTEL_PXP_TEE_INTERFACE_H__
0007 #define __INTEL_PXP_TEE_INTERFACE_H__
0008 
0009 #include <linux/types.h>
0010 
0011 #define PXP_TEE_APIVER 0x40002
0012 #define PXP_TEE_ARB_CMDID 0x1e
0013 #define PXP_TEE_ARB_PROTECTION_MODE 0x2
0014 
0015 /* PXP TEE message header */
0016 struct pxp_tee_cmd_header {
0017     u32 api_version;
0018     u32 command_id;
0019     u32 status;
0020     /* Length of the message (excluding the header) */
0021     u32 buffer_len;
0022 } __packed;
0023 
0024 /* PXP TEE message input to create a arbitrary session */
0025 struct pxp_tee_create_arb_in {
0026     struct pxp_tee_cmd_header header;
0027     u32 protection_mode;
0028     u32 session_id;
0029 } __packed;
0030 
0031 /* PXP TEE message output to create a arbitrary session */
0032 struct pxp_tee_create_arb_out {
0033     struct pxp_tee_cmd_header header;
0034 } __packed;
0035 
0036 #endif /* __INTEL_PXP_TEE_INTERFACE_H__ */