xref: /optee_os/lib/libutee/include/tee_syscall_numbers.h (revision b01047730e77127c23a36591643eeb8bb0487d68)
1*b0104773SPascal Brand /*
2*b0104773SPascal Brand  * Copyright (c) 2014, STMicroelectronics International N.V.
3*b0104773SPascal Brand  * All rights reserved.
4*b0104773SPascal Brand  *
5*b0104773SPascal Brand  * Redistribution and use in source and binary forms, with or without
6*b0104773SPascal Brand  * modification, are permitted provided that the following conditions are met:
7*b0104773SPascal Brand  *
8*b0104773SPascal Brand  * 1. Redistributions of source code must retain the above copyright notice,
9*b0104773SPascal Brand  * this list of conditions and the following disclaimer.
10*b0104773SPascal Brand  *
11*b0104773SPascal Brand  * 2. Redistributions in binary form must reproduce the above copyright notice,
12*b0104773SPascal Brand  * this list of conditions and the following disclaimer in the documentation
13*b0104773SPascal Brand  * and/or other materials provided with the distribution.
14*b0104773SPascal Brand  *
15*b0104773SPascal Brand  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16*b0104773SPascal Brand  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17*b0104773SPascal Brand  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18*b0104773SPascal Brand  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
19*b0104773SPascal Brand  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20*b0104773SPascal Brand  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21*b0104773SPascal Brand  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22*b0104773SPascal Brand  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23*b0104773SPascal Brand  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24*b0104773SPascal Brand  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25*b0104773SPascal Brand  * POSSIBILITY OF SUCH DAMAGE.
26*b0104773SPascal Brand  */
27*b0104773SPascal Brand 
28*b0104773SPascal Brand #ifndef TEE_SYSCALL_NUMBERS_H
29*b0104773SPascal Brand #define TEE_SYSCALL_NUMBERS_H
30*b0104773SPascal Brand 
31*b0104773SPascal Brand #define TEE_SCN_RETURN				0
32*b0104773SPascal Brand #define TEE_SCN_LOG				1
33*b0104773SPascal Brand #define TEE_SCN_PANIC				2
34*b0104773SPascal Brand #define TEE_SCN_DUMMY				3
35*b0104773SPascal Brand #define TEE_SCN_DUMMY_7ARGS			4
36*b0104773SPascal Brand #define TEE_SCN_GET_PROPERTY			5
37*b0104773SPascal Brand #define TEE_SCN_OPEN_TA_SESSION			6
38*b0104773SPascal Brand #define TEE_SCN_CLOSE_TA_SESSION		7
39*b0104773SPascal Brand #define TEE_SCN_INVOKE_TA_COMMAND		8
40*b0104773SPascal Brand #define TEE_SCN_CHECK_ACCESS_RIGHTS		9
41*b0104773SPascal Brand #define TEE_SCN_GET_CANCELLATION_FLAG		10
42*b0104773SPascal Brand #define TEE_SCN_UNMASK_CANCELLATION		11
43*b0104773SPascal Brand #define TEE_SCN_MASK_CANCELLATION		12
44*b0104773SPascal Brand #define TEE_SCN_WAIT				13
45*b0104773SPascal Brand #define TEE_SCN_GET_TIME			14
46*b0104773SPascal Brand #define TEE_SCN_SET_TA_TIME			15
47*b0104773SPascal Brand #define TEE_SCN_CRYP_STATE_ALLOC		16
48*b0104773SPascal Brand #define TEE_SCN_CRYP_STATE_COPY			17
49*b0104773SPascal Brand #define TEE_SCN_CRYP_STATE_FREE			18
50*b0104773SPascal Brand #define TEE_SCN_HASH_INIT			19
51*b0104773SPascal Brand #define TEE_SCN_HASH_UPDATE			20
52*b0104773SPascal Brand #define TEE_SCN_HASH_FINAL			21
53*b0104773SPascal Brand #define TEE_SCN_CIPHER_INIT			22
54*b0104773SPascal Brand #define TEE_SCN_CIPHER_UPDATE			23
55*b0104773SPascal Brand #define TEE_SCN_CIPHER_FINAL			24
56*b0104773SPascal Brand #define TEE_SCN_CRYP_OBJ_GET_INFO		25
57*b0104773SPascal Brand #define TEE_SCN_CRYP_OBJ_RESTRICT_USAGE		26
58*b0104773SPascal Brand #define TEE_SCN_CRYP_OBJ_GET_ATTR		27
59*b0104773SPascal Brand #define TEE_SCN_CRYP_OBJ_ALLOC			28
60*b0104773SPascal Brand #define TEE_SCN_CRYP_OBJ_CLOSE			29
61*b0104773SPascal Brand #define TEE_SCN_CRYP_OBJ_RESET			30
62*b0104773SPascal Brand #define TEE_SCN_CRYP_OBJ_POPULATE		31
63*b0104773SPascal Brand #define TEE_SCN_CRYP_OBJ_COPY			32
64*b0104773SPascal Brand #define TEE_SCN_CRYP_DERIVE_KEY			33
65*b0104773SPascal Brand #define TEE_SCN_CRYP_RANDOM_NUMBER_GENERATE	34
66*b0104773SPascal Brand #define TEE_SCN_AUTHENC_INIT			35
67*b0104773SPascal Brand #define TEE_SCN_AUTHENC_UPDATE_AAD		36
68*b0104773SPascal Brand #define TEE_SCN_AUTHENC_UPDATE_PAYLOAD		37
69*b0104773SPascal Brand #define TEE_SCN_AUTHENC_ENC_FINAL		38
70*b0104773SPascal Brand #define TEE_SCN_AUTHENC_DEC_FINAL		39
71*b0104773SPascal Brand #define TEE_SCN_ASYMM_OPERATE			40
72*b0104773SPascal Brand #define TEE_SCN_ASYMM_VERIFY			41
73*b0104773SPascal Brand #define TEE_SCN_STORAGE_OBJ_OPEN		42
74*b0104773SPascal Brand #define TEE_SCN_STORAGE_OBJ_CREATE		43
75*b0104773SPascal Brand #define TEE_SCN_STORAGE_OBJ_DEL			44
76*b0104773SPascal Brand #define TEE_SCN_STORAGE_OBJ_RENAME		45
77*b0104773SPascal Brand #define TEE_SCN_STORAGE_ENUM_ALLOC		46
78*b0104773SPascal Brand #define TEE_SCN_STORAGE_ENUM_FREE		47
79*b0104773SPascal Brand #define TEE_SCN_STORAGE_ENUM_RESET		48
80*b0104773SPascal Brand #define TEE_SCN_STORAGE_ENUM_START		49
81*b0104773SPascal Brand #define TEE_SCN_STORAGE_ENUM_NEXT		50
82*b0104773SPascal Brand #define TEE_SCN_STORAGE_OBJ_READ		51
83*b0104773SPascal Brand #define TEE_SCN_STORAGE_OBJ_WRITE		52
84*b0104773SPascal Brand #define TEE_SCN_STORAGE_OBJ_TRUNC		53
85*b0104773SPascal Brand #define TEE_SCN_STORAGE_OBJ_SEEK		54
86*b0104773SPascal Brand #define TEE_SCN_CRYP_OBJ_GENERATE_KEY		55
87*b0104773SPascal Brand 
88*b0104773SPascal Brand #define TEE_SCN_MAX				55
89*b0104773SPascal Brand 
90*b0104773SPascal Brand #endif /* TEE_SYSCALL_NUMBERS_H */
91