aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2800.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-07-08 05:25:52 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-07-22 16:54:26 -0400
commit8951b79a4e6d8228babf56ae79a345e4abc5ac82 (patch)
tree1a81201e3b7a13461ca127a3c7704683b5e6f328 /drivers/net/wireless/rt2x00/rt2800.h
parenta3835e9fa72956a9a348079f8161e6a5057b5c88 (diff)
rt2x00: rt2800lib: introduce rt2800_eeprom_word enum
The patch converts the EEPROM_* word address defines into new enum values. The new enum type will be used by new functions which will be introduced in subsequent changes. The patch contains no functional changes. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Acked-by: Stanislaw Gruszka <stf_xl@wp.pl> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800.h79
1 files changed, 39 insertions, 40 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h
index d78c495a86a0..064703933f7c 100644
--- a/drivers/net/wireless/rt2x00/rt2800.h
+++ b/drivers/net/wireless/rt2x00/rt2800.h
@@ -2206,28 +2206,59 @@ struct mac_iveiv_entry {
2206 * The wordsize of the EEPROM is 16 bits. 2206 * The wordsize of the EEPROM is 16 bits.
2207 */ 2207 */
2208 2208
2209/* 2209enum rt2800_eeprom_word {
2210 * Chip ID 2210 EEPROM_CHIP_ID = 0x0000,
2211 */ 2211 EEPROM_VERSION = 0x0001,
2212#define EEPROM_CHIP_ID 0x0000 2212 EEPROM_MAC_ADDR_0 = 0x0002,
2213 EEPROM_MAC_ADDR_1 = 0x0003,
2214 EEPROM_MAC_ADDR_2 = 0x0004,
2215 EEPROM_NIC_CONF0 = 0x001a,
2216 EEPROM_NIC_CONF1 = 0x001b,
2217 EEPROM_FREQ = 0x001d,
2218 EEPROM_LED_AG_CONF = 0x001e,
2219 EEPROM_LED_ACT_CONF = 0x001f,
2220 EEPROM_LED_POLARITY = 0x0020,
2221 EEPROM_NIC_CONF2 = 0x0021,
2222 EEPROM_LNA = 0x0022,
2223 EEPROM_RSSI_BG = 0x0023,
2224 EEPROM_RSSI_BG2 = 0x0024,
2225 EEPROM_TXMIXER_GAIN_BG = 0x0024, /* overlaps with RSSI_BG2 */
2226 EEPROM_RSSI_A = 0x0025,
2227 EEPROM_RSSI_A2 = 0x0026,
2228 EEPROM_TXMIXER_GAIN_A = 0x0026, /* overlaps with RSSI_A2 */
2229 EEPROM_EIRP_MAX_TX_POWER = 0x0027,
2230 EEPROM_TXPOWER_DELTA = 0x0028,
2231 EEPROM_TXPOWER_BG1 = 0x0029,
2232 EEPROM_TXPOWER_BG2 = 0x0030,
2233 EEPROM_TSSI_BOUND_BG1 = 0x0037,
2234 EEPROM_TSSI_BOUND_BG2 = 0x0038,
2235 EEPROM_TSSI_BOUND_BG3 = 0x0039,
2236 EEPROM_TSSI_BOUND_BG4 = 0x003a,
2237 EEPROM_TSSI_BOUND_BG5 = 0x003b,
2238 EEPROM_TXPOWER_A1 = 0x003c,
2239 EEPROM_TXPOWER_A2 = 0x0053,
2240 EEPROM_TSSI_BOUND_A1 = 0x006a,
2241 EEPROM_TSSI_BOUND_A2 = 0x006b,
2242 EEPROM_TSSI_BOUND_A3 = 0x006c,
2243 EEPROM_TSSI_BOUND_A4 = 0x006d,
2244 EEPROM_TSSI_BOUND_A5 = 0x006e,
2245 EEPROM_TXPOWER_BYRATE = 0x006f,
2246 EEPROM_BBP_START = 0x0078,
2247};
2213 2248
2214/* 2249/*
2215 * EEPROM Version 2250 * EEPROM Version
2216 */ 2251 */
2217#define EEPROM_VERSION 0x0001
2218#define EEPROM_VERSION_FAE FIELD16(0x00ff) 2252#define EEPROM_VERSION_FAE FIELD16(0x00ff)
2219#define EEPROM_VERSION_VERSION FIELD16(0xff00) 2253#define EEPROM_VERSION_VERSION FIELD16(0xff00)
2220 2254
2221/* 2255/*
2222 * HW MAC address. 2256 * HW MAC address.
2223 */ 2257 */
2224#define EEPROM_MAC_ADDR_0 0x0002
2225#define EEPROM_MAC_ADDR_BYTE0 FIELD16(0x00ff) 2258#define EEPROM_MAC_ADDR_BYTE0 FIELD16(0x00ff)
2226#define EEPROM_MAC_ADDR_BYTE1 FIELD16(0xff00) 2259#define EEPROM_MAC_ADDR_BYTE1 FIELD16(0xff00)
2227#define EEPROM_MAC_ADDR_1 0x0003
2228#define EEPROM_MAC_ADDR_BYTE2 FIELD16(0x00ff) 2260#define EEPROM_MAC_ADDR_BYTE2 FIELD16(0x00ff)
2229#define EEPROM_MAC_ADDR_BYTE3 FIELD16(0xff00) 2261#define EEPROM_MAC_ADDR_BYTE3 FIELD16(0xff00)
2230#define EEPROM_MAC_ADDR_2 0x0004
2231#define EEPROM_MAC_ADDR_BYTE4 FIELD16(0x00ff) 2262#define EEPROM_MAC_ADDR_BYTE4 FIELD16(0x00ff)
2232#define EEPROM_MAC_ADDR_BYTE5 FIELD16(0xff00) 2263#define EEPROM_MAC_ADDR_BYTE5 FIELD16(0xff00)
2233 2264
@@ -2237,7 +2268,6 @@ struct mac_iveiv_entry {
2237 * TXPATH: 1: 1T, 2: 2T, 3: 3T 2268 * TXPATH: 1: 1T, 2: 2T, 3: 3T
2238 * RF_TYPE: RFIC type 2269 * RF_TYPE: RFIC type
2239 */ 2270 */
2240#define EEPROM_NIC_CONF0 0x001a
2241#define EEPROM_NIC_CONF0_RXPATH FIELD16(0x000f) 2271#define EEPROM_NIC_CONF0_RXPATH FIELD16(0x000f)
2242#define EEPROM_NIC_CONF0_TXPATH FIELD16(0x00f0) 2272#define EEPROM_NIC_CONF0_TXPATH FIELD16(0x00f0)
2243#define EEPROM_NIC_CONF0_RF_TYPE FIELD16(0x0f00) 2273#define EEPROM_NIC_CONF0_RF_TYPE FIELD16(0x0f00)
@@ -2261,7 +2291,6 @@ struct mac_iveiv_entry {
2261 * BT_COEXIST: 0: disable, 1: enable 2291 * BT_COEXIST: 0: disable, 1: enable
2262 * DAC_TEST: 0: disable, 1: enable 2292 * DAC_TEST: 0: disable, 1: enable
2263 */ 2293 */
2264#define EEPROM_NIC_CONF1 0x001b
2265#define EEPROM_NIC_CONF1_HW_RADIO FIELD16(0x0001) 2294#define EEPROM_NIC_CONF1_HW_RADIO FIELD16(0x0001)
2266#define EEPROM_NIC_CONF1_EXTERNAL_TX_ALC FIELD16(0x0002) 2295#define EEPROM_NIC_CONF1_EXTERNAL_TX_ALC FIELD16(0x0002)
2267#define EEPROM_NIC_CONF1_EXTERNAL_LNA_2G FIELD16(0x0004) 2296#define EEPROM_NIC_CONF1_EXTERNAL_LNA_2G FIELD16(0x0004)
@@ -2281,7 +2310,6 @@ struct mac_iveiv_entry {
2281/* 2310/*
2282 * EEPROM frequency 2311 * EEPROM frequency
2283 */ 2312 */
2284#define EEPROM_FREQ 0x001d
2285#define EEPROM_FREQ_OFFSET FIELD16(0x00ff) 2313#define EEPROM_FREQ_OFFSET FIELD16(0x00ff)
2286#define EEPROM_FREQ_LED_MODE FIELD16(0x7f00) 2314#define EEPROM_FREQ_LED_MODE FIELD16(0x7f00)
2287#define EEPROM_FREQ_LED_POLARITY FIELD16(0x1000) 2315#define EEPROM_FREQ_LED_POLARITY FIELD16(0x1000)
@@ -2298,9 +2326,6 @@ struct mac_iveiv_entry {
2298 * POLARITY_GPIO_4: Polarity GPIO4 setting. 2326 * POLARITY_GPIO_4: Polarity GPIO4 setting.
2299 * LED_MODE: Led mode. 2327 * LED_MODE: Led mode.
2300 */ 2328 */
2301#define EEPROM_LED_AG_CONF 0x001e
2302#define EEPROM_LED_ACT_CONF 0x001f
2303#define EEPROM_LED_POLARITY 0x0020
2304#define EEPROM_LED_POLARITY_RDY_BG FIELD16(0x0001) 2329#define EEPROM_LED_POLARITY_RDY_BG FIELD16(0x0001)
2305#define EEPROM_LED_POLARITY_RDY_A FIELD16(0x0002) 2330#define EEPROM_LED_POLARITY_RDY_A FIELD16(0x0002)
2306#define EEPROM_LED_POLARITY_ACT FIELD16(0x0004) 2331#define EEPROM_LED_POLARITY_ACT FIELD16(0x0004)
@@ -2317,7 +2342,6 @@ struct mac_iveiv_entry {
2317 * TX_STREAM: 0: Reserved, 1: 1 Stream, 2: 2 Stream 2342 * TX_STREAM: 0: Reserved, 1: 1 Stream, 2: 2 Stream
2318 * CRYSTAL: 00: Reserved, 01: One crystal, 10: Two crystal, 11: Reserved 2343 * CRYSTAL: 00: Reserved, 01: One crystal, 10: Two crystal, 11: Reserved
2319 */ 2344 */
2320#define EEPROM_NIC_CONF2 0x0021
2321#define EEPROM_NIC_CONF2_RX_STREAM FIELD16(0x000f) 2345#define EEPROM_NIC_CONF2_RX_STREAM FIELD16(0x000f)
2322#define EEPROM_NIC_CONF2_TX_STREAM FIELD16(0x00f0) 2346#define EEPROM_NIC_CONF2_TX_STREAM FIELD16(0x00f0)
2323#define EEPROM_NIC_CONF2_CRYSTAL FIELD16(0x0600) 2347#define EEPROM_NIC_CONF2_CRYSTAL FIELD16(0x0600)
@@ -2325,54 +2349,46 @@ struct mac_iveiv_entry {
2325/* 2349/*
2326 * EEPROM LNA 2350 * EEPROM LNA
2327 */ 2351 */
2328#define EEPROM_LNA 0x0022
2329#define EEPROM_LNA_BG FIELD16(0x00ff) 2352#define EEPROM_LNA_BG FIELD16(0x00ff)
2330#define EEPROM_LNA_A0 FIELD16(0xff00) 2353#define EEPROM_LNA_A0 FIELD16(0xff00)
2331 2354
2332/* 2355/*
2333 * EEPROM RSSI BG offset 2356 * EEPROM RSSI BG offset
2334 */ 2357 */
2335#define EEPROM_RSSI_BG 0x0023
2336#define EEPROM_RSSI_BG_OFFSET0 FIELD16(0x00ff) 2358#define EEPROM_RSSI_BG_OFFSET0 FIELD16(0x00ff)
2337#define EEPROM_RSSI_BG_OFFSET1 FIELD16(0xff00) 2359#define EEPROM_RSSI_BG_OFFSET1 FIELD16(0xff00)
2338 2360
2339/* 2361/*
2340 * EEPROM RSSI BG2 offset 2362 * EEPROM RSSI BG2 offset
2341 */ 2363 */
2342#define EEPROM_RSSI_BG2 0x0024
2343#define EEPROM_RSSI_BG2_OFFSET2 FIELD16(0x00ff) 2364#define EEPROM_RSSI_BG2_OFFSET2 FIELD16(0x00ff)
2344#define EEPROM_RSSI_BG2_LNA_A1 FIELD16(0xff00) 2365#define EEPROM_RSSI_BG2_LNA_A1 FIELD16(0xff00)
2345 2366
2346/* 2367/*
2347 * EEPROM TXMIXER GAIN BG offset (note overlaps with EEPROM RSSI BG2). 2368 * EEPROM TXMIXER GAIN BG offset (note overlaps with EEPROM RSSI BG2).
2348 */ 2369 */
2349#define EEPROM_TXMIXER_GAIN_BG 0x0024
2350#define EEPROM_TXMIXER_GAIN_BG_VAL FIELD16(0x0007) 2370#define EEPROM_TXMIXER_GAIN_BG_VAL FIELD16(0x0007)
2351 2371
2352/* 2372/*
2353 * EEPROM RSSI A offset 2373 * EEPROM RSSI A offset
2354 */ 2374 */
2355#define EEPROM_RSSI_A 0x0025
2356#define EEPROM_RSSI_A_OFFSET0 FIELD16(0x00ff) 2375#define EEPROM_RSSI_A_OFFSET0 FIELD16(0x00ff)
2357#define EEPROM_RSSI_A_OFFSET1 FIELD16(0xff00) 2376#define EEPROM_RSSI_A_OFFSET1 FIELD16(0xff00)
2358 2377
2359/* 2378/*
2360 * EEPROM RSSI A2 offset 2379 * EEPROM RSSI A2 offset
2361 */ 2380 */
2362#define EEPROM_RSSI_A2 0x0026
2363#define EEPROM_RSSI_A2_OFFSET2 FIELD16(0x00ff) 2381#define EEPROM_RSSI_A2_OFFSET2 FIELD16(0x00ff)
2364#define EEPROM_RSSI_A2_LNA_A2 FIELD16(0xff00) 2382#define EEPROM_RSSI_A2_LNA_A2 FIELD16(0xff00)
2365 2383
2366/* 2384/*
2367 * EEPROM TXMIXER GAIN A offset (note overlaps with EEPROM RSSI A2). 2385 * EEPROM TXMIXER GAIN A offset (note overlaps with EEPROM RSSI A2).
2368 */ 2386 */
2369#define EEPROM_TXMIXER_GAIN_A 0x0026
2370#define EEPROM_TXMIXER_GAIN_A_VAL FIELD16(0x0007) 2387#define EEPROM_TXMIXER_GAIN_A_VAL FIELD16(0x0007)
2371 2388
2372/* 2389/*
2373 * EEPROM EIRP Maximum TX power values(unit: dbm) 2390 * EEPROM EIRP Maximum TX power values(unit: dbm)
2374 */ 2391 */
2375#define EEPROM_EIRP_MAX_TX_POWER 0x0027
2376#define EEPROM_EIRP_MAX_TX_POWER_2GHZ FIELD16(0x00ff) 2392#define EEPROM_EIRP_MAX_TX_POWER_2GHZ FIELD16(0x00ff)
2377#define EEPROM_EIRP_MAX_TX_POWER_5GHZ FIELD16(0xff00) 2393#define EEPROM_EIRP_MAX_TX_POWER_5GHZ FIELD16(0xff00)
2378 2394
@@ -2383,7 +2399,6 @@ struct mac_iveiv_entry {
2383 * TYPE: 1: Plus the delta value, 0: minus the delta value 2399 * TYPE: 1: Plus the delta value, 0: minus the delta value
2384 * ENABLE: enable tx power compensation for 40BW 2400 * ENABLE: enable tx power compensation for 40BW
2385 */ 2401 */
2386#define EEPROM_TXPOWER_DELTA 0x0028
2387#define EEPROM_TXPOWER_DELTA_VALUE_2G FIELD16(0x003f) 2402#define EEPROM_TXPOWER_DELTA_VALUE_2G FIELD16(0x003f)
2388#define EEPROM_TXPOWER_DELTA_TYPE_2G FIELD16(0x0040) 2403#define EEPROM_TXPOWER_DELTA_TYPE_2G FIELD16(0x0040)
2389#define EEPROM_TXPOWER_DELTA_ENABLE_2G FIELD16(0x0080) 2404#define EEPROM_TXPOWER_DELTA_ENABLE_2G FIELD16(0x0080)
@@ -2394,8 +2409,6 @@ struct mac_iveiv_entry {
2394/* 2409/*
2395 * EEPROM TXPOWER 802.11BG 2410 * EEPROM TXPOWER 802.11BG
2396 */ 2411 */
2397#define EEPROM_TXPOWER_BG1 0x0029
2398#define EEPROM_TXPOWER_BG2 0x0030
2399#define EEPROM_TXPOWER_BG_SIZE 7 2412#define EEPROM_TXPOWER_BG_SIZE 7
2400#define EEPROM_TXPOWER_BG_1 FIELD16(0x00ff) 2413#define EEPROM_TXPOWER_BG_1 FIELD16(0x00ff)
2401#define EEPROM_TXPOWER_BG_2 FIELD16(0xff00) 2414#define EEPROM_TXPOWER_BG_2 FIELD16(0xff00)
@@ -2407,7 +2420,6 @@ struct mac_iveiv_entry {
2407 * MINUS3: If the actual TSSI is below this boundary, tx power needs to be 2420 * MINUS3: If the actual TSSI is below this boundary, tx power needs to be
2408 * reduced by (agc_step * -3) 2421 * reduced by (agc_step * -3)
2409 */ 2422 */
2410#define EEPROM_TSSI_BOUND_BG1 0x0037
2411#define EEPROM_TSSI_BOUND_BG1_MINUS4 FIELD16(0x00ff) 2423#define EEPROM_TSSI_BOUND_BG1_MINUS4 FIELD16(0x00ff)
2412#define EEPROM_TSSI_BOUND_BG1_MINUS3 FIELD16(0xff00) 2424#define EEPROM_TSSI_BOUND_BG1_MINUS3 FIELD16(0xff00)
2413 2425
@@ -2418,7 +2430,6 @@ struct mac_iveiv_entry {
2418 * MINUS1: If the actual TSSI is below this boundary, tx power needs to be 2430 * MINUS1: If the actual TSSI is below this boundary, tx power needs to be
2419 * reduced by (agc_step * -1) 2431 * reduced by (agc_step * -1)
2420 */ 2432 */
2421#define EEPROM_TSSI_BOUND_BG2 0x0038
2422#define EEPROM_TSSI_BOUND_BG2_MINUS2 FIELD16(0x00ff) 2433#define EEPROM_TSSI_BOUND_BG2_MINUS2 FIELD16(0x00ff)
2423#define EEPROM_TSSI_BOUND_BG2_MINUS1 FIELD16(0xff00) 2434#define EEPROM_TSSI_BOUND_BG2_MINUS1 FIELD16(0xff00)
2424 2435
@@ -2428,7 +2439,6 @@ struct mac_iveiv_entry {
2428 * PLUS1: If the actual TSSI is above this boundary, tx power needs to be 2439 * PLUS1: If the actual TSSI is above this boundary, tx power needs to be
2429 * increased by (agc_step * 1) 2440 * increased by (agc_step * 1)
2430 */ 2441 */
2431#define EEPROM_TSSI_BOUND_BG3 0x0039
2432#define EEPROM_TSSI_BOUND_BG3_REF FIELD16(0x00ff) 2442#define EEPROM_TSSI_BOUND_BG3_REF FIELD16(0x00ff)
2433#define EEPROM_TSSI_BOUND_BG3_PLUS1 FIELD16(0xff00) 2443#define EEPROM_TSSI_BOUND_BG3_PLUS1 FIELD16(0xff00)
2434 2444
@@ -2439,7 +2449,6 @@ struct mac_iveiv_entry {
2439 * PLUS3: If the actual TSSI is above this boundary, tx power needs to be 2449 * PLUS3: If the actual TSSI is above this boundary, tx power needs to be
2440 * increased by (agc_step * 3) 2450 * increased by (agc_step * 3)
2441 */ 2451 */
2442#define EEPROM_TSSI_BOUND_BG4 0x003a
2443#define EEPROM_TSSI_BOUND_BG4_PLUS2 FIELD16(0x00ff) 2452#define EEPROM_TSSI_BOUND_BG4_PLUS2 FIELD16(0x00ff)
2444#define EEPROM_TSSI_BOUND_BG4_PLUS3 FIELD16(0xff00) 2453#define EEPROM_TSSI_BOUND_BG4_PLUS3 FIELD16(0xff00)
2445 2454
@@ -2449,15 +2458,12 @@ struct mac_iveiv_entry {
2449 * increased by (agc_step * 4) 2458 * increased by (agc_step * 4)
2450 * AGC_STEP: Temperature compensation step. 2459 * AGC_STEP: Temperature compensation step.
2451 */ 2460 */
2452#define EEPROM_TSSI_BOUND_BG5 0x003b
2453#define EEPROM_TSSI_BOUND_BG5_PLUS4 FIELD16(0x00ff) 2461#define EEPROM_TSSI_BOUND_BG5_PLUS4 FIELD16(0x00ff)
2454#define EEPROM_TSSI_BOUND_BG5_AGC_STEP FIELD16(0xff00) 2462#define EEPROM_TSSI_BOUND_BG5_AGC_STEP FIELD16(0xff00)
2455 2463
2456/* 2464/*
2457 * EEPROM TXPOWER 802.11A 2465 * EEPROM TXPOWER 802.11A
2458 */ 2466 */
2459#define EEPROM_TXPOWER_A1 0x003c
2460#define EEPROM_TXPOWER_A2 0x0053
2461#define EEPROM_TXPOWER_A_SIZE 6 2467#define EEPROM_TXPOWER_A_SIZE 6
2462#define EEPROM_TXPOWER_A_1 FIELD16(0x00ff) 2468#define EEPROM_TXPOWER_A_1 FIELD16(0x00ff)
2463#define EEPROM_TXPOWER_A_2 FIELD16(0xff00) 2469#define EEPROM_TXPOWER_A_2 FIELD16(0xff00)
@@ -2469,7 +2475,6 @@ struct mac_iveiv_entry {
2469 * MINUS3: If the actual TSSI is below this boundary, tx power needs to be 2475 * MINUS3: If the actual TSSI is below this boundary, tx power needs to be
2470 * reduced by (agc_step * -3) 2476 * reduced by (agc_step * -3)
2471 */ 2477 */
2472#define EEPROM_TSSI_BOUND_A1 0x006a
2473#define EEPROM_TSSI_BOUND_A1_MINUS4 FIELD16(0x00ff) 2478#define EEPROM_TSSI_BOUND_A1_MINUS4 FIELD16(0x00ff)
2474#define EEPROM_TSSI_BOUND_A1_MINUS3 FIELD16(0xff00) 2479#define EEPROM_TSSI_BOUND_A1_MINUS3 FIELD16(0xff00)
2475 2480
@@ -2480,7 +2485,6 @@ struct mac_iveiv_entry {
2480 * MINUS1: If the actual TSSI is below this boundary, tx power needs to be 2485 * MINUS1: If the actual TSSI is below this boundary, tx power needs to be
2481 * reduced by (agc_step * -1) 2486 * reduced by (agc_step * -1)
2482 */ 2487 */
2483#define EEPROM_TSSI_BOUND_A2 0x006b
2484#define EEPROM_TSSI_BOUND_A2_MINUS2 FIELD16(0x00ff) 2488#define EEPROM_TSSI_BOUND_A2_MINUS2 FIELD16(0x00ff)
2485#define EEPROM_TSSI_BOUND_A2_MINUS1 FIELD16(0xff00) 2489#define EEPROM_TSSI_BOUND_A2_MINUS1 FIELD16(0xff00)
2486 2490
@@ -2490,7 +2494,6 @@ struct mac_iveiv_entry {
2490 * PLUS1: If the actual TSSI is above this boundary, tx power needs to be 2494 * PLUS1: If the actual TSSI is above this boundary, tx power needs to be
2491 * increased by (agc_step * 1) 2495 * increased by (agc_step * 1)
2492 */ 2496 */
2493#define EEPROM_TSSI_BOUND_A3 0x006c
2494#define EEPROM_TSSI_BOUND_A3_REF FIELD16(0x00ff) 2497#define EEPROM_TSSI_BOUND_A3_REF FIELD16(0x00ff)
2495#define EEPROM_TSSI_BOUND_A3_PLUS1 FIELD16(0xff00) 2498#define EEPROM_TSSI_BOUND_A3_PLUS1 FIELD16(0xff00)
2496 2499
@@ -2501,7 +2504,6 @@ struct mac_iveiv_entry {
2501 * PLUS3: If the actual TSSI is above this boundary, tx power needs to be 2504 * PLUS3: If the actual TSSI is above this boundary, tx power needs to be
2502 * increased by (agc_step * 3) 2505 * increased by (agc_step * 3)
2503 */ 2506 */
2504#define EEPROM_TSSI_BOUND_A4 0x006d
2505#define EEPROM_TSSI_BOUND_A4_PLUS2 FIELD16(0x00ff) 2507#define EEPROM_TSSI_BOUND_A4_PLUS2 FIELD16(0x00ff)
2506#define EEPROM_TSSI_BOUND_A4_PLUS3 FIELD16(0xff00) 2508#define EEPROM_TSSI_BOUND_A4_PLUS3 FIELD16(0xff00)
2507 2509
@@ -2511,14 +2513,12 @@ struct mac_iveiv_entry {
2511 * increased by (agc_step * 4) 2513 * increased by (agc_step * 4)
2512 * AGC_STEP: Temperature compensation step. 2514 * AGC_STEP: Temperature compensation step.
2513 */ 2515 */
2514#define EEPROM_TSSI_BOUND_A5 0x006e
2515#define EEPROM_TSSI_BOUND_A5_PLUS4 FIELD16(0x00ff) 2516#define EEPROM_TSSI_BOUND_A5_PLUS4 FIELD16(0x00ff)
2516#define EEPROM_TSSI_BOUND_A5_AGC_STEP FIELD16(0xff00) 2517#define EEPROM_TSSI_BOUND_A5_AGC_STEP FIELD16(0xff00)
2517 2518
2518/* 2519/*
2519 * EEPROM TXPOWER by rate: tx power per tx rate for HT20 mode 2520 * EEPROM TXPOWER by rate: tx power per tx rate for HT20 mode
2520 */ 2521 */
2521#define EEPROM_TXPOWER_BYRATE 0x006f
2522#define EEPROM_TXPOWER_BYRATE_SIZE 9 2522#define EEPROM_TXPOWER_BYRATE_SIZE 9
2523 2523
2524#define EEPROM_TXPOWER_BYRATE_RATE0 FIELD16(0x000f) 2524#define EEPROM_TXPOWER_BYRATE_RATE0 FIELD16(0x000f)
@@ -2529,7 +2529,6 @@ struct mac_iveiv_entry {
2529/* 2529/*
2530 * EEPROM BBP. 2530 * EEPROM BBP.
2531 */ 2531 */
2532#define EEPROM_BBP_START 0x0078
2533#define EEPROM_BBP_SIZE 16 2532#define EEPROM_BBP_SIZE 16
2534#define EEPROM_BBP_VALUE FIELD16(0x00ff) 2533#define EEPROM_BBP_VALUE FIELD16(0x00ff)
2535#define EEPROM_BBP_REG_ID FIELD16(0xff00) 2534#define EEPROM_BBP_REG_ID FIELD16(0xff00)