WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hcc_cfg.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
3 * Description: hcc product configuration.
4 */
5
6#ifndef __HCC_CFG_H__
7#define __HCC_CFG_H__
8
9#include "td_type.h"
10#include "hcc_types.h"
11#include "hcc_bus_types.h"
12#include "hcc_cfg_comm.h"
13
14#ifdef __cplusplus
15#if __cplusplus
16extern "C" {
17#endif
18#endif
19
20#define HCC_TASK_PRIORITY 5
21#define HCC_FLOWCTRL_DEFAULT_LO_WATER_LINE 4
22#define HCC_FLOWCTRL_DEFAULT_HI_WATER_LINE 8
23#define HCC_FLOWCTRL_DEFAULT_CREDIT_BOTTOM_VALUE 12
24#define HCC_DEFAULT_QUEUE_TRANSFER_BURST_LIMIT 8
25#define HCC_MAX_QUEUE_TRANSFER_BURST_LIMIT 8
26#define HCC_DATA_QUEUE_BUF_LEN 1680
27#define HCC_UNC_POOL_SIZE_CCORE 48
28#define HCC_UNC_POOL_SIZE_ACORE 96
29#define HCC_UNC_POOL_SIZE_LOW_LIMIT 8
30#define HCC_IPC_RX_SCH_WATER_LINE 4
31
32#define HCC_TX_PROC_FAILED_MAX_NUM 100
33
34typedef enum _d2h_srv_msg_type {
35 D2H_MSG_WLAN_WAKEUP_SUCC = D2H_MSG_PLAT_END, /* wlan device唤醒成功 */
36 D2H_MSG_WLAN_ALLOW_SLEEP = 11, /* wlan device回复host允许睡眠 */
37 D2H_MSG_WLAN_DISALLOW_SLEEP = 12, /* wlan device回复host不允许睡眠 */
38 D2H_MSG_WLAN_WAKEUP_REQ = 13, /* wlan device请求唤醒host */
39 D2H_MSG_HCC_RX_MAX = HCC_RX_MAX_MESSAGE, /* max support msg count */
41
42/* Host to device sdio message type */
43typedef enum _h2d_srv_msg_type {
44 H2D_MSG_WLAN_WAKE_UP_REQ = H2D_MSG_PLAT_END, /* wlan host唤醒devcie请求 */
45 H2D_MSG_WLAN_SLEEP_REQ = 11, /* wlan host请求device睡眠 */
46 H2D_MSG_HCC_HCC_TX_MAX = HCC_TX_MAX_MESSAGE, /* max support msg count */
48
50bool hcc_check_bt_queue(uint8_t queue_id);
51
52#ifdef __cplusplus
53#if __cplusplus
54}
55#endif
56#endif
57
58#endif /* __HCC_CFG_H__ */
#define HCC_RX_MAX_MESSAGE
Definition hcc_bus_types.h:25
#define HCC_TX_MAX_MESSAGE
Definition hcc_bus_types.h:26
_h2d_srv_msg_type
Definition hcc_cfg.h:43
@ H2D_MSG_WLAN_WAKE_UP_REQ
Definition hcc_cfg.h:44
@ H2D_MSG_HCC_HCC_TX_MAX
Definition hcc_cfg.h:46
@ H2D_MSG_WLAN_SLEEP_REQ
Definition hcc_cfg.h:45
enum _h2d_srv_msg_type h2d_srv_msg_type
_d2h_srv_msg_type
Definition hcc_cfg.h:34
@ D2H_MSG_WLAN_WAKEUP_REQ
Definition hcc_cfg.h:38
@ D2H_MSG_WLAN_DISALLOW_SLEEP
Definition hcc_cfg.h:37
@ D2H_MSG_WLAN_WAKEUP_SUCC
Definition hcc_cfg.h:35
@ D2H_MSG_WLAN_ALLOW_SLEEP
Definition hcc_cfg.h:36
@ D2H_MSG_HCC_RX_MAX
Definition hcc_cfg.h:39
hcc_queue_cfg * hcc_get_queue_cfg(uint8_t *arr_len)
bool hcc_check_bt_queue(uint8_t queue_id)
enum _d2h_srv_msg_type d2h_srv_msg_type
@ H2D_MSG_PLAT_END
Definition hcc_cfg_comm.h:112
@ D2H_MSG_PLAT_END
Definition hcc_cfg_comm.h:97
Definition hcc_types.h:95