blob: eecb07c9f5986f316c0d77bbff7a59e9c5d77b2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Linaro Limited
*/
#ifndef TEE_SE_SERVICE_H
#define TEE_SE_SERVICE_H
#include <tee_api_types.h>
#include <kernel/mutex.h>
struct tee_se_service;
struct tee_se_session;
struct tee_se_channel;
struct tee_se_reader_proxy;
TEE_Result tee_se_service_open(
struct tee_se_service **service);
TEE_Result tee_se_service_add_session(
struct tee_se_service *service,
struct tee_se_session *session);
void tee_se_service_close_session(
struct tee_se_service *service,
struct tee_se_session *session);
void tee_se_service_close_sessions_by_reader(
struct tee_se_service *service,
struct tee_se_reader_proxy *proxy);
TEE_Result tee_se_service_is_session_closed(
struct tee_se_service *service,
struct tee_se_session *session_service);
TEE_Result tee_se_service_close(
struct tee_se_service *service);
bool tee_se_service_is_valid(
struct tee_se_service *service);
bool tee_se_service_is_session_valid(
struct tee_se_service *service,
struct tee_se_session *session_service);
bool tee_se_service_is_channel_valid(
struct tee_se_service *service,
struct tee_se_channel *channel);
#endif
|