Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / vt6655 / rxtx.h
CommitLineData
5449c685
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 *
612822f5 19 * File: rxtx.h
5449c685
FB
20 *
21 * Purpose:
22 *
23 * Author: Jerry Chen
24 *
25 * Date: Jun. 27, 2002
26 *
27 */
28
5449c685
FB
29#ifndef __RXTX_H__
30#define __RXTX_H__
31
5449c685 32#include "ttype.h"
5449c685 33#include "device.h"
5449c685 34#include "wcmd.h"
5449c685
FB
35
36/*--------------------- Export Definitions -------------------------*/
37
38/*--------------------- Export Classes ----------------------------*/
39
40/*--------------------- Export Variables --------------------------*/
41
42/*--------------------- Export Functions --------------------------*/
43
44
45#ifdef __cplusplus
46extern "C" { /* Assume C declarations for C++ */
47#endif /* __cplusplus */
48
49/*
50VOID vGenerateMACHeader(
51 IN PSDevice pDevice,
52 IN DWORD dwTxBufferAddr,
53 IN PBYTE pbySkbData,
54 IN UINT cbPacketSize,
55 IN BOOL bDMA0Used,
56 OUT PUINT pcbHeadSize,
57 OUT PUINT pcbAppendPayload
58 );
59
60VOID vProcessRxMACHeader (
61 IN PSDevice pDevice,
62 IN DWORD dwRxBufferAddr,
63 IN UINT cbPacketSize,
64 IN BOOL bIsWEP,
65 OUT PUINT pcbHeadSize
66 );
67*/
68
69
70VOID
71vGenerateMACHeader (
72 IN PSDevice pDevice,
73 IN PBYTE pbyBufferAddr,
74 IN WORD wDuration,
75 IN PSEthernetHeader psEthHeader,
76 IN BOOL bNeedEncrypt,
77 IN WORD wFragType,
78 IN UINT uDMAIdx,
79 IN UINT uFragIdx
80 );
81
82
83UINT
84cbGetFragCount(
85 IN PSDevice pDevice,
86 IN PSKeyItem pTransmitKey,
87 IN UINT cbFrameBodySize,
88 IN PSEthernetHeader psEthHeader
89 );
90
91
92VOID
93vGenerateFIFOHeader (
94 IN PSDevice pDevice,
95 IN BYTE byPktTyp,
96 IN PBYTE pbyTxBufferAddr,
97 IN BOOL bNeedEncrypt,
98 IN UINT cbPayloadSize,
99 IN UINT uDMAIdx,
100 IN PSTxDesc pHeadTD,
101 IN PSEthernetHeader psEthHeader,
102 IN PBYTE pPacket,
103 IN PSKeyItem pTransmitKey,
104 IN UINT uNodeIndex,
105 OUT PUINT puMACfragNum,
106 OUT PUINT pcbHeaderSize
107 );
108
109
110VOID vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, PBYTE pbMPDU, UINT cbMPDULen);
111CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
112CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
113
114#ifdef __cplusplus
115} /* End of extern "C" { */
116#endif /* __cplusplus */
117
118
119
120
121#endif // __RXTX_H__
122
123
124