blob: bd1f9e2a048780a344dca3e1dad743430da3ff0a [file] [log] [blame]
Forest Bond92b96792009-06-13 07:38:31 -04001/*
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
Forest Bond92b96792009-06-13 07:38:31 -040029#ifndef __RXTX_H__
30#define __RXTX_H__
31
Forest Bond92b96792009-06-13 07:38:31 -040032#include "device.h"
Forest Bond92b96792009-06-13 07:38:31 -040033#include "wcmd.h"
Forest Bond92b96792009-06-13 07:38:31 -040034
Malcolm Priestleyf39c0d82013-08-15 19:34:37 +010035struct vnt_tx_buffer {
36 u8 byType;
37 u8 byPKTNO;
38 u16 wTxByteCount;
Malcolm Priestleyed743952012-11-11 15:34:51 +000039 u32 adwTxKey[4];
Malcolm Priestleyf39c0d82013-08-15 19:34:37 +010040 u16 wFIFOCtl;
41 u16 wTimeStamp;
42 u16 wFragCtl;
43 u16 wReserved;
44} __packed;
Forest Bond92b96792009-06-13 07:38:31 -040045
Forest Bond92b96792009-06-13 07:38:31 -040046typedef struct tagSBEACON_BUFFER
47{
Andres Moreb902fbf2013-02-25 20:32:51 -050048 u8 byType;
49 u8 byPKTNO;
Andres More3eaca0d2013-02-25 20:32:52 -050050 u16 wTxByteCount;
Forest Bond92b96792009-06-13 07:38:31 -040051
Andres More3eaca0d2013-02-25 20:32:52 -050052 u16 wFIFOCtl;
53 u16 wTimeStamp;
Malcolm Priestley629a9e62013-08-13 19:47:08 +010054} __packed BEACON_BUFFER, *PBEACON_BUFFER;
Forest Bond92b96792009-06-13 07:38:31 -040055
Malcolm Priestleyd56131d2013-01-17 23:15:22 +000056void vDMA0_tx_80211(struct vnt_private *, struct sk_buff *skb);
57int nsDMA_tx_packet(struct vnt_private *, u32 uDMAIdx, struct sk_buff *skb);
58CMD_STATUS csMgmt_xmit(struct vnt_private *, struct vnt_tx_mgmt *);
59CMD_STATUS csBeacon_xmit(struct vnt_private *, struct vnt_tx_mgmt *);
60int bRelayPacketSend(struct vnt_private *, u8 *pbySkbData, u32 uDataLen,
61 u32 uNodeIndex);
Forest Bond92b96792009-06-13 07:38:31 -040062
Andres Moree7b07d12010-05-01 19:12:26 -030063#endif /* __RXTX_H__ */