Do not use ShortGI and STBC with management frames; Atheros cards have problems with...
[ralink_drivers/rt2870_fbsd72.git] / rt2870_eeprom.h
blobad05fe96799ecac43516a8ad9f9cf83d6c074452
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 _RT2870_EEPROM_H_
20 #define _RT2870_EEPROM_H_
22 #define RT2870_EEPROM_VERSION 0x0002
23 #define RT2870_EEPROM_ADDRESS 0x0004
24 #define RT2870_EEPROM_ANTENNA 0x0034
25 #define RT2870_EEPROM_NIC_CONFIG 0x0036
26 #define RT2870_EEPROM_COUNTRY 0x0038
27 #define RT2870_EEPROM_RF_FREQ_OFF 0x003a
28 #define RT2870_EEPROM_LED1_OFF 0x003c
29 #define RT2870_EEPROM_LED2_OFF 0x003e
30 #define RT2870_EEPROM_LED3_OFF 0x0040
31 #define RT2870_EEPROM_LNA_GAIN 0x0044
32 #define RT2870_EEPROM_RSSI_OFF_2GHZ_BASE 0x0046
33 #define RT2870_EEPROM_RSSI_OFF_5GHZ_BASE 0x004a
34 #define RT2870_EEPROM_TXPOW_RATE_DELTA 0x0050
35 #define RT2870_EEPROM_TXPOW1_2GHZ_BASE 0x0052
36 #define RT2870_EEPROM_TXPOW2_2GHZ_BASE 0x0060
37 #define RT2870_EEPROM_TSSI_2GHZ_BASE 0x006e
38 #define RT2870_EEPROM_TXPOW1_5GHZ_BASE 0x0078
39 #define RT2870_EEPROM_TXPOW2_5GHZ_BASE 0x00a6
40 #define RT2870_EEPROM_TSSI_5GHZ_BASE 0x00d4
41 #define RT2870_EEPROM_TXPOW_RATE_BASE 0x00de
42 #define RT2870_EEPROM_BBP_BASE 0x00f0
44 #define RT2870_EEPROM_RF_2820 1 /* 2.4GHz 2T3R */
45 #define RT2870_EEPROM_RF_2850 2 /* 2.4/5GHz 2T3R */
46 #define RT2870_EEPROM_RF_2720 3 /* 2.4GHz 1T2R */
47 #define RT2870_EEPROM_RF_2750 4 /* 2.4G/5GHz 1T2R */
48 #define RT2870_EEPROM_RF_3020 5 /* 2.4GHz 1T1R */
49 #define RT2870_EEPROM_RF_2020 6 /* 2.4GHz B/G */
52 * RT2870_EEPROM_NIC_CONFIG flags
54 #define RT2870_EEPROM_EXT_LNA_5GHZ (1 << 3)
55 #define RT2870_EEPROM_EXT_LNA_2GHZ (1 << 2)
56 #define RT2870_EEPROM_TX_AGC_CNTL (1 << 1)
57 #define RT2870_EEPROM_HW_RADIO_CNTL (1 << 0)
59 #define RT2870_EEPROM_LED_POLARITY (1 << 7)
60 #define RT2870_EEPROM_LED_MODE_MASK 0x7f
62 #define RT2870_EEPROM_LED_CNTL_DEFAULT 0x01
63 #define RT2870_EEPROM_LED1_OFF_DEFAULT 0x5555
64 #define RT2870_EEPROM_LED2_OFF_DEFAULT 0x2221
65 #define RT2870_EEPROM_LED3_OFF_DEFAULT 0x5627
67 #define RT2870_EEPROM_RSSI_OFF_MIN -10
68 #define RT2870_EEPROM_RSSI_OFF_MAX 10
70 #define RT2870_EEPROM_TXPOW_2GHZ_MIN 0
71 #define RT2870_EEPROM_TXPOW_2GHZ_MAX 31
72 #define RT2870_EEPROM_TXPOW_2GHZ_DEFAULT 5
73 #define RT2870_EEPROM_TXPOW_5GHZ_MIN -7
74 #define RT2870_EEPROM_TXPOW_5GHZ_MAX 15
75 #define RT2870_EEPROM_TXPOW_5GHZ_DEFAULT 5
77 #endif /* #ifndef _RT2870_EEPROM_H_ */