3e347a932ede8d1434e536473413afad11294df6
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / staging / vt6656 / rxtx.h
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
29 #ifndef __RXTX_H__
30 #define __RXTX_H__
31
32 #include "device.h"
33 #include "wcmd.h"
34
35 struct vnt_tx_buffer {
36         u8 byType;
37         u8 byPKTNO;
38         u16 wTxByteCount;
39         u32 adwTxKey[4];
40         u16 wFIFOCtl;
41         u16 wTimeStamp;
42         u16 wFragCtl;
43         u16 wReserved;
44 } __packed;
45
46 struct vnt_beacon_buffer {
47         u8 byType;
48         u8 byPKTNO;
49         u16 wTxByteCount;
50         u16 wFIFOCtl;
51         u16 wTimeStamp;
52 } __packed;
53
54 void vDMA0_tx_80211(struct vnt_private *, struct sk_buff *skb);
55 int nsDMA_tx_packet(struct vnt_private *, u32 uDMAIdx, struct sk_buff *skb);
56 CMD_STATUS csMgmt_xmit(struct vnt_private *, struct vnt_tx_mgmt *);
57 CMD_STATUS csBeacon_xmit(struct vnt_private *, struct vnt_tx_mgmt *);
58 int bRelayPacketSend(struct vnt_private *, u8 *pbySkbData, u32 uDataLen,
59         u32 uNodeIndex);
60
61 #endif /* __RXTX_H__ */