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 GLOBAL_TASK_H 14 #define GLOBAL_TASK_H 15 16 #include "ta_framework.h" 17 #include "gtask_inner.h" 18 19 void gtask_main(void); 20 int put_last_out_cmd(const smc_cmd_t *cmd); 21 TEE_Result get_tee_version(const smc_cmd_t *cmd); 22 TEE_Result process_load_image(smc_cmd_t *cmd, bool *async); 23 TEE_Result process_ta_common_cmd(smc_cmd_t *cmd, uint32_t cmd_type, uint32_t task_id, bool *async, 24 const struct ta2ta_info_t *ta2ta_info); 25 TEE_Result handle_time_adjust(const smc_cmd_t *cmd); 26 void ns_cmd_response(smc_cmd_t *cmd); 27 bool is_abort_cmd(const smc_cmd_t *cmd); 28 void restore_cmd_in(const smc_cmd_t *cmd); 29 30 #endif 31