1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2009-2012 Realtek Corporation.*/ 3 4 #ifndef __RTL92CU_TRX_H__ 5 #define __RTL92CU_TRX_H__ 6 7 #define RTL92C_USB_BULK_IN_NUM 1 8 #define RTL92C_NUM_RX_URBS 8 9 #define RTL92C_NUM_TX_URBS 32 10 11 #define RTL92C_SIZE_MAX_RX_BUFFER 15360 /* 8192 */ 12 #define RX_DRV_INFO_SIZE_UNIT 8 13 14 #define RTL_AGG_ON 1 15 16 enum usb_rx_agg_mode { 17 USB_RX_AGG_DISABLE, 18 USB_RX_AGG_DMA, 19 USB_RX_AGG_USB, 20 USB_RX_AGG_DMA_USB 21 }; 22 23 #define TX_SELE_HQ BIT(0) /* High Queue */ 24 #define TX_SELE_LQ BIT(1) /* Low Queue */ 25 #define TX_SELE_NQ BIT(2) /* Normal Queue */ 26 27 #define RTL_USB_TX_AGG_NUM_DESC 5 28 29 #define RTL_USB_RX_AGG_PAGE_NUM 4 30 #define RTL_USB_RX_AGG_PAGE_TIMEOUT 3 31 32 #define RTL_USB_RX_AGG_BLOCK_NUM 5 33 #define RTL_USB_RX_AGG_BLOCK_TIMEOUT 3 34 35 /*======================== rx status =========================================*/ 36 37 struct rx_drv_info_92c { 38 /* 39 * Driver info contain PHY status and other variabel size info 40 * PHY Status content as below 41 */ 42 43 /* DWORD 0 */ 44 u8 gain_trsw[4]; 45 46 /* DWORD 1 */ 47 u8 pwdb_all; 48 u8 cfosho[4]; 49 50 /* DWORD 2 */ 51 u8 cfotail[4]; 52 53 /* DWORD 3 */ 54 s8 rxevm[2]; 55 s8 rxsnr[4]; 56 57 /* DWORD 4 */ 58 u8 pdsnr[2]; 59 60 /* DWORD 5 */ 61 u8 csi_current[2]; 62 u8 csi_target[2]; 63 64 /* DWORD 6 */ 65 u8 sigevm; 66 u8 max_ex_pwr; 67 u8 ex_intf_flag:1; 68 u8 sgi_en:1; 69 u8 rxsc:2; 70 u8 reserve:4; 71 } __packed; 72 73 /* macros to read various fields in RX descriptor */ 74 75 /* DWORD 0 */ 76 #define GET_RX_DESC_PKT_LEN(__rxdesc) \ 77 LE_BITS_TO_4BYTE((__rxdesc), 0, 14) 78 #define GET_RX_DESC_CRC32(__rxdesc) \ 79 LE_BITS_TO_4BYTE(__rxdesc, 14, 1) 80 #define GET_RX_DESC_ICV(__rxdesc) \ 81 LE_BITS_TO_4BYTE(__rxdesc, 15, 1) 82 #define GET_RX_DESC_DRVINFO_SIZE(__rxdesc) \ 83 LE_BITS_TO_4BYTE(__rxdesc, 16, 4) 84 #define GET_RX_DESC_SECURITY(__rxdesc) \ 85 LE_BITS_TO_4BYTE(__rxdesc, 20, 3) 86 #define GET_RX_DESC_QOS(__rxdesc) \ 87 LE_BITS_TO_4BYTE(__rxdesc, 23, 1) 88 #define GET_RX_DESC_SHIFT(__rxdesc) \ 89 LE_BITS_TO_4BYTE(__rxdesc, 24, 2) 90 #define GET_RX_DESC_PHY_STATUS(__rxdesc) \ 91 LE_BITS_TO_4BYTE(__rxdesc, 26, 1) 92 #define GET_RX_DESC_SWDEC(__rxdesc) \ 93 LE_BITS_TO_4BYTE(__rxdesc, 27, 1) 94 #define GET_RX_DESC_LAST_SEG(__rxdesc) \ 95 LE_BITS_TO_4BYTE(__rxdesc, 28, 1) 96 #define GET_RX_DESC_FIRST_SEG(__rxdesc) \ 97 LE_BITS_TO_4BYTE(__rxdesc, 29, 1) 98 #define GET_RX_DESC_EOR(__rxdesc) \ 99 LE_BITS_TO_4BYTE(__rxdesc, 30, 1) 100 #define GET_RX_DESC_OWN(__rxdesc) \ 101 LE_BITS_TO_4BYTE(__rxdesc, 31, 1) 102 103 /* DWORD 1 */ 104 #define GET_RX_DESC_MACID(__rxdesc) \ 105 LE_BITS_TO_4BYTE(__rxdesc + 4, 0, 5) 106 #define GET_RX_DESC_TID(__rxdesc) \ 107 LE_BITS_TO_4BYTE(__rxdesc + 4, 5, 4) 108 #define GET_RX_DESC_PAGGR(__rxdesc) \ 109 LE_BITS_TO_4BYTE(__rxdesc + 4, 14, 1) 110 #define GET_RX_DESC_FAGGR(__rxdesc) \ 111 LE_BITS_TO_4BYTE(__rxdesc + 4, 15, 1) 112 #define GET_RX_DESC_A1_FIT(__rxdesc) \ 113 LE_BITS_TO_4BYTE(__rxdesc + 4, 16, 4) 114 #define GET_RX_DESC_A2_FIT(__rxdesc) \ 115 LE_BITS_TO_4BYTE(__rxdesc + 4, 20, 4) 116 #define GET_RX_DESC_PAM(__rxdesc) \ 117 LE_BITS_TO_4BYTE(__rxdesc + 4, 24, 1) 118 #define GET_RX_DESC_PWR(__rxdesc) \ 119 LE_BITS_TO_4BYTE(__rxdesc + 4, 25, 1) 120 #define GET_RX_DESC_MORE_DATA(__rxdesc) \ 121 LE_BITS_TO_4BYTE(__rxdesc + 4, 26, 1) 122 #define GET_RX_DESC_MORE_FRAG(__rxdesc) \ 123 LE_BITS_TO_4BYTE(__rxdesc + 4, 27, 1) 124 #define GET_RX_DESC_TYPE(__rxdesc) \ 125 LE_BITS_TO_4BYTE(__rxdesc + 4, 28, 2) 126 #define GET_RX_DESC_MC(__rxdesc) \ 127 LE_BITS_TO_4BYTE(__rxdesc + 4, 30, 1) 128 #define GET_RX_DESC_BC(__rxdesc) \ 129 LE_BITS_TO_4BYTE(__rxdesc + 4, 31, 1) 130 131 /* DWORD 2 */ 132 #define GET_RX_DESC_SEQ(__rxdesc) \ 133 LE_BITS_TO_4BYTE(__rxdesc + 8, 0, 12) 134 #define GET_RX_DESC_FRAG(__rxdesc) \ 135 LE_BITS_TO_4BYTE(__rxdesc + 8, 12, 4) 136 #define GET_RX_DESC_USB_AGG_PKTNUM(__rxdesc) \ 137 LE_BITS_TO_4BYTE(__rxdesc + 8, 16, 8) 138 #define GET_RX_DESC_NEXT_IND(__rxdesc) \ 139 LE_BITS_TO_4BYTE(__rxdesc + 8, 30, 1) 140 141 /* DWORD 3 */ 142 #define GET_RX_DESC_RX_MCS(__rxdesc) \ 143 LE_BITS_TO_4BYTE(__rxdesc + 12, 0, 6) 144 #define GET_RX_DESC_RX_HT(__rxdesc) \ 145 LE_BITS_TO_4BYTE(__rxdesc + 12, 6, 1) 146 #define GET_RX_DESC_AMSDU(__rxdesc) \ 147 LE_BITS_TO_4BYTE(__rxdesc + 12, 7, 1) 148 #define GET_RX_DESC_SPLCP(__rxdesc) \ 149 LE_BITS_TO_4BYTE(__rxdesc + 12, 8, 1) 150 #define GET_RX_DESC_BW(__rxdesc) \ 151 LE_BITS_TO_4BYTE(__rxdesc + 12, 9, 1) 152 #define GET_RX_DESC_HTC(__rxdesc) \ 153 LE_BITS_TO_4BYTE(__rxdesc + 12, 10, 1) 154 #define GET_RX_DESC_TCP_CHK_RPT(__rxdesc) \ 155 LE_BITS_TO_4BYTE(__rxdesc + 12, 11, 1) 156 #define GET_RX_DESC_IP_CHK_RPT(__rxdesc) \ 157 LE_BITS_TO_4BYTE(__rxdesc + 12, 12, 1) 158 #define GET_RX_DESC_TCP_CHK_VALID(__rxdesc) \ 159 LE_BITS_TO_4BYTE(__rxdesc + 12, 13, 1) 160 #define GET_RX_DESC_HWPC_ERR(__rxdesc) \ 161 LE_BITS_TO_4BYTE(__rxdesc + 12, 14, 1) 162 #define GET_RX_DESC_HWPC_IND(__rxdesc) \ 163 LE_BITS_TO_4BYTE(__rxdesc + 12, 15, 1) 164 #define GET_RX_DESC_IV0(__rxdesc) \ 165 LE_BITS_TO_4BYTE(__rxdesc + 12, 16, 16) 166 167 /* DWORD 4 */ 168 #define GET_RX_DESC_IV1(__rxdesc) \ 169 LE_BITS_TO_4BYTE(__rxdesc + 16, 0, 32) 170 171 /* DWORD 5 */ 172 #define GET_RX_DESC_TSFL(__rxdesc) \ 173 LE_BITS_TO_4BYTE(__rxdesc + 20, 0, 32) 174 175 /*======================= tx desc ============================================*/ 176 177 /* macros to set various fields in TX descriptor */ 178 179 /* Dword 0 */ 180 #define SET_TX_DESC_PKT_SIZE(__txdesc, __value) \ 181 SET_BITS_TO_LE_4BYTE(__txdesc, 0, 16, __value) 182 #define SET_TX_DESC_OFFSET(__txdesc, __value) \ 183 SET_BITS_TO_LE_4BYTE(__txdesc, 16, 8, __value) 184 #define SET_TX_DESC_BMC(__txdesc, __value) \ 185 SET_BITS_TO_LE_4BYTE(__txdesc, 24, 1, __value) 186 #define SET_TX_DESC_HTC(__txdesc, __value) \ 187 SET_BITS_TO_LE_4BYTE(__txdesc, 25, 1, __value) 188 #define SET_TX_DESC_LAST_SEG(__txdesc, __value) \ 189 SET_BITS_TO_LE_4BYTE(__txdesc, 26, 1, __value) 190 #define SET_TX_DESC_FIRST_SEG(__txdesc, __value) \ 191 SET_BITS_TO_LE_4BYTE(__txdesc, 27, 1, __value) 192 #define SET_TX_DESC_LINIP(__txdesc, __value) \ 193 SET_BITS_TO_LE_4BYTE(__txdesc, 28, 1, __value) 194 #define SET_TX_DESC_NO_ACM(__txdesc, __value) \ 195 SET_BITS_TO_LE_4BYTE(__txdesc, 29, 1, __value) 196 #define SET_TX_DESC_GF(__txdesc, __value) \ 197 SET_BITS_TO_LE_4BYTE(__txdesc, 30, 1, __value) 198 #define SET_TX_DESC_OWN(__txdesc, __value) \ 199 SET_BITS_TO_LE_4BYTE(__txdesc, 31, 1, __value) 200 201 /* Dword 1 */ 202 #define SET_TX_DESC_MACID(__txdesc, __value) \ 203 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 0, 5, __value) 204 #define SET_TX_DESC_AGG_ENABLE(__txdesc, __value) \ 205 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 5, 1, __value) 206 #define SET_TX_DESC_AGG_BREAK(__txdesc, __value) \ 207 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 6, 1, __value) 208 #define SET_TX_DESC_RDG_ENABLE(__txdesc, __value) \ 209 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 7, 1, __value) 210 #define SET_TX_DESC_QUEUE_SEL(__txdesc, __value) \ 211 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 8, 5, __value) 212 #define SET_TX_DESC_RDG_NAV_EXT(__txdesc, __value) \ 213 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 13, 1, __value) 214 #define SET_TX_DESC_LSIG_TXOP_EN(__txdesc, __value) \ 215 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 14, 1, __value) 216 #define SET_TX_DESC_PIFS(__txdesc, __value) \ 217 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 15, 1, __value) 218 #define SET_TX_DESC_RATE_ID(__txdesc, __value) \ 219 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 16, 4, __value) 220 #define SET_TX_DESC_RA_BRSR_ID(__txdesc, __value) \ 221 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 16, 4, __value) 222 #define SET_TX_DESC_NAV_USE_HDR(__txdesc, __value) \ 223 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 20, 1, __value) 224 #define SET_TX_DESC_EN_DESC_ID(__txdesc, __value) \ 225 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 21, 1, __value) 226 #define SET_TX_DESC_SEC_TYPE(__txdesc, __value) \ 227 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 22, 2, __value) 228 #define SET_TX_DESC_PKT_OFFSET(__txdesc, __value) \ 229 SET_BITS_TO_LE_4BYTE(__txdesc + 4, 26, 5, __value) 230 231 /* Dword 2 */ 232 #define SET_TX_DESC_RTS_RC(__txdesc, __value) \ 233 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 0, 6, __value) 234 #define SET_TX_DESC_DATA_RC(__txdesc, __value) \ 235 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 6, 6, __value) 236 #define SET_TX_DESC_BAR_RTY_TH(__txdesc, __value) \ 237 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 14, 2, __value) 238 #define SET_TX_DESC_MORE_FRAG(__txdesc, __value) \ 239 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 17, 1, __value) 240 #define SET_TX_DESC_RAW(__txdesc, __value) \ 241 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 18, 1, __value) 242 #define SET_TX_DESC_CCX(__txdesc, __value) \ 243 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 19, 1, __value) 244 #define SET_TX_DESC_AMPDU_DENSITY(__txdesc, __value) \ 245 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 20, 3, __value) 246 #define SET_TX_DESC_ANTSEL_A(__txdesc, __value) \ 247 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 24, 1, __value) 248 #define SET_TX_DESC_ANTSEL_B(__txdesc, __value) \ 249 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 25, 1, __value) 250 #define SET_TX_DESC_TX_ANT_CCK(__txdesc, __value) \ 251 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 26, 2, __value) 252 #define SET_TX_DESC_TX_ANTL(__txdesc, __value) \ 253 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 28, 2, __value) 254 #define SET_TX_DESC_TX_ANT_HT(__txdesc, __value) \ 255 SET_BITS_TO_LE_4BYTE(__txdesc + 8, 30, 2, __value) 256 257 /* Dword 3 */ 258 #define SET_TX_DESC_NEXT_HEAP_PAGE(__txdesc, __value) \ 259 SET_BITS_TO_LE_4BYTE(__txdesc + 12, 0, 8, __value) 260 #define SET_TX_DESC_TAIL_PAGE(__txdesc, __value) \ 261 SET_BITS_TO_LE_4BYTE(__txdesc + 12, 8, 8, __value) 262 #define SET_TX_DESC_SEQ(__txdesc, __value) \ 263 SET_BITS_TO_LE_4BYTE(__txdesc + 12, 16, 12, __value) 264 #define SET_TX_DESC_PKT_ID(__txdesc, __value) \ 265 SET_BITS_TO_LE_4BYTE(__txdesc + 12, 28, 4, __value) 266 267 /* Dword 4 */ 268 #define SET_TX_DESC_RTS_RATE(__txdesc, __value) \ 269 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 0, 5, __value) 270 #define SET_TX_DESC_AP_DCFE(__txdesc, __value) \ 271 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 5, 1, __value) 272 #define SET_TX_DESC_QOS(__txdesc, __value) \ 273 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 6, 1, __value) 274 #define SET_TX_DESC_HWSEQ_EN(__txdesc, __value) \ 275 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 7, 1, __value) 276 #define SET_TX_DESC_USE_RATE(__txdesc, __value) \ 277 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 8, 1, __value) 278 #define SET_TX_DESC_DISABLE_RTS_FB(__txdesc, __value) \ 279 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 9, 1, __value) 280 #define SET_TX_DESC_DISABLE_FB(__txdesc, __value) \ 281 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 10, 1, __value) 282 #define SET_TX_DESC_CTS2SELF(__txdesc, __value) \ 283 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 11, 1, __value) 284 #define SET_TX_DESC_RTS_ENABLE(__txdesc, __value) \ 285 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 12, 1, __value) 286 #define SET_TX_DESC_HW_RTS_ENABLE(__txdesc, __value) \ 287 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 13, 1, __value) 288 #define SET_TX_DESC_WAIT_DCTS(__txdesc, __value) \ 289 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 18, 1, __value) 290 #define SET_TX_DESC_CTS2AP_EN(__txdesc, __value) \ 291 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 19, 1, __value) 292 #define SET_TX_DESC_DATA_SC(__txdesc, __value) \ 293 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 20, 2, __value) 294 #define SET_TX_DESC_DATA_STBC(__txdesc, __value) \ 295 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 22, 2, __value) 296 #define SET_TX_DESC_DATA_SHORT(__txdesc, __value) \ 297 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 24, 1, __value) 298 #define SET_TX_DESC_DATA_BW(__txdesc, __value) \ 299 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 25, 1, __value) 300 #define SET_TX_DESC_RTS_SHORT(__txdesc, __value) \ 301 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 26, 1, __value) 302 #define SET_TX_DESC_RTS_BW(__txdesc, __value) \ 303 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 27, 1, __value) 304 #define SET_TX_DESC_RTS_SC(__txdesc, __value) \ 305 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 28, 2, __value) 306 #define SET_TX_DESC_RTS_STBC(__txdesc, __value) \ 307 SET_BITS_TO_LE_4BYTE(__txdesc + 16, 30, 2, __value) 308 309 /* Dword 5 */ 310 #define SET_TX_DESC_TX_RATE(__pdesc, __val) \ 311 SET_BITS_TO_LE_4BYTE(__pdesc + 20, 0, 6, __val) 312 #define SET_TX_DESC_DATA_SHORTGI(__pdesc, __val) \ 313 SET_BITS_TO_LE_4BYTE(__pdesc + 20, 6, 1, __val) 314 #define SET_TX_DESC_CCX_TAG(__pdesc, __val) \ 315 SET_BITS_TO_LE_4BYTE(__pdesc + 20, 7, 1, __val) 316 #define SET_TX_DESC_DATA_RATE_FB_LIMIT(__txdesc, __value) \ 317 SET_BITS_TO_LE_4BYTE(__txdesc + 20, 8, 5, __value) 318 #define SET_TX_DESC_RTS_RATE_FB_LIMIT(__txdesc, __value) \ 319 SET_BITS_TO_LE_4BYTE(__txdesc + 20, 13, 4, __value) 320 #define SET_TX_DESC_RETRY_LIMIT_ENABLE(__txdesc, __value) \ 321 SET_BITS_TO_LE_4BYTE(__txdesc + 20, 17, 1, __value) 322 #define SET_TX_DESC_DATA_RETRY_LIMIT(__txdesc, __value) \ 323 SET_BITS_TO_LE_4BYTE(__txdesc + 20, 18, 6, __value) 324 #define SET_TX_DESC_USB_TXAGG_NUM(__txdesc, __value) \ 325 SET_BITS_TO_LE_4BYTE(__txdesc + 20, 24, 8, __value) 326 327 /* Dword 6 */ 328 #define SET_TX_DESC_TXAGC_A(__txdesc, __value) \ 329 SET_BITS_TO_LE_4BYTE(__txdesc + 24, 0, 5, __value) 330 #define SET_TX_DESC_TXAGC_B(__txdesc, __value) \ 331 SET_BITS_TO_LE_4BYTE(__txdesc + 24, 5, 5, __value) 332 #define SET_TX_DESC_USB_MAX_LEN(__txdesc, __value) \ 333 SET_BITS_TO_LE_4BYTE(__txdesc + 24, 10, 1, __value) 334 #define SET_TX_DESC_MAX_AGG_NUM(__txdesc, __value) \ 335 SET_BITS_TO_LE_4BYTE(__txdesc + 24, 11, 5, __value) 336 #define SET_TX_DESC_MCSG1_MAX_LEN(__txdesc, __value) \ 337 SET_BITS_TO_LE_4BYTE(__txdesc + 24, 16, 4, __value) 338 #define SET_TX_DESC_MCSG2_MAX_LEN(__txdesc, __value) \ 339 SET_BITS_TO_LE_4BYTE(__txdesc + 24, 20, 4, __value) 340 #define SET_TX_DESC_MCSG3_MAX_LEN(__txdesc, __value) \ 341 SET_BITS_TO_LE_4BYTE(__txdesc + 24, 24, 4, __value) 342 #define SET_TX_DESC_MCSG7_MAX_LEN(__txdesc, __value) \ 343 SET_BITS_TO_LE_4BYTE(__txdesc + 24, 28, 4, __value) 344 345 /* Dword 7 */ 346 #define SET_TX_DESC_TX_DESC_CHECKSUM(__txdesc, __value) \ 347 SET_BITS_TO_LE_4BYTE(__txdesc + 28, 0, 16, __value) 348 #define SET_TX_DESC_MCSG4_MAX_LEN(__txdesc, __value) \ 349 SET_BITS_TO_LE_4BYTE(__txdesc + 28, 16, 4, __value) 350 #define SET_TX_DESC_MCSG5_MAX_LEN(__txdesc, __value) \ 351 SET_BITS_TO_LE_4BYTE(__txdesc + 28, 20, 4, __value) 352 #define SET_TX_DESC_MCSG6_MAX_LEN(__txdesc, __value) \ 353 SET_BITS_TO_LE_4BYTE(__txdesc + 28, 24, 4, __value) 354 #define SET_TX_DESC_MCSG15_MAX_LEN(__txdesc, __value) \ 355 SET_BITS_TO_LE_4BYTE(__txdesc + 28, 28, 4, __value) 356 357 int rtl8192cu_endpoint_mapping(struct ieee80211_hw *hw); 358 u16 rtl8192cu_mq_to_hwq(__le16 fc, u16 mac80211_queue_index); 359 bool rtl92cu_rx_query_desc(struct ieee80211_hw *hw, 360 struct rtl_stats *stats, 361 struct ieee80211_rx_status *rx_status, 362 u8 *p_desc, struct sk_buff *skb); 363 void rtl8192cu_rx_hdl(struct ieee80211_hw *hw, struct sk_buff * skb); 364 void rtl8192c_tx_cleanup(struct ieee80211_hw *hw, struct sk_buff *skb); 365 int rtl8192c_tx_post_hdl(struct ieee80211_hw *hw, struct urb *urb, 366 struct sk_buff *skb); 367 struct sk_buff *rtl8192c_tx_aggregate_hdl(struct ieee80211_hw *, 368 struct sk_buff_head *); 369 void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw, 370 struct ieee80211_hdr *hdr, u8 *pdesc_tx, 371 u8 *pbd_desc_tx, struct ieee80211_tx_info *info, 372 struct ieee80211_sta *sta, 373 struct sk_buff *skb, 374 u8 queue_index, 375 struct rtl_tcb_desc *tcb_desc); 376 void rtl92cu_fill_fake_txdesc(struct ieee80211_hw *hw, u8 *pdesc, 377 u32 buffer_len, bool ispspoll); 378 void rtl92cu_tx_fill_cmddesc(struct ieee80211_hw *hw, 379 u8 *pdesc, bool b_firstseg, 380 bool b_lastseg, struct sk_buff *skb); 381 382 #endif 383