AR_PHY_BASE
OS_REG_WRITE(ah, (AR_PHY_BASE + (0x34 << 2)), 0x00001c16);
OS_REG_WRITE(ah, (AR_PHY_BASE + (0x20 << 2)), 0x00010000);
revid = (OS_REG_READ(ah, AR_PHY_BASE + (256 << 2)) >> 28) & 0xf;
nf = (OS_REG_READ(ah, AR_PHY_BASE + (25 << 2)) >> 19) & 0x1ff;
#define AR_PHY(_n) (AR_PHY_BASE + ((_n)<<2))
OS_REG_WRITE(ah, (AR_PHY_BASE + (0x34 << 2)), 0x00001c16);
OS_REG_WRITE(ah, (AR_PHY_BASE + (0x20 << 2)), 0x00010000);
val = (OS_REG_READ(ah, AR_PHY_BASE + (256 << 2)) >> 24) & 0xff;
OS_REG_WRITE(ah, AR_PHY_BASE, 0x00000007);
OS_REG_WRITE(ah, AR_PHY_BASE, 0x00000047);
OS_REG_WRITE(ah, AR_PHY_BASE, 0x00004007);
OS_REG_WRITE(ah, AR_PHY_BASE, 0x00000007);
uint32_t regAddr[2] = { AR_STA_ID0, AR_PHY_BASE+(8 << 2) };
OS_REG_SET_BIT(ah, AR_PHY_BASE, 0x00002000);
OS_REG_WRITE(ah, AR_PHY_BASE + (90 << 2),
OS_REG_WRITE(ah, AR_PHY_BASE + (17 << 2),
(OS_REG_READ(ah, AR_PHY_BASE + (17 << 2)) & 0xFFFFC07F) |
OS_REG_WRITE(ah, AR_PHY_BASE + (18 << 2),
(OS_REG_READ(ah, AR_PHY_BASE + (18 << 2)) & 0xFFFC0FFF) |
OS_REG_WRITE(ah, AR_PHY_BASE + (20 << 2),
(OS_REG_READ(ah, AR_PHY_BASE + (20 << 2)) & 0xFFFF0000) |
OS_REG_WRITE(ah, AR_PHY_BASE + (13 << 2),
OS_REG_WRITE(ah, AR_PHY_BASE + (10 << 2),
(OS_REG_READ(ah, AR_PHY_BASE + (10 << 2)) & 0xFFFF00FF) |
OS_REG_WRITE(ah, AR_PHY_BASE + (25 << 2),
(OS_REG_READ(ah, AR_PHY_BASE + (25 << 2)) & 0xFFF80FFF) |
addr = AR_PHY_BASE + (608 << 2);
OS_REG_WRITE(ah, AR_PHY_BASE, 0x00000007);
OS_REG_WRITE(ah, AR_PHY_BASE, 0x00000047);
#define AR_PHY(_n) (AR_PHY_BASE + ((_n)<<2))
uint32_t regAddr[2] = { AR_STA_ID0, AR_PHY_BASE+(8 << 2) };
#define AR_PHY(_n) (AR_PHY_BASE + ((_n)<<2))
regOffset = AR_PHY_BASE + (672 << 2) + regChainOffset;
#define AR_PHY(reg) (AR_PHY_BASE + (reg) * 4)
#define AR_PHY_TURBO (AR_PHY_BASE + 0x0004)
#define AR_PHY_RF_CTL3 (AR_PHY_BASE + 0x0028)
#define AR_PHY_RF_CTL4 (AR_PHY_BASE + 0x0034)
#define AR_PHY_SETTLING (AR_PHY_BASE + 0x0044)
#define AR_PHY_RXGAIN (AR_PHY_BASE + 0x0048)
#define AR_PHY_DESIRED_SZ (AR_PHY_BASE + 0x0050)
#define AR_PHY_FIND_SIG (AR_PHY_BASE + 0x0058)
#define AR_PHY_AGC_CTL1 (AR_PHY_BASE + 0x005c)
#define AR_PHY_SFCORR (AR_PHY_BASE + 0x0068)
#define AR_PHY_SFCORR_LOW (AR_PHY_BASE + 0x006c)
#define AR_PHY_TIMING_CTRL4 (AR_PHY_BASE + 0x0120)
#define AR_PHY_TIMING5 (AR_PHY_BASE + 0x0124)
#define AR_PHY_POWER_TX_RATE1 (AR_PHY_BASE + 0x0134)
#define AR_PHY_POWER_TX_RATE2 (AR_PHY_BASE + 0x0138)
#define AR_PHY_POWER_TX_RATE_MAX (AR_PHY_BASE + 0x013c)
#define AR_PHY_SWITCH_CHAIN_0 (AR_PHY_BASE + 0x0160)
#define AR_PHY_SWITCH_COM (AR_PHY_BASE + 0x0164)
#define AR_PHY_HEAVY_CLIP_ENABLE (AR_PHY_BASE + 0x01e0)
#define AR_PHY_CCK_DETECT (AR_PHY_BASE + 0x0a08)
#define AR_PHY_GAIN_2GHZ (AR_PHY_BASE + 0x0a0c)
#define AR_PHY_POWER_TX_RATE3 (AR_PHY_BASE + 0x0a34)
#define AR_PHY_POWER_TX_RATE4 (AR_PHY_BASE + 0x0a38)
#define AR_PHY_TPCRG1 (AR_PHY_BASE + 0x0a58)
#define AR_PHY_POWER_TX_RATE5 (AR_PHY_BASE + 0x0b8c)
#define AR_PHY_POWER_TX_RATE6 (AR_PHY_BASE + 0x0b90)
#define AR_PHY_POWER_TX_RATE7 (AR_PHY_BASE + 0x0bcc)
#define AR_PHY_POWER_TX_RATE8 (AR_PHY_BASE + 0x0bd0)
#define AR_PHY_POWER_TX_RATE9 (AR_PHY_BASE + 0x0bd4)
#define AR_PHY_CCA (AR_PHY_BASE + 0x3064)
} else if (AR_PHY_BASE <= r->reg) {
(r->reg - AR_PHY_BASE) >> 2, r->reg);