summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e305d73)
raw | patch | inline | side by side (parent: e305d73)
author | Etienne Carriere <etienne.carriere@linaro.org> | |
Tue, 8 Nov 2016 10:47:13 +0000 (11:47 +0100) | ||
committer | Etienne Carriere <etienne.carriere@linaro.org> | |
Tue, 8 Nov 2016 10:47:13 +0000 (11:47 +0100) |
This changes is about cleanup. No functional change.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
libteec/include/linux/tee.h | patch | blob | history |
index 23ac531aa3553d66899ebbb0d479c9d725be3bc8..dd98a666117d49b02332dfdc482283b7dab231c1 100644 (file)
* data passed back and forth using TEE_IOC_CMD.
*/
-
/* Helpers to make the ioctl defines */
#define TEE_IOC_MAGIC 0xa4
#define TEE_IOC_BASE 0
__u32 impl_caps;
__u32 gen_caps;
};
+
/**
* TEE_IOC_VERSION - query version of TEE
*
__u32 flags;
__s32 id;
};
+
/**
* TEE_IOC_SHM_ALLOC - allocate shared memory
*
__u64 buf_len;
};
-
/*
* Attributes for struct tee_ioctl_param, selects field in the union
*/
/*
* Matches TEEC_LOGIN_* in GP TEE Client API
- * Is only defined for GP compliant TEEs
+ * Are only defined for GP compliant TEEs
*/
#define TEE_IOCTL_LOGIN_PUBLIC 0
#define TEE_IOCTL_LOGIN_USER 1
* @a: first value
* @b: second value
* @c: third value
+ *
+ * Value parameters are passed unchecked to the destination
*/
struct tee_ioctl_param_value {
__u64 a;
* struct tee_ioctl_open_session_arg - Open session argument
* @uuid: [in] UUID of the Trusted Application
* @clnt_uuid: [in] UUID of client
- * @clnt_login: [in] Login class of client, TEE_LOGIN_* above
+ * @clnt_login: [in] Login class of client, TEE_IOCTL_LOGIN_* above
* @cancel_id: [in] Cancellation id, a unique value to identify this request
* @session: [out] Session id
* @ret: [out] return value
struct tee_ioctl_buf_data)
/**
- * struct tee_ioctl_invoke_func_arg - Invokes a function in a Trusted Application
+ * struct tee_ioctl_invoke_func_arg - Invokes a function in a Trusted
+ * Application
* @func: [in] Trusted Application function, specific to the TA
* @session: [in] Session id
* @cancel_id: [in] Cancellation id, a unique value to identify this request
__u32 cancel_id;
__u32 session;
};
+
/**
* TEE_IOC_CANCEL - Cancels an open session or invoke
*/
struct tee_ioctl_close_session_arg {
__u32 session;
};
+
/**
* TEE_IOC_CLOSE_SESSION - Closes a session
*/
* struct tee_ioctl_param params[num_params];
*/
} __aligned(8);
+
/**
* TEE_IOC_SUPPL_RECV - Receive a request for a supplicant function
*
#define TEE_IOC_SUPPL_RECV _IOR(TEE_IOC_MAGIC, TEE_IOC_BASE + 6, \
struct tee_ioctl_buf_data)
-
/**
* struct tee_iocl_supp_send_arg - Send a response to a received request
* @ret: [out] return value
#define TEE_IOC_SUPPL_SEND _IOR(TEE_IOC_MAGIC, TEE_IOC_BASE + 7, \
struct tee_ioctl_buf_data)
-
/*
* Five syscalls are used when communicating with the TEE driver.
* open(): opens the device associated with the driver