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 */
23 /*--------------------- Export Definitions -------------------------*/
25 /*--------------------- Export Variables --------------------------*/
27 /*--------------------- Export Functions --------------------------*/
29 /* MIC HDR data header */
33 u8 mic_addr2[ETH_ALEN];
34 u8 ccmp_pn[IEEE80211_CCMP_PN_LEN];
43 u16 packing; /* packing to 48 bytes */
46 /* RsvTime buffer header */
47 struct vnt_rrv_time_rts {
48 __le16 rts_rrv_time_ba;
49 __le16 rts_rrv_time_aa;
50 __le16 rts_rrv_time_bb;
56 struct vnt_rrv_time_cts {
57 __le16 cts_rrv_time_ba;
63 struct vnt_rrv_time_ab {
69 struct vnt_tx_datahead_g {
70 struct vnt_phy_field b;
71 struct vnt_phy_field a;
74 __le16 time_stamp_off_b;
75 __le16 time_stamp_off_a;
78 struct vnt_tx_datahead_g_fb {
79 struct vnt_phy_field b;
80 struct vnt_phy_field a;
85 __le16 time_stamp_off_b;
86 __le16 time_stamp_off_a;
89 struct vnt_tx_datahead_ab {
90 struct vnt_phy_field ab;
92 __le16 time_stamp_off;
95 struct vnt_tx_datahead_a_fb {
96 struct vnt_phy_field a;
98 __le16 time_stamp_off;
103 /* RTS buffer header */
105 struct vnt_phy_field b;
106 struct vnt_phy_field a;
111 struct ieee80211_rts data;
112 } __packed __aligned(2);
114 struct vnt_rts_g_fb {
115 struct vnt_phy_field b;
116 struct vnt_phy_field a;
121 __le16 rts_duration_ba_f0;
122 __le16 rts_duration_aa_f0;
123 __le16 rts_duration_ba_f1;
124 __le16 rts_duration_aa_f1;
125 struct ieee80211_rts data;
126 } __packed __aligned(2);
129 struct vnt_phy_field ab;
132 struct ieee80211_rts data;
133 } __packed __aligned(2);
135 struct vnt_rts_a_fb {
136 struct vnt_phy_field a;
139 __le16 rts_duration_f0;
140 __le16 rts_duration_f1;
141 struct ieee80211_rts data;
142 } __packed __aligned(2);
144 /* CTS buffer header */
146 struct vnt_phy_field b;
149 struct ieee80211_cts data;
151 } __packed __aligned(2);
154 struct vnt_phy_field b;
157 __le16 cts_duration_ba_f0;
158 __le16 cts_duration_ba_f1;
159 struct ieee80211_cts data;
161 } __packed __aligned(2);
163 struct vnt_tx_fifo_head {
164 u8 tx_key[WLAN_KEY_LEN_CCMP];
171 struct vnt_tx_short_buf_head {
174 struct vnt_phy_field ab;
176 __le16 time_stamp_off;
179 int vnt_generate_fifo_header(struct vnt_private *priv, u32 dma_idx,
180 struct vnt_tx_desc *head_td, struct sk_buff *skb);
181 int vnt_beacon_make(struct vnt_private *priv, struct ieee80211_vif *vif);
182 int vnt_beacon_enable(struct vnt_private *priv, struct ieee80211_vif *vif,
183 struct ieee80211_bss_conf *conf);
185 #endif /* __RXTX_H__ */