1 /* 2 * Copyright (C) 2022 Huawei Technologies Co., Ltd. 3 * Licensed under the Mulan PSL v2. 4 * You can use this software according to the terms and conditions of the Mulan PSL v2. 5 * You may obtain a copy of Mulan PSL v2 at: 6 * http://license.coscl.org.cn/MulanPSL2 7 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR 8 * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR 9 * PURPOSE. 10 * See the Mulan PSL v2 for more details. 11 */ 12 13 #ifndef GTASK_TASK_DYNAMIC_ADAPTOR_H 14 #define GTASK_TASK_DYNAMIC_ADAPTOR_H 15 16 #include "task_adaptor.h" 17 #include "gtask_inner.h" 18 19 #define TASK_PRIO_ART_SERVICE (DEFAULT_TASK_PRIO - 1) 20 #define TASK_PRIO_BIO_SERVICE (DEFAULT_TASK_PRIO - 1) 21 #define TASK_PRIO_CRYPTO_AGENT_SERVICE (DEFAULT_TASK_PRIO - 1) 22 #define TASK_PRIO_HSM_SERVICE (DEFAULT_TASK_PRIO - 1) 23 #define TASK_PRIO_HUK_SERVICE (DEFAULT_TASK_PRIO - 1) 24 #define TASK_PRIO_ROT_SERVICE (DEFAULT_TASK_PRIO - 1) 25 #define TASK_PRIO_VLTMM_SRV (DEFAULT_TASK_PRIO - 1) 26 27 void register_dynamic_task(const TEE_UUID *uuid, const char *task_name, 28 const struct srv_adaptor_config_t *srv_config); 29 30 #endif 31