Commit | Line | Data |
---|---|---|
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 | ||
5449c685 FB |
38 | /*--------------------- Export Variables --------------------------*/ |
39 | ||
40 | /*--------------------- Export Functions --------------------------*/ | |
41 | ||
5449c685 | 42 | /* |
6b35b7b3 | 43 | void vGenerateMACHeader( |
3a215e0f CC |
44 | PSDevice pDevice, |
45 | DWORD dwTxBufferAddr, | |
46 | PBYTE pbySkbData, | |
47 | UINT cbPacketSize, | |
48 | BOOL bDMA0Used, | |
3cdec554 CC |
49 | PUINT pcbHeadSize, |
50 | PUINT pcbAppendPayload | |
5449c685 FB |
51 | ); |
52 | ||
6b35b7b3 | 53 | void vProcessRxMACHeader ( |
3a215e0f CC |
54 | PSDevice pDevice, |
55 | DWORD dwRxBufferAddr, | |
56 | UINT cbPacketSize, | |
57 | BOOL bIsWEP, | |
3cdec554 | 58 | PUINT pcbHeadSize |
5449c685 FB |
59 | ); |
60 | */ | |
61 | ||
62 | ||
6b35b7b3 | 63 | void |
5449c685 | 64 | vGenerateMACHeader ( |
3a215e0f CC |
65 | PSDevice pDevice, |
66 | PBYTE pbyBufferAddr, | |
67 | WORD wDuration, | |
68 | PSEthernetHeader psEthHeader, | |
69 | BOOL bNeedEncrypt, | |
70 | WORD wFragType, | |
71 | UINT uDMAIdx, | |
72 | UINT uFragIdx | |
5449c685 FB |
73 | ); |
74 | ||
75 | ||
76 | UINT | |
77 | cbGetFragCount( | |
3a215e0f CC |
78 | PSDevice pDevice, |
79 | PSKeyItem pTransmitKey, | |
80 | UINT cbFrameBodySize, | |
81 | PSEthernetHeader psEthHeader | |
5449c685 FB |
82 | ); |
83 | ||
84 | ||
6b35b7b3 | 85 | void |
5449c685 | 86 | vGenerateFIFOHeader ( |
3a215e0f CC |
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, | |
3cdec554 CC |
98 | PUINT puMACfragNum, |
99 | PUINT pcbHeaderSize | |
5449c685 FB |
100 | ); |
101 | ||
102 | ||
6b35b7b3 | 103 | void vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, PBYTE pbMPDU, UINT cbMPDULen); |
5449c685 FB |
104 | CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket); |
105 | CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket); | |
106 | ||
5449c685 | 107 | #endif // __RXTX_H__ |