1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: hcc service. 15 * Author: 16 * Create: 2021-09-11 17 */ 18 19 #ifndef HCC_SERVICE_HEADER 20 #define HCC_SERVICE_HEADER 21 22 #include "td_type.h" 23 #include "hcc_types.h" 24 #include "hcc_cfg_comm.h" 25 #include "hcc.h" 26 27 #ifdef __cplusplus 28 #if __cplusplus 29 extern "C" { 30 #endif 31 #endif 32 33 td_s32 hcc_service_get_credit(td_u8 chl, hcc_service_type serv, td_u32 *credit); 34 td_bool hcc_service_is_busy(td_u8 chl, hcc_service_type service_type); 35 td_void hcc_service_enable_switch(td_u8 chl, hcc_service_type service_type, td_bool enable); 36 37 hcc_serv_info *hcc_add_service_list(hcc_handler *hcc, hcc_service_type serv_type); 38 td_void hcc_del_service_list(hcc_handler *hcc, hcc_service_type serv_type); 39 hcc_serv_info *hcc_get_serv_info(hcc_handler *hcc, hcc_service_type serv_type); 40 41 #ifdef __cplusplus 42 #if __cplusplus 43 } 44 #endif 45 #endif 46 47 #endif /* HCC_SERVICE_HEADER */ 48