41 #ifndef __OTE_CLIENT_H
42 #define __OTE_CLIENT_H
46 #define TLK_DEVICE_BASE_NAME "tlk_device"
47 #define TE_IOCTL_MAGIC_NUMBER ('t')
49 #define TE_IOCTL_OPEN_CLIENT_SESSION \
50 _IOWR(TE_IOCTL_MAGIC_NUMBER, 0x10, union te_cmd)
51 #define TE_IOCTL_CLOSE_CLIENT_SESSION \
52 _IOWR(TE_IOCTL_MAGIC_NUMBER, 0x11, union te_cmd)
53 #define TE_IOCTL_LAUNCH_OP \
54 _IOWR(TE_IOCTL_MAGIC_NUMBER, 0x14, union te_cmd)
57 #define TE_IOCTL_SS_CMD \
58 _IOR(TE_IOCTL_MAGIC_NUMBER, 0x30, int)
60 #define TE_IOCTL_SS_CMD_GET_NEW_REQ 1
61 #define TE_IOCTL_SS_CMD_REQ_COMPLETE 2
64 #define LIBCA_ERR(args...) te_fprintf(TE_ERR, args)
65 #define LIBCA_INFO(args...) te_fprintf(TE_INFO, args)
66 #define LIBCA_SECURE(args...) te_fprintf(TE_SECURE, args)
struct ote_closesession closesession
Gets a pending answer without making new operation.
tos_type_t te_tos_type(void)
Returns the current Trusted OS type.
Answers from secure side.
Holds operation object information that is to be delivered to the TLK Secure Service.
Opens an open trusted environment (OTE) session.
NVIDIA Trusted Little Kernel Interface: Common Commands
Defines a unique 16-byte ID for each TLK service.
Launches an operation request.
uint64_t cmnptr_t
Holds a pointer large enough to support 32- and 64-bit clients.
te_service_id_t dest_service_id
Requests OTE to launch a TA operation.
struct ote_launchop launchop
tos_type_t
Currently supported Trusted OS variants.
No answers for now (secure side idle).
struct ote_opensession opensession