Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 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 | * |
| 20 | * File: rf.h |
| 21 | * |
| 22 | * Purpose: |
| 23 | * |
| 24 | * Author: Jerry Chen |
| 25 | * |
| 26 | * Date: Feb. 19, 2004 |
| 27 | * |
| 28 | */ |
| 29 | |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 30 | #ifndef __RF_H__ |
| 31 | #define __RF_H__ |
| 32 | |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 33 | #include "ttype.h" |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 34 | #include "device.h" |
Jim Lieb | 9d26d60 | 2009-08-12 14:54:08 -0700 | [diff] [blame] | 35 | |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 36 | /*--------------------- Export Definitions -------------------------*/ |
| 37 | // |
| 38 | // Baseband RF pair definition in eeprom (Bits 6..0) |
| 39 | // |
| 40 | #define RF_RFMD2959 0x01 |
| 41 | #define RF_MAXIMAG 0x02 |
| 42 | #define RF_AL2230 0x03 |
| 43 | #define RF_GCT5103 0x04 |
| 44 | #define RF_UW2451 0x05 |
| 45 | #define RF_MAXIMG 0x06 |
| 46 | #define RF_MAXIM2829 0x07 |
| 47 | #define RF_UW2452 0x08 |
| 48 | #define RF_VT3226 0x09 |
| 49 | #define RF_AIROHA7230 0x0a |
| 50 | #define RF_UW2453 0x0b |
| 51 | #define RF_VT3226D0 0x0c //RobertYu:20051114 |
| 52 | #define RF_VT3342A0 0x0d //RobertYu:20060609 |
| 53 | #define RF_AL2230S 0x0e |
| 54 | |
| 55 | #define RF_EMU 0x80 |
| 56 | #define RF_MASK 0x7F |
| 57 | |
| 58 | |
| 59 | |
| 60 | /*--------------------- Export Classes ----------------------------*/ |
| 61 | |
| 62 | /*--------------------- Export Variables --------------------------*/ |
| 63 | extern const BYTE RFaby11aChannelIndex[200]; |
| 64 | /*--------------------- Export Functions --------------------------*/ |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 65 | |
| 66 | BOOL IFRFbWriteEmbeded(PSDevice pDevice, DWORD dwData); |
Andres More | d9d1ccb | 2010-05-26 20:00:36 -0300 | [diff] [blame] | 67 | BOOL RFbSetPower(PSDevice pDevice, unsigned int uRATE, unsigned int uCH); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 68 | |
| 69 | BOOL RFbRawSetPower( |
Andres More | 592ccfe | 2010-04-17 12:07:42 -0300 | [diff] [blame] | 70 | PSDevice pDevice, |
| 71 | BYTE byPwr, |
Andres More | cc856e6 | 2010-05-17 21:34:01 -0300 | [diff] [blame] | 72 | unsigned int uRATE |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 73 | ); |
| 74 | |
Andres More | d9d1ccb | 2010-05-26 20:00:36 -0300 | [diff] [blame] | 75 | void RFvRSSITodBm(PSDevice pDevice, BYTE byCurrRSSI, long *pldBm); |
| 76 | void RFbRFTableDownload(PSDevice pDevice); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 77 | |
| 78 | BOOL s_bVT3226D0_11bLoCurrentAdjust( |
Andres More | 592ccfe | 2010-04-17 12:07:42 -0300 | [diff] [blame] | 79 | PSDevice pDevice, |
| 80 | BYTE byChannel, |
| 81 | BOOL b11bMode |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 82 | ); |
| 83 | |
Andres More | e7b07d1 | 2010-05-01 19:12:26 -0300 | [diff] [blame] | 84 | #endif /* __RF_H__ */ |