1 /* 2 * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 19 #ifndef __HCC_TASK_H__ 20 #define __HCC_TASK_H__ 21 22 /* **************************************************************************** 23 1 其他头文件包含 24 **************************************************************************** */ 25 #include "oal_ext_if.h" 26 #include "hcc_host.h" 27 28 #ifdef __cplusplus 29 #if __cplusplus 30 extern "C" { 31 #endif 32 #endif 33 34 #if (_PRE_FRW_FEATURE_PROCESS_ENTITY_TYPE == _PRE_FRW_FEATURE_PROCESS_ENTITY_THREAD) 35 typedef struct { 36 oal_kthread_stru *hcc_kthread; 37 oal_wait_queue_head_stru hcc_wq; 38 hi_u8 task_state; 39 hi_u8 auc_resv[3]; /* resv 3 bytes */ 40 } hcc_task_stru; 41 #endif 42 43 hi_u32 hcc_task_init(hcc_handler_stru *hcc_handler); 44 hi_void hcc_task_exit(hi_void); 45 46 hi_void hcc_task_sched(hi_void); 47 48 #ifdef __cplusplus 49 #if __cplusplus 50 } 51 #endif 52 #endif 53 54 #endif /* end of frw_task.h */ 55