Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh...
[pandora-kernel.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     DWORD dwTxBufferAddr,
46     PBYTE pbySkbData,
47     UINT cbPacketSize,
48     BOOL bDMA0Used,
49     PUINT pcbHeadSize,
50     PUINT pcbAppendPayload
51      );
52
53 void vProcessRxMACHeader (
54     PSDevice pDevice,
55     DWORD dwRxBufferAddr,
56     UINT cbPacketSize,
57     BOOL bIsWEP,
58     PUINT pcbHeadSize
59     );
60 */
61
62
63 void
64 vGenerateMACHeader (
65     PSDevice         pDevice,
66     PBYTE            pbyBufferAddr,
67     WORD             wDuration,
68     PSEthernetHeader psEthHeader,
69     BOOL             bNeedEncrypt,
70     WORD             wFragType,
71     UINT             uDMAIdx,
72     UINT             uFragIdx
73     );
74
75
76 UINT
77 cbGetFragCount(
78     PSDevice         pDevice,
79     PSKeyItem        pTransmitKey,
80     UINT             cbFrameBodySize,
81     PSEthernetHeader psEthHeader
82     );
83
84
85 void
86 vGenerateFIFOHeader (
87     PSDevice         pDevice,
88     BYTE             byPktTyp,
89     PBYTE            pbyTxBufferAddr,
90     BOOL             bNeedEncrypt,
91     UINT             cbPayloadSize,
92     UINT             uDMAIdx,
93     PSTxDesc         pHeadTD,
94     PSEthernetHeader psEthHeader,
95     PBYTE            pPacket,
96     PSKeyItem        pTransmitKey,
97     UINT             uNodeIndex,
98     PUINT            puMACfragNum,
99     PUINT            pcbHeaderSize
100     );
101
102
103 void vDMA0_tx_80211(PSDevice  pDevice, struct sk_buff *skb, PBYTE pbMPDU, UINT cbMPDULen);
104 CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
105 CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
106
107 #endif // __RXTX_H__