1419b0af8Sopenharmony_ci/*
2419b0af8Sopenharmony_ci * teek_client_id.h
3419b0af8Sopenharmony_ci *
4419b0af8Sopenharmony_ci * define exported data for secboot CA
5419b0af8Sopenharmony_ci *
6419b0af8Sopenharmony_ci * Copyright (C) 2022 Huawei Technologies Co., Ltd.
7419b0af8Sopenharmony_ci *
8419b0af8Sopenharmony_ci * This software is licensed under the terms of the GNU General Public
9419b0af8Sopenharmony_ci * License version 2, as published by the Free Software Foundation, and
10419b0af8Sopenharmony_ci * may be copied, distributed, and modified under those terms.
11419b0af8Sopenharmony_ci *
12419b0af8Sopenharmony_ci * This program is distributed in the hope that it will be useful,
13419b0af8Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of
14419b0af8Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15419b0af8Sopenharmony_ci * GNU General Public License for more details.
16419b0af8Sopenharmony_ci */
17419b0af8Sopenharmony_ci#ifndef TEE_CLIENT_ID_H
18419b0af8Sopenharmony_ci#define TEE_CLIENT_ID_H
19419b0af8Sopenharmony_ci
20419b0af8Sopenharmony_ci#define TEE_SERVICE_SECBOOT \
21419b0af8Sopenharmony_ci{ \
22419b0af8Sopenharmony_ci	0x08080808, \
23419b0af8Sopenharmony_ci	0x0808, \
24419b0af8Sopenharmony_ci	0x0808, \
25419b0af8Sopenharmony_ci	{ \
26419b0af8Sopenharmony_ci		0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08 \
27419b0af8Sopenharmony_ci	} \
28419b0af8Sopenharmony_ci}
29419b0af8Sopenharmony_ci
30419b0af8Sopenharmony_ci/* e7ed1f64-4687-41da-96dc-cbe4f27c838f */
31419b0af8Sopenharmony_ci#define TEE_SERVICE_ANTIROOT \
32419b0af8Sopenharmony_ci{ \
33419b0af8Sopenharmony_ci	0xE7ED1F64, \
34419b0af8Sopenharmony_ci	0x4687, \
35419b0af8Sopenharmony_ci	0x41DA, \
36419b0af8Sopenharmony_ci	{ \
37419b0af8Sopenharmony_ci		0x96, 0xDC, 0xCB, 0xE4, 0xF2, 0x7C, 0x83, 0x8F \
38419b0af8Sopenharmony_ci	} \
39419b0af8Sopenharmony_ci}
40419b0af8Sopenharmony_ci/* dca5ae8a-769e-4e24-896b-7d06442c1c0e */
41419b0af8Sopenharmony_ci#define TEE_SERVICE_SECISP \
42419b0af8Sopenharmony_ci{ \
43419b0af8Sopenharmony_ci	0xDCA5AE8A, \
44419b0af8Sopenharmony_ci	0x769E, \
45419b0af8Sopenharmony_ci	0x4E24, \
46419b0af8Sopenharmony_ci	{ \
47419b0af8Sopenharmony_ci		0x89, 0x6B, 0x7D, 0x06, 0x44, 0x2C, 0x1C, 0x0E \
48419b0af8Sopenharmony_ci	} \
49419b0af8Sopenharmony_ci}
50419b0af8Sopenharmony_ci/* 5700f837-8b8e-4661-800b-42bb3fc3141f */
51419b0af8Sopenharmony_ci#define TEE_SERVICE_DRM_GRALLOC \
52419b0af8Sopenharmony_ci{ \
53419b0af8Sopenharmony_ci	0x5700F837, \
54419b0af8Sopenharmony_ci	0x8B8E, \
55419b0af8Sopenharmony_ci	0x4661, \
56419b0af8Sopenharmony_ci	{ \
57419b0af8Sopenharmony_ci		0x80, 0x0B, 0x42, 0xBB, 0x3F, 0xC3, 0x14, 0x1F \
58419b0af8Sopenharmony_ci	} \
59419b0af8Sopenharmony_ci}
60419b0af8Sopenharmony_ci
61419b0af8Sopenharmony_cienum SVC_SECBOOT_CMD_ID {
62419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_INVALID = 0x0,
63419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_COPY_VRL,
64419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_COPY_DATA,
65419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_VERIFY_DATA,
66419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_RESET_IMAGE,
67419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_COPY_VRL_TYPE,
68419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_COPY_DATA_TYPE,
69419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_VERIFY_DATA_TYPE,
70419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_VERIFY_DATA_TYPE_LOCAL,
71419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_COPY_IMG_TYPE,
72419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_BSP_MODEM_CALL,
73419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_BSP_MODULE_VERIFY,
74419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_BSP_MODEM_CALL_EXT = SECBOOT_CMD_ID_BSP_MODULE_VERIFY,
75419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_GET_RNG_NUM,
76419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_BSP_LOAD_MODEM_TEEOS,
77419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_BSP_UNLOAD_MODEM_TEEOS,
78419b0af8Sopenharmony_ci	SECBOOT_CMD_VERIFY_BYPASS_NET_CERT,
79419b0af8Sopenharmony_ci	SECBOOT_CMD_ID_GET_SOCID,
80419b0af8Sopenharmony_ci};
81419b0af8Sopenharmony_ci
82419b0af8Sopenharmony_ci#ifdef CONFIG_SECBOOT_IMG
83419b0af8Sopenharmony_ci
84419b0af8Sopenharmony_ci#define CAS 0xff
85419b0af8Sopenharmony_cienum SVC_SECBOOT_IMG_TYPE {
86419b0af8Sopenharmony_ci	MODEM,
87419b0af8Sopenharmony_ci	DSP,
88419b0af8Sopenharmony_ci	XDSP,
89419b0af8Sopenharmony_ci	TAS,
90419b0af8Sopenharmony_ci	WAS,
91419b0af8Sopenharmony_ci	MODEM_COMM_IMG,
92419b0af8Sopenharmony_ci	MODEM_DTB,
93419b0af8Sopenharmony_ci	NVM,
94419b0af8Sopenharmony_ci	NVM_S,
95419b0af8Sopenharmony_ci	MBN_R,
96419b0af8Sopenharmony_ci	MBN_A,
97419b0af8Sopenharmony_ci	MODEM_COLD_PATCH,
98419b0af8Sopenharmony_ci	DSP_COLD_PATCH,
99419b0af8Sopenharmony_ci	MODEM_CERT,
100419b0af8Sopenharmony_ci	MAX_SOC_MODEM,
101419b0af8Sopenharmony_ci	HIFI,
102419b0af8Sopenharmony_ci	ISP,
103419b0af8Sopenharmony_ci	IVP,
104419b0af8Sopenharmony_ci	SOC_MAX
105419b0af8Sopenharmony_ci};
106419b0af8Sopenharmony_ci#elif defined(CONFIG_SECBOOT_IMG_V2)
107419b0af8Sopenharmony_cienum SVC_SECBOOT_IMG_TYPE {
108419b0af8Sopenharmony_ci	HIFI,
109419b0af8Sopenharmony_ci	ISP,
110419b0af8Sopenharmony_ci	IVP,
111419b0af8Sopenharmony_ci	MAX_AP_SOC,
112419b0af8Sopenharmony_ci	MODEM_START = 0x100,
113419b0af8Sopenharmony_ci	MODEM_END = 0x1FF,
114419b0af8Sopenharmony_ci	MAX_SOC,
115419b0af8Sopenharmony_ci};
116419b0af8Sopenharmony_ci#else
117419b0af8Sopenharmony_cienum SVC_SECBOOT_IMG_TYPE {
118419b0af8Sopenharmony_ci	MODEM,
119419b0af8Sopenharmony_ci	HIFI,
120419b0af8Sopenharmony_ci	DSP,
121419b0af8Sopenharmony_ci	XDSP,
122419b0af8Sopenharmony_ci	TAS,
123419b0af8Sopenharmony_ci	WAS,
124419b0af8Sopenharmony_ci	CAS,
125419b0af8Sopenharmony_ci	MODEM_DTB,
126419b0af8Sopenharmony_ci	ISP,
127419b0af8Sopenharmony_ci
128419b0af8Sopenharmony_ci#ifdef CONFIG_COLD_PATCH
129419b0af8Sopenharmony_ci	MODEM_COLD_PATCH,
130419b0af8Sopenharmony_ci	DSP_COLD_PATCH,
131419b0af8Sopenharmony_ci#endif
132419b0af8Sopenharmony_ci#ifdef CONFIG_RFIC_LOAD
133419b0af8Sopenharmony_ci	RFIC,
134419b0af8Sopenharmony_ci#endif
135419b0af8Sopenharmony_ci	SOC_MAX
136419b0af8Sopenharmony_ci};
137419b0af8Sopenharmony_ci#endif
138419b0af8Sopenharmony_ci
139419b0af8Sopenharmony_ci#endif
140