blob: 151b81723b8fdba2d864b070e43ac8a8ed00fe71 (
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
51
|
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2014, Linaro Limited
* All rights reserved.
*/
#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
|