6#ifndef HCC_MODULE_HEADER
7#define HCC_MODULE_HEADER
22#define HCC_HDR_LEN hcc_get_head_len()
34#define HCC_DISABLE TD_FALSE
35#define HCC_ENABLE TD_TRUE
61#ifndef CONFIG_HCC_SUPPORT_NON_OS
struct _hcc_serv_info_ hcc_serv_info
enum _hcc_module_init_errno_ hcc_module_init_errno
struct _hcc_header_ hcc_header
td_u16 hcc_tx_queue_proc(hcc_handler *hcc, hcc_trans_queue *queue)
td_void hcc_dfx_unc_alloc_cnt_increase(hcc_handler *hcc, hcc_queue_dir direction, td_bool success)
td_s32 hcc_resume_xfer(td_u8 chl)
td_void hcc_dfx_service_alloc_cnt_increase(hcc_handler *hcc, hcc_service_type service_type, hcc_queue_type queue_id, td_bool success)
struct _hcc_transfer_resource_ hcc_trans_resource
td_s32 hcc_transfer_thread(td_void *data)
td_void hcc_dfx_service_total_increase(hcc_handler *hcc)
ext_errno hcc_dfx_init(hcc_handler *hcc)
_hcc_module_init_errno_
Definition hcc.h:24
@ HCC_MODULE_INIT_FAILED_INIT_FLOW_CTRL
Definition hcc.h:29
@ HCC_MODULE_INIT_FAILED_INIT_TASK
Definition hcc.h:30
@ HCC_MODULE_INIT_FAILED_INIT_QUEUE
Definition hcc.h:28
@ HCC_MODULE_INIT_FAILED_ADD_HANDLER
Definition hcc.h:31
@ HCC_MODULE_INIT_FAILED_INIT_UNC_POOL
Definition hcc.h:27
@ HCC_MODULE_INIT_FAILED_SET_STATE
Definition hcc.h:26
@ HCC_MODULE_INIT_FAILED_INIT_STATE
Definition hcc.h:25
td_void hcc_dfx_service_startsubq_cnt_increase(hcc_handler *hcc, hcc_service_type service_type)
hcc_state_enum
Definition hcc.h:109
@ HCC_STATE_END
Definition hcc.h:114
@ HCC_OFF
Definition hcc.h:110
@ HCC_EXCEPTION
Definition hcc.h:112
@ HCC_BUS_FORBID
Definition hcc.h:113
@ HCC_ON
Definition hcc.h:111
struct _hcc_service_list_ hcc_service_list
td_s32 hcc_stop_xfer(td_u8 chl)
td_void hcc_dfx_service_stopsubq_cnt_increase(hcc_handler *hcc, hcc_service_type service_type)
td_void hcc_dfx_service_free_cnt_increase(hcc_handler *hcc, hcc_service_type service_type)
td_void hcc_dfx_service_exp_rx_cnt_increase(hcc_handler *hcc, hcc_service_type service_type)
hcc_service_type hcc_fuzzy_trans_queue_2_service(hcc_handler *hcc, hcc_queue_type queue_id)
td_void hcc_handle_tx_fail(hcc_handler *hcc)
td_void hcc_dfx_queue_loss_pkt_increase(hcc_handler *hcc, hcc_queue_dir dir, hcc_queue_type q_id)
td_void hcc_change_state(osal_atomic *atomic, td_u32 state)
td_void hcc_dfx_service_alloc_cb_cnt_increase(hcc_handler *hcc, hcc_service_type service_type)
td_void hcc_dfx_service_rx_cnt_increase(hcc_handler *hcc, hcc_service_type service_type, hcc_queue_type queue_id)
td_void hcc_enable_switch(td_u8 chl, td_bool enable)
td_u16 hcc_rx_queue_proc(hcc_handler *hcc, hcc_trans_queue *queue)
ext_errno hcc_sched_transfer(hcc_handler *hcc)
hcc_service_type hcc_queue_id_2_service_type(hcc_handler *hcc, hcc_queue_dir dir, hcc_queue_type queue_id)
td_void hcc_dfx_mem_free_cnt_increase(hcc_handler *hcc)
td_u32 hcc_check_overrun(hcc_handler *hcc)
td_bool hcc_check_header_vaild(TD_CONST hcc_handler *hcc, TD_CONST hcc_header *hdr)
td_u32 hcc_get_transfer_packet_num(hcc_handler *hcc)
td_void hcc_dfx_service_rx_err_cnt_increase(hcc_handler *hcc, hcc_service_type service_type)
td_void hcc_dfx_unc_free_cnt_increase(hcc_handler *hcc)
td_void hcc_init_unc_buf(hcc_unc_struc *unc_buf, td_u8 *buf, td_u32 len, hcc_transfer_param *param)
td_void hcc_dfx_queue_total_pkt_increase(hcc_handler *hcc, hcc_service_type serv_type, hcc_queue_dir dir, hcc_queue_type q_id, td_u8 cnt)
enum _hcc_serv_main_type hcc_service_type
enum _hcc_queue_type hcc_queue_type
@ HCC_DIR_COUNT
Definition hcc_types.h:15
enum _hcc_queue_dir_ hcc_queue_dir
ext_errno
Definition soc_errno.h:9
Definition hcc_types.h:71
Definition hcc_bus_types.h:91
Definition hcc_queue.h:21
td_u8 srv_max_cnt
Definition hcc.h:89
td_u8 que_max_cnt
Definition hcc.h:88
td_u8 unc_low_limit
Definition hcc.h:91
hcc_service_list hcc_serv
Definition hcc.h:84
hcc_bus * bus
Definition hcc.h:85
hcc_queue_cfg * que_cfg
Definition hcc.h:86
hcc_data_queue * unc_pool_head
Definition hcc.h:82
td_u8 hcc_state
Definition hcc.h:92
td_u8 channel_id
Definition hcc.h:90
hcc_trans_resource hcc_resource
Definition hcc.h:83
hcc_dfx * dfx_handle
Definition hcc.h:87
td_u32 rsv
Definition hcc.h:50
td_u32 service_type
Definition hcc.h:48
hcc_adapt_ops * adapt
Definition hcc.h:52
osal_atomic service_enable
Definition hcc.h:51
td_u32 bus_type
Definition hcc.h:49
struct osal_list_head service_list
Definition hcc.h:56
hcc_serv_info * service_info
Definition hcc.h:57
Definition hcc_queue.h:41
Definition hcc_types.h:30
td_u32 tx_fail_num_limit
Definition hcc.h:74
osal_wait hcc_fc_wq
Definition hcc.h:63
td_u32 cur_trans_pkts
Definition hcc.h:67
td_u32 tx_fail_cnt
Definition hcc.h:75
osal_task * hcc_transfer_thread_handler
Definition hcc.h:64
osal_wait hcc_transfer_wq
Definition hcc.h:62
td_u32 task_run
Definition hcc.h:71
hcc_trans_queue * hcc_queues[HCC_DIR_COUNT]
Definition hcc.h:78
td_u32 rsv
Definition hcc.h:72
td_u32 rsv1
Definition hcc.h:76
td_u32 tx_thread_enable
Definition hcc.h:70
td_u32 max_proc_packets_per_loop
Definition hcc.h:68
td_u32 rx_thread_enable
Definition hcc.h:69
Definition hcc_queue.h:27
Definition hcc_types.h:95
Definition osal_atomic.h:18
Definition osal_list.h:39
Definition osal_task.h:49
Definition osal_wait.h:21
#define TD_CONST
Definition td_base.h:18
unsigned short td_u16
Definition td_type.h:37
unsigned char td_u8
Definition td_type.h:36
td_u8 td_bool
Definition td_type.h:50
void td_void
Definition td_type.h:49
unsigned int td_u32
Definition td_type.h:38
int td_s32
Definition td_type.h:44
Definition hal_uart_v151_regs_def.h:38