hc
2024-08-16 62c46c9150c4afde7e5b25436263fddf79d66f0b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/** @file */
/******************************************************************************
 *
 * Copyright(c) 2019 Realtek Corporation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 ******************************************************************************/
 
#ifndef _MAC_AX_DBCC_H_
#define _MAC_AX_DBCC_H_
 
#include "../type.h"
#include "trxcfg.h"
#include "sta_sch.h"
 
/*--------------------Define -------------------------------------------*/
#define DBCC_INFO_SIZE sizeof(struct mac_ax_dbcc_info)
#define DBCC_WMM_LIST_SIZE 32
 
#define SCH_TX_EN_SIZE sizeof(struct mac_ax_sch_tx_en)
#define PPDU_RPT_CFG_SIZE sizeof(struct mac_ax_phy_rpt_cfg)
#define CHINFO_CFG_SIZE sizeof(struct mac_ax_phy_rpt_cfg)
 
#define DBCC_BAND_BIT BIT7
#define DBCC_PORT_MASK 0xF
#define DBCC_BP_INVALID 0xFF
 
/*--------------------Define MACRO--------------------------------------*/
/*--------------------Define Enum---------------------------------------*/
/*--------------------Define Struct-------------------------------------*/
/*--------------------Function Prototype--------------------------------*/
 
/**
 * @brief dbcc_info_init
 *
 * @param *adapter
 * @return Please Place Description here.
 * @retval u32
 */
u32 dbcc_info_init(struct mac_ax_adapter *adapter);
 
/**
 * @brief dbcc_info_exit
 *
 * @param *adapter
 * @return Please Place Description here.
 * @retval u32
 */
u32 dbcc_info_exit(struct mac_ax_adapter *adapter);
 
/**
 * @brief rst_dbcc_info
 *
 * @param *adapter
 * @return Please Place Description here.
 * @retval u32
 */
u32 rst_dbcc_info(struct mac_ax_adapter *adapter);
 
/**
 * @brief dbcc_wmm_add_macid
 *
 * @param *adapter
 * @param *info
 * @return Please Place Description here.
 * @retval u32
 */
u32 dbcc_wmm_add_macid(struct mac_ax_adapter *adapter,
              struct mac_ax_role_info *info);
 
/**
 * @brief dbcc_wmm_rm_macid
 *
 * @param *adapter
 * @param *info
 * @return Please Place Description here.
 * @retval u32
 */
u32 dbcc_wmm_rm_macid(struct mac_ax_adapter *adapter,
             struct mac_ax_role_info *info);
 
/**
 * @brief mac_dbcc_trx_ctrl
 *
 * @param *adapter
 * @param band
 * @param pause
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_dbcc_trx_ctrl(struct mac_ax_adapter *adapter,
             enum mac_ax_band band, u8 pause);
 
/**
 * @brief mac_dbcc_enable
 *
 * @param *adapter
 * @param *info
 * @param dbcc_en
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_dbcc_enable(struct mac_ax_adapter *adapter,
           struct mac_ax_trx_info *info, u8 dbcc_en);
 
/**
 * @brief mac_dbcc_move_wmm
 *
 * @param *adapter
 * @param *info
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_dbcc_move_wmm(struct mac_ax_adapter *adapter,
             struct mac_ax_role_info *info);
 
#endif