staging: vt6656: desc.h remove typedef tagSTxDataHead_g_FB to new structure in rxtx.h
[deliverable/linux.git] / drivers / staging / vt6656 / rxtx.h
CommitLineData
92b96797
FB
1/*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * File: rxtx.h
20 *
21 * Purpose:
22 *
23 * Author: Jerry Chen
24 *
25 * Date: Jun. 27, 2002
26 *
27 */
28
92b96797
FB
29#ifndef __RXTX_H__
30#define __RXTX_H__
31
92b96797 32#include "device.h"
92b96797 33#include "wcmd.h"
92b96797 34
6398a59b
MP
35/* RsvTime buffer header */
36struct vnt_rrv_time_rts {
37 u16 wRTSTxRrvTime_ba;
38 u16 wRTSTxRrvTime_aa;
39 u16 wRTSTxRrvTime_bb;
40 u16 wReserved;
41 u16 wTxRrvTime_b;
42 u16 wTxRrvTime_a;
43} __packed;
44
4f990057
MP
45struct vnt_rrv_time_cts {
46 u16 wCTSTxRrvTime_ba;
47 u16 wReserved;
48 u16 wTxRrvTime_b;
49 u16 wTxRrvTime_a;
50} __packed;
51
976467d3
MP
52struct vnt_rrv_time_ab {
53 u16 wRTSTxRrvTime;
54 u16 wTxRrvTime;
55} __packed;
56
7e60a3de
MP
57/* TX data header */
58struct vnt_tx_datahead_g {
59 u8 bySignalField_b;
60 u8 byServiceField_b;
61 u16 wTransmitLength_b;
62 u8 bySignalField_a;
63 u8 byServiceField_a;
64 u16 wTransmitLength_a;
65 u16 wDuration_b;
66 u16 wDuration_a;
67 u16 wTimeStampOff_b;
68 u16 wTimeStampOff_a;
69} __packed;
70
7c05c545
MP
71struct vnt_tx_datahead_g_fb {
72 u8 bySignalField_b;
73 u8 byServiceField_b;
74 u16 wTransmitLength_b;
75 u8 bySignalField_a;
76 u8 byServiceField_a;
77 u16 wTransmitLength_a;
78 u16 wDuration_b;
79 u16 wDuration_a;
80 u16 wDuration_a_f0;
81 u16 wDuration_a_f1;
82 u16 wTimeStampOff_b;
83 u16 wTimeStampOff_a;
84} __packed;
85
c521cb58
MP
86/* RTS buffer header */
87struct vnt_rts_g {
88 u8 bySignalField_b;
89 u8 byServiceField_b;
90 u16 wTransmitLength_b;
91 u8 bySignalField_a;
92 u8 byServiceField_a;
93 u16 wTransmitLength_a;
94 u16 wDuration_ba;
95 u16 wDuration_aa;
96 u16 wDuration_bb;
97 u16 wReserved;
98 struct ieee80211_rts data;
99} __packed;
100
101struct vnt_rts_g_fb {
102 u8 bySignalField_b;
103 u8 byServiceField_b;
104 u16 wTransmitLength_b;
105 u8 bySignalField_a;
106 u8 byServiceField_a;
107 u16 wTransmitLength_a;
108 u16 wDuration_ba;
109 u16 wDuration_aa;
110 u16 wDuration_bb;
111 u16 wReserved;
112 u16 wRTSDuration_ba_f0;
113 u16 wRTSDuration_aa_f0;
114 u16 wRTSDuration_ba_f1;
115 u16 wRTSDuration_aa_f1;
116 struct ieee80211_rts data;
117} __packed;
118
119struct vnt_rts_ab {
120 u8 bySignalField;
121 u8 byServiceField;
122 u16 wTransmitLength;
123 u16 wDuration;
124 u16 wReserved;
125 struct ieee80211_rts data;
126} __packed;
127
128struct vnt_rts_a_fb {
129 u8 bySignalField;
130 u8 byServiceField;
131 u16 wTransmitLength;
132 u16 wDuration;
133 u16 wReserved;
134 u16 wRTSDuration_f0;
135 u16 wRTSDuration_f1;
136 struct ieee80211_rts data;
137} __packed;
138
f0c5ba28
MP
139/* CTS buffer header */
140struct vnt_cts {
141 u8 bySignalField_b;
142 u8 byServiceField_b;
143 u16 wTransmitLength_b;
144 u16 wDuration_ba;
145 u16 wReserved;
146 struct ieee80211_cts data;
147 u16 reserved2;
148} __packed;
149
150struct vnt_cts_fb {
151 u8 bySignalField_b;
152 u8 byServiceField_b;
153 u16 wTransmitLength_b;
154 u16 wDuration_ba;
155 u16 wReserved;
156 u16 wCTSDuration_ba_f0;
157 u16 wCTSDuration_ba_f1;
158 struct ieee80211_cts data;
159 u16 reserved2;
160} __packed;
161
f39c0d8e
MP
162struct vnt_tx_buffer {
163 u8 byType;
164 u8 byPKTNO;
165 u16 wTxByteCount;
ed74395c 166 u32 adwTxKey[4];
f39c0d8e
MP
167 u16 wFIFOCtl;
168 u16 wTimeStamp;
169 u16 wFragCtl;
170 u16 wReserved;
171} __packed;
92b96797 172
01f865ba
MP
173struct vnt_beacon_buffer {
174 u8 byType;
175 u8 byPKTNO;
176 u16 wTxByteCount;
177 u16 wFIFOCtl;
178 u16 wTimeStamp;
179} __packed;
92b96797 180
d56131de
MP
181void vDMA0_tx_80211(struct vnt_private *, struct sk_buff *skb);
182int nsDMA_tx_packet(struct vnt_private *, u32 uDMAIdx, struct sk_buff *skb);
183CMD_STATUS csMgmt_xmit(struct vnt_private *, struct vnt_tx_mgmt *);
184CMD_STATUS csBeacon_xmit(struct vnt_private *, struct vnt_tx_mgmt *);
185int bRelayPacketSend(struct vnt_private *, u8 *pbySkbData, u32 uDataLen,
186 u32 uNodeIndex);
92b96797 187
e7b07d1d 188#endif /* __RXTX_H__ */
This page took 0.480226 seconds and 5 git commands to generate.