[ARM] pxa: Gumstix Verdex PCMCIA support
[linux-2.6/verdex.git] / drivers / staging / vt6655 / rxtx.h
blob17bd1b1f40e6d67d95e636bccee68efb72aa4602
1 /*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
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.
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.
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.
19 * File: rxtx.h
21 * Purpose:
23 * Author: Jerry Chen
25 * Date: Jun. 27, 2002
29 #ifndef __RXTX_H__
30 #define __RXTX_H__
32 #include "ttype.h"
33 #include "device.h"
34 #include "wcmd.h"
36 /*--------------------- Export Definitions -------------------------*/
38 /*--------------------- Export Classes ----------------------------*/
40 /*--------------------- Export Variables --------------------------*/
42 /*--------------------- Export Functions --------------------------*/
45 #ifdef __cplusplus
46 extern "C" { /* Assume C declarations for C++ */
47 #endif /* __cplusplus */
50 VOID 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
60 VOID vProcessRxMACHeader (
61 IN PSDevice pDevice,
62 IN DWORD dwRxBufferAddr,
63 IN UINT cbPacketSize,
64 IN BOOL bIsWEP,
65 OUT PUINT pcbHeadSize
70 VOID
71 vGenerateMACHeader (
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
83 UINT
84 cbGetFragCount(
85 IN PSDevice pDevice,
86 IN PSKeyItem pTransmitKey,
87 IN UINT cbFrameBodySize,
88 IN PSEthernetHeader psEthHeader
92 VOID
93 vGenerateFIFOHeader (
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
110 VOID vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, PBYTE pbMPDU, UINT cbMPDULen);
111 CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
112 CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
114 #ifdef __cplusplus
115 } /* End of extern "C" { */
116 #endif /* __cplusplus */
121 #endif // __RXTX_H__