1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
19 #define DEFAULT_MSDU_LIFETIME_RES_64us 8000 /* 64us */
20 #define DEFAULT_MGN_LIFETIME_RES_64us 125 /* 64us */
22 /*--------------------- Export Definitions -------------------------*/
24 /*--------------------- Export Variables --------------------------*/
26 /*--------------------- Export Functions --------------------------*/
28 /* MIC HDR data header */
32 u8 mic_addr2[ETH_ALEN];
33 u8 ccmp_pn[IEEE80211_CCMP_PN_LEN];
42 u16 packing; /* packing to 48 bytes */
45 /* RsvTime buffer header */
46 struct vnt_rrv_time_rts {
47 __le16 rts_rrv_time_ba;
48 __le16 rts_rrv_time_aa;
49 __le16 rts_rrv_time_bb;
55 struct vnt_rrv_time_cts {
56 __le16 cts_rrv_time_ba;
62 struct vnt_rrv_time_ab {
68 struct vnt_tx_datahead_g {
69 struct vnt_phy_field b;
70 struct vnt_phy_field a;
73 __le16 time_stamp_off_b;
74 __le16 time_stamp_off_a;
77 struct vnt_tx_datahead_g_fb {
78 struct vnt_phy_field b;
79 struct vnt_phy_field a;
84 __le16 time_stamp_off_b;
85 __le16 time_stamp_off_a;
88 struct vnt_tx_datahead_ab {
89 struct vnt_phy_field ab;
91 __le16 time_stamp_off;
94 struct vnt_tx_datahead_a_fb {
95 struct vnt_phy_field a;
97 __le16 time_stamp_off;
102 /* RTS buffer header */
104 struct vnt_phy_field b;
105 struct vnt_phy_field a;
110 struct ieee80211_rts data;
111 } __packed __aligned(2);
113 struct vnt_rts_g_fb {
114 struct vnt_phy_field b;
115 struct vnt_phy_field a;
120 __le16 rts_duration_ba_f0;
121 __le16 rts_duration_aa_f0;
122 __le16 rts_duration_ba_f1;
123 __le16 rts_duration_aa_f1;
124 struct ieee80211_rts data;
125 } __packed __aligned(2);
128 struct vnt_phy_field ab;
131 struct ieee80211_rts data;
132 } __packed __aligned(2);
134 struct vnt_rts_a_fb {
135 struct vnt_phy_field a;
138 __le16 rts_duration_f0;
139 __le16 rts_duration_f1;
140 struct ieee80211_rts data;
141 } __packed __aligned(2);
143 /* CTS buffer header */
145 struct vnt_phy_field b;
148 struct ieee80211_cts data;
150 } __packed __aligned(2);
153 struct vnt_phy_field b;
156 __le16 cts_duration_ba_f0;
157 __le16 cts_duration_ba_f1;
158 struct ieee80211_cts data;
160 } __packed __aligned(2);
162 struct vnt_tx_fifo_head {
163 u8 tx_key[WLAN_KEY_LEN_CCMP];
170 struct vnt_tx_short_buf_head {
173 struct vnt_phy_field ab;
175 __le16 time_stamp_off;
178 int vnt_generate_fifo_header(struct vnt_private *priv, u32 dma_idx,
179 struct vnt_tx_desc *head_td, struct sk_buff *skb);
180 int vnt_beacon_make(struct vnt_private *priv, struct ieee80211_vif *vif);
181 int vnt_beacon_enable(struct vnt_private *priv, struct ieee80211_vif *vif,
182 struct ieee80211_bss_conf *conf);
184 #endif /* __RXTX_H__ */