2 * Copyright (c) 2013 Eugene Krasnikov <k.eugene.e@gmail.com>
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 #include <linux/etherdevice.h>
23 /* TODO describe all properties */
24 #define WCN36XX_802_11_HEADER_LEN 24
25 #define WCN36XX_BMU_WQ_TX 25
28 #define WCN36XX_TX_B_WQ_ID 0xA
29 #define WCN36XX_TX_U_WQ_ID 0x9
31 #define WCN36XX_BD_RATE_DATA 0
32 #define WCN36XX_BD_RATE_MGMT 2
33 #define WCN36XX_BD_RATE_CTRL 3
35 enum wcn36xx_txbd_ssn_type {
36 WCN36XX_TXBD_SSN_FILL_HOST = 0,
37 WCN36XX_TXBD_SSN_FILL_DPU_NON_QOS = 1,
38 WCN36XX_TXBD_SSN_FILL_DPU_QOS = 2,
53 u32 mpdu_header_off:8;
54 u32 mpdu_header_len:8;
64 struct wcn36xx_rx_bd {
83 struct wcn36xx_pdu pdu;
105 u32 reorder_slot_id:6;
106 u32 reorder_fwd_id:6;
113 u32 fr_type_subtype:8;
126 struct wcn36xx_tx_bd {
139 struct wcn36xx_pdu pdu;
154 /*u32 tcp_udp_start_off:10;
162 int wcn36xx_rx_skb(struct wcn36xx *wcn, struct sk_buff *skb);
163 int wcn36xx_start_tx(struct wcn36xx *wcn,
164 struct wcn36xx_sta *sta_priv,
165 struct sk_buff *skb);
167 #endif /* _TXRX_H_ */