diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.h | 47 |
1 files changed, 39 insertions, 8 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.h b/drivers/net/wireless/rt2x00/rt2500usb.h index a37a068d0c71..4769ffeb4cc6 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.h +++ b/drivers/net/wireless/rt2x00/rt2500usb.h | |||
@@ -48,8 +48,6 @@ | |||
48 | * Signal information. | 48 | * Signal information. |
49 | * Defaul offset is required for RSSI <-> dBm conversion. | 49 | * Defaul offset is required for RSSI <-> dBm conversion. |
50 | */ | 50 | */ |
51 | #define MAX_SIGNAL 100 | ||
52 | #define MAX_RX_SSI -1 | ||
53 | #define DEFAULT_RSSI_OFFSET 120 | 51 | #define DEFAULT_RSSI_OFFSET 120 |
54 | 52 | ||
55 | /* | 53 | /* |
@@ -63,6 +61,11 @@ | |||
63 | #define RF_SIZE 0x0014 | 61 | #define RF_SIZE 0x0014 |
64 | 62 | ||
65 | /* | 63 | /* |
64 | * Number of TX queues. | ||
65 | */ | ||
66 | #define NUM_TX_QUEUES 2 | ||
67 | |||
68 | /* | ||
66 | * Control/Status Registers(CSR). | 69 | * Control/Status Registers(CSR). |
67 | * Some values are set in TU, whereas 1 TU == 1024 us. | 70 | * Some values are set in TU, whereas 1 TU == 1024 us. |
68 | */ | 71 | */ |
@@ -206,7 +209,7 @@ | |||
206 | #define MAC_CSR21_OFF_PERIOD FIELD16(0xff00) | 209 | #define MAC_CSR21_OFF_PERIOD FIELD16(0xff00) |
207 | 210 | ||
208 | /* | 211 | /* |
209 | * Collision window control register. | 212 | * MAC_CSR22: Collision window control register. |
210 | */ | 213 | */ |
211 | #define MAC_CSR22 0x042c | 214 | #define MAC_CSR22 0x042c |
212 | 215 | ||
@@ -293,7 +296,7 @@ | |||
293 | #define TXRX_CSR7_BBP_ID1_VALID FIELD16(0x8000) | 296 | #define TXRX_CSR7_BBP_ID1_VALID FIELD16(0x8000) |
294 | 297 | ||
295 | /* | 298 | /* |
296 | * TXRX_CSR5: OFDM TX BBP ID1. | 299 | * TXRX_CSR8: OFDM TX BBP ID1. |
297 | */ | 300 | */ |
298 | #define TXRX_CSR8 0x0450 | 301 | #define TXRX_CSR8 0x0450 |
299 | #define TXRX_CSR8_BBP_ID0 FIELD16(0x007f) | 302 | #define TXRX_CSR8_BBP_ID0 FIELD16(0x007f) |
@@ -367,7 +370,14 @@ | |||
367 | */ | 370 | */ |
368 | 371 | ||
369 | /* | 372 | /* |
370 | * SEC_CSR0-SEC_CSR7: Shared key 0, word 0-7 | 373 | * SEC_CSR0: Shared key 0, word 0 |
374 | * SEC_CSR1: Shared key 0, word 1 | ||
375 | * SEC_CSR2: Shared key 0, word 2 | ||
376 | * SEC_CSR3: Shared key 0, word 3 | ||
377 | * SEC_CSR4: Shared key 0, word 4 | ||
378 | * SEC_CSR5: Shared key 0, word 5 | ||
379 | * SEC_CSR6: Shared key 0, word 6 | ||
380 | * SEC_CSR7: Shared key 0, word 7 | ||
371 | */ | 381 | */ |
372 | #define SEC_CSR0 0x0480 | 382 | #define SEC_CSR0 0x0480 |
373 | #define SEC_CSR1 0x0482 | 383 | #define SEC_CSR1 0x0482 |
@@ -379,7 +389,14 @@ | |||
379 | #define SEC_CSR7 0x048e | 389 | #define SEC_CSR7 0x048e |
380 | 390 | ||
381 | /* | 391 | /* |
382 | * SEC_CSR8-SEC_CSR15: Shared key 1, word 0-7 | 392 | * SEC_CSR8: Shared key 1, word 0 |
393 | * SEC_CSR9: Shared key 1, word 1 | ||
394 | * SEC_CSR10: Shared key 1, word 2 | ||
395 | * SEC_CSR11: Shared key 1, word 3 | ||
396 | * SEC_CSR12: Shared key 1, word 4 | ||
397 | * SEC_CSR13: Shared key 1, word 5 | ||
398 | * SEC_CSR14: Shared key 1, word 6 | ||
399 | * SEC_CSR15: Shared key 1, word 7 | ||
383 | */ | 400 | */ |
384 | #define SEC_CSR8 0x0490 | 401 | #define SEC_CSR8 0x0490 |
385 | #define SEC_CSR9 0x0492 | 402 | #define SEC_CSR9 0x0492 |
@@ -391,7 +408,14 @@ | |||
391 | #define SEC_CSR15 0x049e | 408 | #define SEC_CSR15 0x049e |
392 | 409 | ||
393 | /* | 410 | /* |
394 | * SEC_CSR16-SEC_CSR23: Shared key 2, word 0-7 | 411 | * SEC_CSR16: Shared key 2, word 0 |
412 | * SEC_CSR17: Shared key 2, word 1 | ||
413 | * SEC_CSR18: Shared key 2, word 2 | ||
414 | * SEC_CSR19: Shared key 2, word 3 | ||
415 | * SEC_CSR20: Shared key 2, word 4 | ||
416 | * SEC_CSR21: Shared key 2, word 5 | ||
417 | * SEC_CSR22: Shared key 2, word 6 | ||
418 | * SEC_CSR23: Shared key 2, word 7 | ||
395 | */ | 419 | */ |
396 | #define SEC_CSR16 0x04a0 | 420 | #define SEC_CSR16 0x04a0 |
397 | #define SEC_CSR17 0x04a2 | 421 | #define SEC_CSR17 0x04a2 |
@@ -403,7 +427,14 @@ | |||
403 | #define SEC_CSR23 0x04ae | 427 | #define SEC_CSR23 0x04ae |
404 | 428 | ||
405 | /* | 429 | /* |
406 | * SEC_CSR24-SEC_CSR31: Shared key 3, word 0-7 | 430 | * SEC_CSR24: Shared key 3, word 0 |
431 | * SEC_CSR25: Shared key 3, word 1 | ||
432 | * SEC_CSR26: Shared key 3, word 2 | ||
433 | * SEC_CSR27: Shared key 3, word 3 | ||
434 | * SEC_CSR28: Shared key 3, word 4 | ||
435 | * SEC_CSR29: Shared key 3, word 5 | ||
436 | * SEC_CSR30: Shared key 3, word 6 | ||
437 | * SEC_CSR31: Shared key 3, word 7 | ||
407 | */ | 438 | */ |
408 | #define SEC_CSR24 0x04b0 | 439 | #define SEC_CSR24 0x04b0 |
409 | #define SEC_CSR25 0x04b2 | 440 | #define SEC_CSR25 0x04b2 |