]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/staging/vt6655/rxtx.h
146da0993f47ee7c1b12b436e4fd8eee9d976ab8
[karo-tx-linux.git] / drivers / staging / vt6655 / 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 "ttype.h"
33 #include "device.h"
34 #include "wcmd.h"
35
36 /*---------------------  Export Definitions -------------------------*/
37
38 /*---------------------  Export Variables  --------------------------*/
39
40 /*---------------------  Export Functions  --------------------------*/
41
42 /*
43 void vGenerateMACHeader(
44     PSDevice pDevice,
45     unsigned long dwTxBufferAddr,
46     unsigned char *pbySkbData,
47     unsigned int cbPacketSize,
48     BOOL bDMA0Used,
49     PUINT pcbHeadSize,
50     PUINT pcbAppendPayload
51      );
52
53 void vProcessRxMACHeader (
54     PSDevice pDevice,
55     unsigned long dwRxBufferAddr,
56     unsigned int cbPacketSize,
57     BOOL bIsWEP,
58     PUINT pcbHeadSize
59     );
60 */
61
62
63 void
64 vGenerateMACHeader (
65     PSDevice         pDevice,
66     unsigned char *pbyBufferAddr,
67     unsigned short wDuration,
68     PSEthernetHeader psEthHeader,
69     BOOL             bNeedEncrypt,
70     unsigned short wFragType,
71     unsigned int uDMAIdx,
72     unsigned int uFragIdx
73     );
74
75
76 unsigned int
77 cbGetFragCount(
78     PSDevice         pDevice,
79     PSKeyItem        pTransmitKey,
80     unsigned int        cbFrameBodySize,
81     PSEthernetHeader psEthHeader
82     );
83
84
85 void
86 vGenerateFIFOHeader (
87     PSDevice         pDevice,
88     unsigned char byPktTyp,
89     unsigned char *pbyTxBufferAddr,
90     BOOL             bNeedEncrypt,
91     unsigned int        cbPayloadSize,
92     unsigned int        uDMAIdx,
93     PSTxDesc         pHeadTD,
94     PSEthernetHeader psEthHeader,
95     unsigned char *pPacket,
96     PSKeyItem        pTransmitKey,
97     unsigned int        uNodeIndex,
98     PUINT            puMACfragNum,
99     PUINT            pcbHeaderSize
100     );
101
102
103 void vDMA0_tx_80211(PSDevice  pDevice, struct sk_buff *skb, unsigned char *pbMPDU, unsigned int cbMPDULen);
104 CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
105 CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
106
107 #endif // __RXTX_H__