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 "device.h" |
Jim Lieb | 9d26d60 | 2009-08-12 14:54:08 -0700 | [diff] [blame] | 34 | |
Malcolm Priestley | e96caf3 | 2014-07-25 20:51:56 +0100 | [diff] [blame] | 35 | /* Baseband RF pair definition in eeprom (Bits 6..0) */ |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 36 | #define RF_RFMD2959 0x01 |
| 37 | #define RF_MAXIMAG 0x02 |
| 38 | #define RF_AL2230 0x03 |
| 39 | #define RF_GCT5103 0x04 |
| 40 | #define RF_UW2451 0x05 |
| 41 | #define RF_MAXIMG 0x06 |
| 42 | #define RF_MAXIM2829 0x07 |
| 43 | #define RF_UW2452 0x08 |
| 44 | #define RF_VT3226 0x09 |
| 45 | #define RF_AIROHA7230 0x0a |
| 46 | #define RF_UW2453 0x0b |
Malcolm Priestley | e96caf3 | 2014-07-25 20:51:56 +0100 | [diff] [blame] | 47 | #define RF_VT3226D0 0x0c /* RobertYu:20051114 */ |
| 48 | #define RF_VT3342A0 0x0d /* RobertYu:20060609 */ |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 49 | #define RF_AL2230S 0x0e |
| 50 | |
| 51 | #define RF_EMU 0x80 |
| 52 | #define RF_MASK 0x7F |
| 53 | |
Malcolm Priestley | f53d9f1 | 2014-05-17 09:50:18 +0100 | [diff] [blame] | 54 | #define VNT_RF_MAX_POWER 0x3f |
Malcolm Priestley | f1c840d | 2014-07-12 11:30:02 +0100 | [diff] [blame] | 55 | #define VNT_RF_REG_LEN 0x17 /* 24 bit length */ |
Malcolm Priestley | f53d9f1 | 2014-05-17 09:50:18 +0100 | [diff] [blame] | 56 | |
Malcolm Priestley | 32c48cb | 2014-05-27 21:05:20 +0100 | [diff] [blame] | 57 | int vnt_rf_write_embedded(struct vnt_private *, u32); |
Malcolm Priestley | 4f5290e | 2014-05-27 21:05:21 +0100 | [diff] [blame] | 58 | int vnt_rf_setpower(struct vnt_private *, u32, u32); |
Malcolm Priestley | 8543bb9 | 2014-05-27 21:05:22 +0100 | [diff] [blame] | 59 | int vnt_rf_set_txpower(struct vnt_private *, u8, u32); |
Malcolm Priestley | 21bba58 | 2014-05-27 21:05:23 +0100 | [diff] [blame] | 60 | void vnt_rf_rssi_to_dbm(struct vnt_private *, u8, long *); |
Malcolm Priestley | c49d755 | 2014-05-27 21:05:24 +0100 | [diff] [blame] | 61 | void vnt_rf_table_download(struct vnt_private *); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 62 | |
Andres More | e7b07d1 | 2010-05-01 19:12:26 -0300 | [diff] [blame] | 63 | #endif /* __RF_H__ */ |