Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
TEE Driver Backend API

Data Structures

struct  tee_driver_api
  Driver Operations TEE driver operations More...

Typedefs

typedef int(* tee_get_version_t) (const struct device *dev, struct tee_version_info *info)
 Callback API to get current tee version.
typedef int(* tee_open_session_t) (const struct device *dev, struct tee_open_session_arg *arg, unsigned int num_param, struct tee_param *param, uint32_t *session_id)
 Callback API to open session to Trusted Application.
typedef int(* tee_close_session_t) (const struct device *dev, uint32_t session_id)
 Callback API to close session to TA.
typedef int(* tee_cancel_t) (const struct device *dev, uint32_t session_id, uint32_t cancel_id)
 Callback API to cancel open session of invoke function to TA.
typedef int(* tee_invoke_func_t) (const struct device *dev, struct tee_invoke_func_arg *arg, unsigned int num_param, struct tee_param *param)
 Callback API to invoke function to TA.
typedef int(* tee_shm_register_t) (const struct device *dev, struct tee_shm *shm)
 Callback API to register shared memory.
typedef int(* tee_shm_unregister_t) (const struct device *dev, struct tee_shm *shm)
 Callback API to unregister shared memory.
typedef int(* tee_suppl_recv_t) (const struct device *dev, uint32_t *func, unsigned int *num_params, struct tee_param *param)
 Callback API to receive a request for TEE supplicant.
typedef int(* tee_suppl_send_t) (const struct device *dev, unsigned int ret, unsigned int num_params, struct tee_param *param)
 Callback API to send a request for TEE supplicant.

Detailed Description

This group contains the API type definitions, callback signatures, and other helpers required to implement a TEE driver.

Typedef Documentation

◆ tee_cancel_t

typedef int(* tee_cancel_t) (const struct device *dev, uint32_t session_id, uint32_t cancel_id)

#include <zephyr/drivers/tee.h>

Callback API to cancel open session of invoke function to TA.

See tee_cancel() for argument definitions.

◆ tee_close_session_t

typedef int(* tee_close_session_t) (const struct device *dev, uint32_t session_id)

#include <zephyr/drivers/tee.h>

Callback API to close session to TA.

See tee_close_session() for argument definitions.

◆ tee_get_version_t

typedef int(* tee_get_version_t) (const struct device *dev, struct tee_version_info *info)

#include <zephyr/drivers/tee.h>

Callback API to get current tee version.

See tee_get_version() for argument definitions.

◆ tee_invoke_func_t

typedef int(* tee_invoke_func_t) (const struct device *dev, struct tee_invoke_func_arg *arg, unsigned int num_param, struct tee_param *param)

#include <zephyr/drivers/tee.h>

Callback API to invoke function to TA.

See tee_invoke_func() for argument definitions.

◆ tee_open_session_t

typedef int(* tee_open_session_t) (const struct device *dev, struct tee_open_session_arg *arg, unsigned int num_param, struct tee_param *param, uint32_t *session_id)

#include <zephyr/drivers/tee.h>

Callback API to open session to Trusted Application.

See tee_open_session() for argument definitions.

◆ tee_shm_register_t

typedef int(* tee_shm_register_t) (const struct device *dev, struct tee_shm *shm)

#include <zephyr/drivers/tee.h>

Callback API to register shared memory.

See tee_shm_register() for argument definitions.

◆ tee_shm_unregister_t

typedef int(* tee_shm_unregister_t) (const struct device *dev, struct tee_shm *shm)

#include <zephyr/drivers/tee.h>

Callback API to unregister shared memory.

See tee_shm_unregister() for argument definitions.

◆ tee_suppl_recv_t

typedef int(* tee_suppl_recv_t) (const struct device *dev, uint32_t *func, unsigned int *num_params, struct tee_param *param)

#include <zephyr/drivers/tee.h>

Callback API to receive a request for TEE supplicant.

See tee_suppl_recv() for argument definitions.

◆ tee_suppl_send_t

typedef int(* tee_suppl_send_t) (const struct device *dev, unsigned int ret, unsigned int num_params, struct tee_param *param)

#include <zephyr/drivers/tee.h>

Callback API to send a request for TEE supplicant.

See tee_suppl_send() for argument definitions.