hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/** @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_HWAMSDU_H_
#define _MAC_AX_HWAMSDU_H_
 
#include "../type.h"
#include "../mac_ax.h"
 
#define MAX_LENGTH_ENUM 7
#define HW_AMSDU_MACID_ENABLE 0x1
 
/**
 * @struct mac_ax_en_amsdu_cut
 * @brief mac_ax_en_amsdu_cut
 *
 * @var mac_ax_en_amsdu_cut::enable
 * Please Place Description here.
 * @var mac_ax_en_amsdu_cut::low_th
 * Please Place Description here.
 * @var mac_ax_en_amsdu_cut::high_th
 * Please Place Description here.
 * @var mac_ax_en_amsdu_cut::aligned
 * Please Place Description here.
 * @var mac_ax_en_amsdu_cut::rsvd0
 * Please Place Description here.
 */
struct mac_ax_en_amsdu_cut {
   /* dword0 */
   u32 enable: 1;
   u32 low_th: 8;
   u32 high_th: 16;
   u32 aligned: 2;
   u32 rsvd0: 5;
};
 
/**
 * @struct mac_ax_en_hwamsdu
 * @brief mac_ax_en_hwamsdu
 *
 * @var mac_ax_en_hwamsdu::enable
 * Please Place Description here.
 * @var mac_ax_en_hwamsdu::max_num
 * Please Place Description here.
 * @var mac_ax_en_hwamsdu::en_single_amsdu
 * Please Place Description here.
 * @var mac_ax_en_hwamsdu::en_last_amsdu_padding
 * Please Place Description here.
 * @var mac_ax_en_hwamsdu::rsvd0
 * Please Place Description here.
 */
struct mac_ax_en_hwamsdu {
   /* dword0 */
   u32 enable: 1;
   u32 max_num: 2;
   u32 en_single_amsdu:1;
   u32 en_last_amsdu_padding:1;
   u32 rsvd0: 27;
};
 
/**
 * @addtogroup Basic_TRX
 * @{
 * @addtogroup TX_ShortCut
 * @{
 */
 
/**
 * @brief mac_enable_hwmasdu
 *
 * @param *adapter
 * @param enable
 * @param max_num
 * @param en_single_amsdu
 * @param en_last_amsdu_padding
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_enable_hwamsdu(struct mac_ax_adapter *adapter,
              u8 enable,
              enum mac_ax_amsdu_pkt_num max_num,
              u8 en_single_amsdu,
              u8 en_last_amsdu_padding);
/**
 * @}
 * @}
 */
/**
 * @brief mac_hwamsdu_fwd_search_en
 *
 * @param *adapter
 * @param enable
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_hwamsdu_fwd_search_en(struct mac_ax_adapter *adapter, u8 enable);
/**
 * @}
 * @}
 */
/**
 * @brief mac_enable_hwmasdu
 *
 * @param *adapter
 * @param macid
 * @param enable
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_hwamsdu_macid_en(struct mac_ax_adapter *adapter, u8 macid, u8 enable);
/**
 * @}
 * @}
 */
/**
 * @brief mac_enable_hwmasdu
 *
 * @param *adapter
 * @param macid
 * @return Please Place Description here.
 * @retval u8
 */
u8 mac_hwamsdu_get_macid_en(struct mac_ax_adapter *adapter, u8 macid);
/**
 * @}
 * @}
 */
 
/**
 * @brief mac_enable_hwmasdu
 *
 * @param *adapter
 * @param macid
 * @param amsdu_max_len
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_hwamsdu_max_len(struct mac_ax_adapter *adapter, u8 macid, u8 amsdu_max_len);
/**
 * @}
 * @}
 */
 
/**
 * @brief mac_enable_hwmasdu
 *
 * @param *adapter
 * @param macid
 * @return Please Place Description here.
 * @retval u8
 */
u8 mac_hwamsdu_get_max_len(struct mac_ax_adapter *adapter, u8 macid);
/**
 * @}
 * @}
 */
 
#endif