Fixed legacy basic rate bitmap for B mode
[ralink_drivers/rt2860_fbsd8.git] / rt2860_eeprom.h
bloba8b94e28afcc5a211b8cfccd54fa36dc86bf42d7
2 /*-
3 * Copyright (c) 2009-2010 Alexander Egorenkov <egorenar@gmail.com>
4 * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 #ifndef _RT2860_EEPROM_H_
20 #define _RT2860_EEPROM_H_
22 #define RT2860_EEPROM_VERSION 0x0002
23 #define RT2860_EEPROM_ADDRESS01 0x0004
24 #define RT2860_EEPROM_ADDRESS23 0x0006
25 #define RT2860_EEPROM_ADDRESS45 0x0008
26 #define RT2860_EEPROM_POWERSAVE_LEVEL 0x0022
27 #define RT2860_EEPROM_ANTENNA 0x0034
28 #define RT2860_EEPROM_NIC_CONFIG 0x0036
29 #define RT2860_EEPROM_COUNTRY 0x0038
30 #define RT2860_EEPROM_RF_FREQ_OFF 0x003a
31 #define RT2860_EEPROM_LED1_OFF 0x003c
32 #define RT2860_EEPROM_LED2_OFF 0x003e
33 #define RT2860_EEPROM_LED3_OFF 0x0040
34 #define RT2860_EEPROM_LNA_GAIN 0x0044
35 #define RT2860_EEPROM_RSSI_OFF_2GHZ_BASE 0x0046
36 #define RT2860_EEPROM_RSSI_OFF_5GHZ_BASE 0x0046
37 #define RT2860_EEPROM_TXPOW_RATE_DELTA 0x0050
38 #define RT2860_EEPROM_TXPOW1_2GHZ_BASE 0x0052
39 #define RT2860_EEPROM_TXPOW2_2GHZ_BASE 0x0060
40 #define RT2860_EEPROM_TSSI_2GHZ_BASE 0x006e
41 #define RT2860_EEPROM_TXPOW1_5GHZ_BASE 0x0078
42 #define RT2860_EEPROM_TXPOW2_5GHZ_BASE 0x00a6
43 #define RT2860_EEPROM_TSSI_5GHZ_BASE 0x00d4
44 #define RT2860_EEPROM_TXPOW_RATE_BASE 0x00de
45 #define RT2860_EEPROM_BBP_BASE 0x00f0
47 #define RT2860_EEPROM_RF_2820 1 /* 2.4GHz 2T3R */
48 #define RT2860_EEPROM_RF_2850 2 /* 2.4/5GHz 2T3R */
49 #define RT2860_EEPROM_RF_2720 3 /* 2.4GHz 1T2R */
50 #define RT2860_EEPROM_RF_2750 4 /* 2.4G/5GHz 1T2R */
53 * RT2860_EEPROM_NIC_CONFIG flags
55 #define RT2860_EEPROM_EXT_LNA_5GHZ (1 << 3)
56 #define RT2860_EEPROM_EXT_LNA_2GHZ (1 << 2)
57 #define RT2860_EEPROM_TX_AGC_CNTL (1 << 1)
58 #define RT2860_EEPROM_HW_RADIO_CNTL (1 << 0)
60 #define RT2860_EEPROM_LED_POLARITY (1 << 7)
61 #define RT2860_EEPROM_LED_MODE_MASK 0x7f
63 #define RT2860_EEPROM_LED_CNTL_DEFAULT 0x01
64 #define RT2860_EEPROM_LED1_OFF_DEFAULT 0x5555
65 #define RT2860_EEPROM_LED2_OFF_DEFAULT 0x2221
66 #define RT2860_EEPROM_LED3_OFF_DEFAULT 0xa9f8
68 #define RT2860_EEPROM_RSSI_OFF_MIN -10
69 #define RT2860_EEPROM_RSSI_OFF_MAX 10
71 #define RT2860_EEPROM_TXPOW_2GHZ_MIN 0
72 #define RT2860_EEPROM_TXPOW_2GHZ_MAX 31
73 #define RT2860_EEPROM_TXPOW_2GHZ_DEFAULT 5
74 #define RT2860_EEPROM_TXPOW_5GHZ_MIN -7
75 #define RT2860_EEPROM_TXPOW_5GHZ_MAX 15
76 #define RT2860_EEPROM_TXPOW_5GHZ_DEFAULT 5
78 #endif /* #ifndef _RT2860_EEPROM_H_ */