diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/reg.h')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/reg.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/net/wireless/ath/ath5k/reg.h b/drivers/net/wireless/ath/ath5k/reg.h index c63ea6afd96f..1464f89b249c 100644 --- a/drivers/net/wireless/ath/ath5k/reg.h +++ b/drivers/net/wireless/ath/ath5k/reg.h | |||
@@ -35,7 +35,7 @@ | |||
35 | * released by Atheros and on various debug messages found on the net. | 35 | * released by Atheros and on various debug messages found on the net. |
36 | */ | 36 | */ |
37 | 37 | ||
38 | 38 | #include "../reg.h" | |
39 | 39 | ||
40 | /*====MAC DMA REGISTERS====*/ | 40 | /*====MAC DMA REGISTERS====*/ |
41 | 41 | ||
@@ -1650,12 +1650,6 @@ | |||
1650 | #define AR5K_SLEEP2_DTIM_PER_S 16 | 1650 | #define AR5K_SLEEP2_DTIM_PER_S 16 |
1651 | 1651 | ||
1652 | /* | 1652 | /* |
1653 | * BSSID mask registers | ||
1654 | */ | ||
1655 | #define AR5K_BSS_IDM0 0x80e0 /* Upper bits */ | ||
1656 | #define AR5K_BSS_IDM1 0x80e4 /* Lower bits */ | ||
1657 | |||
1658 | /* | ||
1659 | * TX power control (TPC) register | 1653 | * TX power control (TPC) register |
1660 | * | 1654 | * |
1661 | * XXX: PCDAC steps (0.5dbm) or DBM ? | 1655 | * XXX: PCDAC steps (0.5dbm) or DBM ? |
@@ -2039,17 +2033,14 @@ | |||
2039 | #define AR5K_PHY_AGCCTL_NF_NOUPDATE 0x00020000 /* Don't update nf automaticaly */ | 2033 | #define AR5K_PHY_AGCCTL_NF_NOUPDATE 0x00020000 /* Don't update nf automaticaly */ |
2040 | 2034 | ||
2041 | /* | 2035 | /* |
2042 | * PHY noise floor status register | 2036 | * PHY noise floor status register (CCA = Clear Channel Assessment) |
2043 | */ | 2037 | */ |
2044 | #define AR5K_PHY_NF 0x9864 /* Register address */ | 2038 | #define AR5K_PHY_NF 0x9864 /* Register address */ |
2045 | #define AR5K_PHY_NF_M 0x000001ff /* Noise floor mask */ | 2039 | #define AR5K_PHY_NF_M 0x000001ff /* Noise floor, written to hardware in 1/2 dBm units */ |
2046 | #define AR5K_PHY_NF_ACTIVE 0x00000100 /* Noise floor calibration still active */ | 2040 | #define AR5K_PHY_NF_SVAL(_n) (((_n) & AR5K_PHY_NF_M) | (1 << 9)) |
2047 | #define AR5K_PHY_NF_RVAL(_n) (((_n) >> 19) & AR5K_PHY_NF_M) | ||
2048 | #define AR5K_PHY_NF_AVAL(_n) (-((_n) ^ AR5K_PHY_NF_M) + 1) | ||
2049 | #define AR5K_PHY_NF_SVAL(_n) (((_n) & AR5K_PHY_NF_M) | (1 << 9)) | ||
2050 | #define AR5K_PHY_NF_THRESH62 0x0007f000 /* Thresh62 -check ANI patent- (field) */ | 2041 | #define AR5K_PHY_NF_THRESH62 0x0007f000 /* Thresh62 -check ANI patent- (field) */ |
2051 | #define AR5K_PHY_NF_THRESH62_S 12 | 2042 | #define AR5K_PHY_NF_THRESH62_S 12 |
2052 | #define AR5K_PHY_NF_MINCCA_PWR 0x0ff80000 /* ??? */ | 2043 | #define AR5K_PHY_NF_MINCCA_PWR 0x0ff80000 /* Minimum measured noise level, read from hardware in 1 dBm units */ |
2053 | #define AR5K_PHY_NF_MINCCA_PWR_S 19 | 2044 | #define AR5K_PHY_NF_MINCCA_PWR_S 19 |
2054 | 2045 | ||
2055 | /* | 2046 | /* |
@@ -2196,6 +2187,7 @@ | |||
2196 | */ | 2187 | */ |
2197 | #define AR5K_PHY_IQ 0x9920 /* Register Address */ | 2188 | #define AR5K_PHY_IQ 0x9920 /* Register Address */ |
2198 | #define AR5K_PHY_IQ_CORR_Q_Q_COFF 0x0000001f /* Mask for q correction info */ | 2189 | #define AR5K_PHY_IQ_CORR_Q_Q_COFF 0x0000001f /* Mask for q correction info */ |
2190 | #define AR5K_PHY_IQ_CORR_Q_Q_COFF_S 0 | ||
2199 | #define AR5K_PHY_IQ_CORR_Q_I_COFF 0x000007e0 /* Mask for i correction info */ | 2191 | #define AR5K_PHY_IQ_CORR_Q_I_COFF 0x000007e0 /* Mask for i correction info */ |
2200 | #define AR5K_PHY_IQ_CORR_Q_I_COFF_S 5 | 2192 | #define AR5K_PHY_IQ_CORR_Q_I_COFF_S 5 |
2201 | #define AR5K_PHY_IQ_CORR_ENABLE 0x00000800 /* Enable i/q correction */ | 2193 | #define AR5K_PHY_IQ_CORR_ENABLE 0x00000800 /* Enable i/q correction */ |