WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hcc_queue.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2023. All rights reserved.
3 * Description: hcc queue list.
4 */
5
6#ifndef HCC_QUEUE_HEADER
7#define HCC_QUEUE_HEADER
8
9#include "td_type.h"
10#include "soc_osal.h"
11#include "osal_list.h"
12#include "hcc_types.h"
13#include "hcc_cfg_comm.h"
14
15#ifdef __cplusplus
16#if __cplusplus
17extern "C" {
18#endif
19#endif
20
26
27typedef struct _hcc_unc_struc {
35#ifdef CONFIG_HCC_SUPPORT_IPC_HOST
36 td_u8 *addr;
37#endif
40
41typedef struct _hcc_trans_queue_ {
42 hcc_data_queue queue_info; // 队列的操作链表
43 hcc_queue_ctrl *queue_ctrl; // 队列流控配置 //
44 td_u8 queue_id; // 当前队列的ID
46 struct {
47 struct {
48 td_u16 flow_ctrl_open : 1; // 队列流控标记,flow type为 HCC_FLOWCTRL_DATA 时使用 hcc_flowctrl_flag
49 td_u16 is_stopped : 1; // 队列流控状态,停止业务入列
53
54 td_u16 credit; /* flow type为 HCC_FLOWCTRL_CREDIT 时使用, 保存credit值 */
56
57 hcc_data_queue send_head; /* 实际需要发送的链表 */
59
60#ifdef __cplusplus
61#if __cplusplus
62}
63#endif
64#endif
65
66#endif /* HCC_QUEUE_HEADER */
struct _hcc_trans_queue_ hcc_trans_queue
struct _hcc_data_queue_ hcc_data_queue
struct _hcc_unc_struc hcc_unc_struc
Definition hcc_queue.h:21
td_u32 qlen
Definition hcc_queue.h:23
osal_spinlock data_queue_lock
Definition hcc_queue.h:24
struct osal_list_head data_queue
Definition hcc_queue.h:22
Definition hcc_types.h:80
Definition hcc_queue.h:41
hcc_data_queue send_head
Definition hcc_queue.h:57
struct _hcc_trans_queue_::@403 fc_para
td_u16 flow_ctrl_open
Definition hcc_queue.h:48
struct _hcc_trans_queue_::@403::@404 fc_back_para
td_u16 credit
Definition hcc_queue.h:54
td_u16 is_stopped
Definition hcc_queue.h:49
td_u8 rsv
Definition hcc_queue.h:45
td_u8 queue_id
Definition hcc_queue.h:44
hcc_queue_ctrl * queue_ctrl
Definition hcc_queue.h:43
td_u16 fc_on_cnt
Definition hcc_queue.h:50
hcc_data_queue queue_info
Definition hcc_queue.h:42
td_u16 fc_off_cnt
Definition hcc_queue.h:51
Definition hcc_queue.h:27
td_u8 * user_param
Definition hcc_queue.h:30
td_u8 service_type
Definition hcc_queue.h:31
td_u32 length
Definition hcc_queue.h:29
td_u16 rsv
Definition hcc_queue.h:34
struct osal_list_head list
Definition hcc_queue.h:38
td_u8 * buf
Definition hcc_queue.h:28
td_u8 queue_id
Definition hcc_queue.h:33
td_u8 sub_type
Definition hcc_queue.h:32
Definition osal_list.h:39
Definition osal_spinlock.h:18
unsigned short td_u16
Definition td_type.h:37
unsigned char td_u8
Definition td_type.h:36
unsigned int td_u32
Definition td_type.h:38