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 IN PSDevice pDevice, 45 IN DWORD dwTxBufferAddr, 46 IN PBYTE pbySkbData, 47 IN UINT cbPacketSize, 48 IN BOOL bDMA0Used, 49 OUT PUINT pcbHeadSize, 50 OUT PUINT pcbAppendPayload 51 ); 52 53 VOID vProcessRxMACHeader ( 54 IN PSDevice pDevice, 55 IN DWORD dwRxBufferAddr, 56 IN UINT cbPacketSize, 57 IN BOOL bIsWEP, 58 OUT PUINT pcbHeadSize 59 ); 60 */ 61 62 63 VOID 64 vGenerateMACHeader ( 65 IN PSDevice pDevice, 66 IN PBYTE pbyBufferAddr, 67 IN WORD wDuration, 68 IN PSEthernetHeader psEthHeader, 69 IN BOOL bNeedEncrypt, 70 IN WORD wFragType, 71 IN UINT uDMAIdx, 72 IN UINT uFragIdx 73 ); 74 75 76 UINT 77 cbGetFragCount( 78 IN PSDevice pDevice, 79 IN PSKeyItem pTransmitKey, 80 IN UINT cbFrameBodySize, 81 IN PSEthernetHeader psEthHeader 82 ); 83 84 85 VOID 86 vGenerateFIFOHeader ( 87 IN PSDevice pDevice, 88 IN BYTE byPktTyp, 89 IN PBYTE pbyTxBufferAddr, 90 IN BOOL bNeedEncrypt, 91 IN UINT cbPayloadSize, 92 IN UINT uDMAIdx, 93 IN PSTxDesc pHeadTD, 94 IN PSEthernetHeader psEthHeader, 95 IN PBYTE pPacket, 96 IN PSKeyItem pTransmitKey, 97 IN UINT uNodeIndex, 98 OUT PUINT puMACfragNum, 99 OUT 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__ 108