require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&AR_ISR_S2_S)) {
    sub AR_ISR_S2_S () {	0xcc;}
}
unless(defined(&AR_ISR_S3_S)) {
    sub AR_ISR_S3_S () {	0xd0;}
}
unless(defined(&AR_ISR_S4_S)) {
    sub AR_ISR_S4_S () {	0xd4;}
}
unless(defined(&AR_ISR_S5_S)) {
    sub AR_ISR_S5_S () {	0xd8;}
}
unless(defined(&AR_GPIO_IN_OUT)) {
    sub AR_GPIO_IN_OUT () {	0x4048;}
}
unless(defined(&AR_GPIO_OE_OUT)) {
    sub AR_GPIO_OE_OUT () {	0x404c;}
}
unless(defined(&AR_GPIO_INTR_POL)) {
    sub AR_GPIO_INTR_POL () {	0x4050;}
}
unless(defined(&AR_GPIO_INPUT_EN_VAL)) {
    sub AR_GPIO_INPUT_EN_VAL () {	0x4054;}
}
unless(defined(&AR_GPIO_INPUT_MUX1)) {
    sub AR_GPIO_INPUT_MUX1 () {	0x4058;}
}
unless(defined(&AR_GPIO_INPUT_MUX2)) {
    sub AR_GPIO_INPUT_MUX2 () {	0x405c;}
}
unless(defined(&AR_GPIO_OUTPUT_MUX)) {
    sub AR_GPIO_OUTPUT_MUX {
	my($i) = @_;
	eval q((0x4060 + ($i) * 4));
    }
}
unless(defined(&AR_INPUT_STATE)) {
    sub AR_INPUT_STATE () {	0x406c;}
}
unless(defined(&AR_EEPROM_STATUS_DATA)) {
    sub AR_EEPROM_STATUS_DATA () {	0x407c;}
}
unless(defined(&AR_OBS)) {
    sub AR_OBS () {	0x4080;}
}
unless(defined(&AR_GPIO_PDPU)) {
    sub AR_GPIO_PDPU () {	0x4088;}
}
unless(defined(&AR_PCIE_MSI)) {
    sub AR_PCIE_MSI () {	0x4094;}
}
unless(defined(&AR_IS_ANALOG_REG)) {
    sub AR_IS_ANALOG_REG {
	my($reg) = @_;
	eval q((($reg) >= 0x7800  && ($reg) <= 0x78b4));
    }
}
unless(defined(&AR_AN_RF2G1_CH0)) {
    sub AR_AN_RF2G1_CH0 () {	0x7810;}
}
unless(defined(&AR_AN_RF5G1_CH0)) {
    sub AR_AN_RF5G1_CH0 () {	0x7818;}
}
unless(defined(&AR_AN_RF2G1_CH1)) {
    sub AR_AN_RF2G1_CH1 () {	0x7834;}
}
unless(defined(&AR_AN_RF5G1_CH1)) {
    sub AR_AN_RF5G1_CH1 () {	0x783c;}
}
unless(defined(&AR_AN_SYNTH9)) {
    sub AR_AN_SYNTH9 () {	0x7868;}
}
unless(defined(&AR_AN_TOP1)) {
    sub AR_AN_TOP1 () {	0x7890;}
}
unless(defined(&AR_AN_TOP2)) {
    sub AR_AN_TOP2 () {	0x7894;}
}
unless(defined(&AR_PHY_BASE)) {
    sub AR_PHY_BASE () {	0x9800;}
}
unless(defined(&AR_PHY)) {
    sub AR_PHY {
	my($i) = @_;
	eval q(( &AR_PHY_BASE + ($i) * 4));
    }
}
unless(defined(&AR_PHY_TEST)) {
    sub AR_PHY_TEST () {	0x9800;}
}
unless(defined(&AR_PHY_TURBO)) {
    sub AR_PHY_TURBO () {	0x9804;}
}
unless(defined(&AR_PHY_TEST2)) {
    sub AR_PHY_TEST2 () {	0x9808;}
}
unless(defined(&AR_PHY_TIMING2)) {
    sub AR_PHY_TIMING2 () {	0x9810;}
}
unless(defined(&AR_PHY_TIMING3)) {
    sub AR_PHY_TIMING3 () {	0x9814;}
}
unless(defined(&AR_PHY_CHIP_ID)) {
    sub AR_PHY_CHIP_ID () {	0x9818;}
}
unless(defined(&AR_PHY_ACTIVE)) {
    sub AR_PHY_ACTIVE () {	0x981c;}
}
unless(defined(&AR_PHY_RF_CTL2)) {
    sub AR_PHY_RF_CTL2 () {	0x9824;}
}
unless(defined(&AR_PHY_RF_CTL3)) {
    sub AR_PHY_RF_CTL3 () {	0x9828;}
}
unless(defined(&AR_PHY_ADC_CTL)) {
    sub AR_PHY_ADC_CTL () {	0x982c;}
}
unless(defined(&AR_PHY_ADC_SERIAL_CTL)) {
    sub AR_PHY_ADC_SERIAL_CTL () {	0x9830;}
}
unless(defined(&AR_PHY_RF_CTL4)) {
    sub AR_PHY_RF_CTL4 () {	0x9834;}
}
unless(defined(&AR_PHY_TSTDAC_CONST)) {
    sub AR_PHY_TSTDAC_CONST () {	0x983c;}
}
unless(defined(&AR_PHY_SETTLING)) {
    sub AR_PHY_SETTLING () {	0x9844;}
}
unless(defined(&AR_PHY_RXGAIN)) {
    sub AR_PHY_RXGAIN () {	0x9848;}
}
unless(defined(&AR_PHY_DESIRED_SZ)) {
    sub AR_PHY_DESIRED_SZ () {	0x9850;}
}
unless(defined(&AR_PHY_FIND_SIG)) {
    sub AR_PHY_FIND_SIG () {	0x9858;}
}
unless(defined(&AR_PHY_AGC_CTL1)) {
    sub AR_PHY_AGC_CTL1 () {	0x985c;}
}
unless(defined(&AR_PHY_AGC_CONTROL)) {
    sub AR_PHY_AGC_CONTROL () {	0x9860;}
}
unless(defined(&AR_PHY_CCA)) {
    sub AR_PHY_CCA {
	my($i) = @_;
	eval q((0x9864 + ($i) * 0x1000));
    }
}
unless(defined(&AR_PHY_SFCORR)) {
    sub AR_PHY_SFCORR () {	0x9868;}
}
unless(defined(&AR_PHY_SFCORR_LOW)) {
    sub AR_PHY_SFCORR_LOW () {	0x986c;}
}
unless(defined(&AR_PHY_SLEEP_CTR_CONTROL)) {
    sub AR_PHY_SLEEP_CTR_CONTROL () {	0x9870;}
}
unless(defined(&AR_PHY_SLEEP_CTR_LIMIT)) {
    sub AR_PHY_SLEEP_CTR_LIMIT () {	0x9874;}
}
unless(defined(&AR_PHY_SLEEP_SCAL)) {
    sub AR_PHY_SLEEP_SCAL () {	0x9878;}
}
unless(defined(&AR_PHY_PLL_CTL)) {
    sub AR_PHY_PLL_CTL () {	0x987c;}
}
unless(defined(&AR_PHY_BIN_MASK_1)) {
    sub AR_PHY_BIN_MASK_1 () {	0x9900;}
}
unless(defined(&AR_PHY_BIN_MASK_2)) {
    sub AR_PHY_BIN_MASK_2 () {	0x9904;}
}
unless(defined(&AR_PHY_BIN_MASK_3)) {
    sub AR_PHY_BIN_MASK_3 () {	0x9908;}
}
unless(defined(&AR_PHY_MASK_CTL)) {
    sub AR_PHY_MASK_CTL () {	0x990c;}
}
unless(defined(&AR_PHY_RX_DELAY)) {
    sub AR_PHY_RX_DELAY () {	0x9914;}
}
unless(defined(&AR_PHY_SEARCH_START_DELAY)) {
    sub AR_PHY_SEARCH_START_DELAY () {	0x9918;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_0)) {
    sub AR_PHY_TIMING_CTRL4_0 () {	0x9920;}
}
unless(defined(&AR_PHY_TIMING_CTRL4)) {
    sub AR_PHY_TIMING_CTRL4 {
	my($i) = @_;
	eval q((0x9920 + ($i) * 0x1000));
    }
}
unless(defined(&AR_PHY_TIMING5)) {
    sub AR_PHY_TIMING5 () {	0x9924;}
}
unless(defined(&AR_PHY_POWER_TX_RATE1)) {
    sub AR_PHY_POWER_TX_RATE1 () {	0x9934;}
}
unless(defined(&AR_PHY_POWER_TX_RATE2)) {
    sub AR_PHY_POWER_TX_RATE2 () {	0x9938;}
}
unless(defined(&AR_PHY_POWER_TX_RATE_MAX)) {
    sub AR_PHY_POWER_TX_RATE_MAX () {	0x993c;}
}
unless(defined(&AR_PHY_RADAR_EXT)) {
    sub AR_PHY_RADAR_EXT () {	0x9940;}
}
unless(defined(&AR_PHY_FRAME_CTL)) {
    sub AR_PHY_FRAME_CTL () {	0x9944;}
}
unless(defined(&AR_PHY_SPUR_REG)) {
    sub AR_PHY_SPUR_REG () {	0x994c;}
}
unless(defined(&AR_PHY_RADAR_0)) {
    sub AR_PHY_RADAR_0 () {	0x9954;}
}
unless(defined(&AR_PHY_RADAR_1)) {
    sub AR_PHY_RADAR_1 () {	0x9958;}
}
unless(defined(&AR_PHY_SWITCH_CHAIN_0)) {
    sub AR_PHY_SWITCH_CHAIN_0 () {	0x9960;}
}
unless(defined(&AR_PHY_SWITCH_COM)) {
    sub AR_PHY_SWITCH_COM () {	0x9964;}
}
unless(defined(&AR_PHY_SIGMA_DELTA)) {
    sub AR_PHY_SIGMA_DELTA () {	0x996c;}
}
unless(defined(&AR_PHY_RESTART)) {
    sub AR_PHY_RESTART () {	0x9970;}
}
unless(defined(&AR_PHY_RFBUS_REQ)) {
    sub AR_PHY_RFBUS_REQ () {	0x997c;}
}
unless(defined(&AR_PHY_TIMING7)) {
    sub AR_PHY_TIMING7 () {	0x9980;}
}
unless(defined(&AR_PHY_TIMING8)) {
    sub AR_PHY_TIMING8 () {	0x9984;}
}
unless(defined(&AR_PHY_BIN_MASK2_1)) {
    sub AR_PHY_BIN_MASK2_1 () {	0x9988;}
}
unless(defined(&AR_PHY_BIN_MASK2_2)) {
    sub AR_PHY_BIN_MASK2_2 () {	0x998c;}
}
unless(defined(&AR_PHY_BIN_MASK2_3)) {
    sub AR_PHY_BIN_MASK2_3 () {	0x9990;}
}
unless(defined(&AR_PHY_BIN_MASK2_4)) {
    sub AR_PHY_BIN_MASK2_4 () {	0x9994;}
}
unless(defined(&AR_PHY_TIMING9)) {
    sub AR_PHY_TIMING9 () {	0x9998;}
}
unless(defined(&AR_PHY_TIMING10)) {
    sub AR_PHY_TIMING10 () {	0x999c;}
}
unless(defined(&AR_PHY_TIMING11)) {
    sub AR_PHY_TIMING11 () {	0x99a0;}
}
unless(defined(&AR_PHY_RX_CHAINMASK)) {
    sub AR_PHY_RX_CHAINMASK () {	0x99a4;}
}
unless(defined(&AR_PHY_MULTICHAIN_GAIN_CTL)) {
    sub AR_PHY_MULTICHAIN_GAIN_CTL () {	0x99ac;}
}
unless(defined(&AR_PHY_NEW_ADC_DC_GAIN_CORR)) {
    sub AR_PHY_NEW_ADC_DC_GAIN_CORR {
	my($i) = @_;
	eval q((0x99b4 + ($i) * 0x1000));
    }
}
unless(defined(&AR_PHY_EXT_CCA0)) {
    sub AR_PHY_EXT_CCA0 () {	0x99b8;}
}
unless(defined(&AR_PHY_EXT_CCA)) {
    sub AR_PHY_EXT_CCA {
	my($i) = @_;
	eval q((0x99bc + ($i) * 0x1000));
    }
}
unless(defined(&AR_PHY_SFCORR_EXT)) {
    sub AR_PHY_SFCORR_EXT () {	0x99c0;}
}
unless(defined(&AR_PHY_HALFGI)) {
    sub AR_PHY_HALFGI () {	0x99d0;}
}
unless(defined(&AR_PHY_CHANNEL_MASK_01_30)) {
    sub AR_PHY_CHANNEL_MASK_01_30 () {	0x99d4;}
}
unless(defined(&AR_PHY_CHANNEL_MASK_31_60)) {
    sub AR_PHY_CHANNEL_MASK_31_60 () {	0x99d8;}
}
unless(defined(&AR_PHY_CHAN_INFO_MEMORY)) {
    sub AR_PHY_CHAN_INFO_MEMORY () {	0x99dc;}
}
unless(defined(&AR_PHY_HEAVY_CLIP_ENABLE)) {
    sub AR_PHY_HEAVY_CLIP_ENABLE () {	0x99e0;}
}
unless(defined(&AR_PHY_HEAVY_CLIP_FACTOR_RIFS)) {
    sub AR_PHY_HEAVY_CLIP_FACTOR_RIFS () {	0x99ec;}
}
unless(defined(&AR_PHY_CALMODE)) {
    sub AR_PHY_CALMODE () {	0x99f0;}
}
unless(defined(&AR_PHY_REFCLKDLY)) {
    sub AR_PHY_REFCLKDLY () {	0x99f4;}
}
unless(defined(&AR_PHY_REFCLKPD)) {
    sub AR_PHY_REFCLKPD () {	0x99f8;}
}
unless(defined(&AR_PHY_BB_RFGAIN)) {
    sub AR_PHY_BB_RFGAIN {
	my($i) = @_;
	eval q((0x9a00 + ($i) * 4));
    }
}
unless(defined(&AR_PHY_CAL_MEAS_0)) {
    sub AR_PHY_CAL_MEAS_0 {
	my($i) = @_;
	eval q((0x9c10 + ($i) * 0x1000));
    }
}
unless(defined(&AR_PHY_CAL_MEAS_1)) {
    sub AR_PHY_CAL_MEAS_1 {
	my($i) = @_;
	eval q((0x9c14 + ($i) * 0x1000));
    }
}
unless(defined(&AR_PHY_CAL_MEAS_2)) {
    sub AR_PHY_CAL_MEAS_2 {
	my($i) = @_;
	eval q((0x9c18 + ($i) * 0x1000));
    }
}
unless(defined(&AR_PHY_CAL_MEAS_3)) {
    sub AR_PHY_CAL_MEAS_3 {
	my($i) = @_;
	eval q((0x9c1c + ($i) * 0x1000));
    }
}
unless(defined(&AR_PHY_CURRENT_RSSI)) {
    sub AR_PHY_CURRENT_RSSI () {	0x9c1c;}
}
unless(defined(&AR_PHY_RFBUS_GRANT)) {
    sub AR_PHY_RFBUS_GRANT () {	0x9c20;}
}
unless(defined(&AR9280_PHY_CURRENT_RSSI)) {
    sub AR9280_PHY_CURRENT_RSSI () {	0x9c3c;}
}
unless(defined(&AR_PHY_CHAN_INFO_GAIN_DIFF)) {
    sub AR_PHY_CHAN_INFO_GAIN_DIFF () {	0x9cf4;}
}
unless(defined(&AR_PHY_CHAN_INFO_GAIN)) {
    sub AR_PHY_CHAN_INFO_GAIN () {	0x9cfc;}
}
unless(defined(&AR_PHY_MODE)) {
    sub AR_PHY_MODE () {	0xa200;}
}
unless(defined(&AR_PHY_CCK_TX_CTRL)) {
    sub AR_PHY_CCK_TX_CTRL () {	0xa204;}
}
unless(defined(&AR_PHY_CCK_DETECT)) {
    sub AR_PHY_CCK_DETECT () {	0xa208;}
}
unless(defined(&AR_PHY_GAIN_2GHZ)) {
    sub AR_PHY_GAIN_2GHZ () {	0xa20c;}
}
unless(defined(&AR_PHY_CCK_RXCTRL4)) {
    sub AR_PHY_CCK_RXCTRL4 () {	0xa21c;}
}
unless(defined(&AR_PHY_DAG_CTRLCCK)) {
    sub AR_PHY_DAG_CTRLCCK () {	0xa228;}
}
unless(defined(&AR_PHY_FORCE_CLKEN_CCK)) {
    sub AR_PHY_FORCE_CLKEN_CCK () {	0xa22c;}
}
unless(defined(&AR_PHY_POWER_TX_RATE3)) {
    sub AR_PHY_POWER_TX_RATE3 () {	0xa234;}
}
unless(defined(&AR_PHY_POWER_TX_RATE4)) {
    sub AR_PHY_POWER_TX_RATE4 () {	0xa238;}
}
unless(defined(&AR_PHY_SCRM_SEQ_XR)) {
    sub AR_PHY_SCRM_SEQ_XR () {	0xa23c;}
}
unless(defined(&AR_PHY_HEADER_DETECT_XR)) {
    sub AR_PHY_HEADER_DETECT_XR () {	0xa240;}
}
unless(defined(&AR_PHY_CHIRP_DETECTED_XR)) {
    sub AR_PHY_CHIRP_DETECTED_XR () {	0xa244;}
}
unless(defined(&AR_PHY_BLUETOOTH)) {
    sub AR_PHY_BLUETOOTH () {	0xa254;}
}
unless(defined(&AR_PHY_TPCRG1)) {
    sub AR_PHY_TPCRG1 () {	0xa258;}
}
unless(defined(&AR_PHY_TX_PWRCTRL4)) {
    sub AR_PHY_TX_PWRCTRL4 () {	0xa264;}
}
unless(defined(&AR_PHY_ANALOG_SWAP)) {
    sub AR_PHY_ANALOG_SWAP () {	0xa268;}
}
unless(defined(&AR_PHY_TPCRG5)) {
    sub AR_PHY_TPCRG5 () {	0xa26c;}
}
unless(defined(&AR_PHY_TX_PWRCTRL6_0)) {
    sub AR_PHY_TX_PWRCTRL6_0 () {	0xa270;}
}
unless(defined(&AR_PHY_TX_PWRCTRL7)) {
    sub AR_PHY_TX_PWRCTRL7 () {	0xa274;}
}
unless(defined(&AR_PHY_TX_PWRCTRL9)) {
    sub AR_PHY_TX_PWRCTRL9 () {	0xa27c;}
}
unless(defined(&AR_PHY_PDADC_TBL_BASE)) {
    sub AR_PHY_PDADC_TBL_BASE () {	0xa280;}
}
unless(defined(&AR_PHY_TX_GAIN_TBL)) {
    sub AR_PHY_TX_GAIN_TBL {
	my($i) = @_;
	eval q((0xa300 + ($i) * 4));
    }
}
unless(defined(&AR_PHY_CL_CAL_CTL)) {
    sub AR_PHY_CL_CAL_CTL () {	0xa358;}
}
unless(defined(&AR_PHY_CLC_TBL)) {
    sub AR_PHY_CLC_TBL {
	my($i) = @_;
	eval q((0xa35c + ($i) * 4));
    }
}
unless(defined(&AR_PHY_POWER_TX_RATE5)) {
    sub AR_PHY_POWER_TX_RATE5 () {	0xa38c;}
}
unless(defined(&AR_PHY_POWER_TX_RATE6)) {
    sub AR_PHY_POWER_TX_RATE6 () {	0xa390;}
}
unless(defined(&AR_PHY_CH0_TX_PWRCTRL11)) {
    sub AR_PHY_CH0_TX_PWRCTRL11 () {	0xa398;}
}
unless(defined(&AR_PHY_CAL_CHAINMASK)) {
    sub AR_PHY_CAL_CHAINMASK () {	0xa39c;}
}
unless(defined(&AR_PHY_VIT_MASK2_M_46_61)) {
    sub AR_PHY_VIT_MASK2_M_46_61 () {	0xa3a0;}
}
unless(defined(&AR_PHY_VIT_MASK2_M_31_45)) {
    sub AR_PHY_VIT_MASK2_M_31_45 () {	0xa3a4;}
}
unless(defined(&AR_PHY_VIT_MASK2_M_16_30)) {
    sub AR_PHY_VIT_MASK2_M_16_30 () {	0xa3a8;}
}
unless(defined(&AR_PHY_VIT_MASK2_M_00_15)) {
    sub AR_PHY_VIT_MASK2_M_00_15 () {	0xa3ac;}
}
unless(defined(&AR_PHY_PILOT_MASK_01_30)) {
    sub AR_PHY_PILOT_MASK_01_30 () {	0xa3b0;}
}
unless(defined(&AR_PHY_PILOT_MASK_31_60)) {
    sub AR_PHY_PILOT_MASK_31_60 () {	0xa3b4;}
}
unless(defined(&AR_PHY_VIT_MASK2_P_15_01)) {
    sub AR_PHY_VIT_MASK2_P_15_01 () {	0xa3b8;}
}
unless(defined(&AR_PHY_VIT_MASK2_P_30_16)) {
    sub AR_PHY_VIT_MASK2_P_30_16 () {	0xa3bc;}
}
unless(defined(&AR_PHY_VIT_MASK2_P_45_31)) {
    sub AR_PHY_VIT_MASK2_P_45_31 () {	0xa3c0;}
}
unless(defined(&AR_PHY_VIT_MASK2_P_61_46)) {
    sub AR_PHY_VIT_MASK2_P_61_46 () {	0xa3c4;}
}
unless(defined(&AR_PHY_POWER_TX_SUB)) {
    sub AR_PHY_POWER_TX_SUB () {	0xa3c8;}
}
unless(defined(&AR_PHY_POWER_TX_RATE7)) {
    sub AR_PHY_POWER_TX_RATE7 () {	0xa3cc;}
}
unless(defined(&AR_PHY_POWER_TX_RATE8)) {
    sub AR_PHY_POWER_TX_RATE8 () {	0xa3d0;}
}
unless(defined(&AR_PHY_POWER_TX_RATE9)) {
    sub AR_PHY_POWER_TX_RATE9 () {	0xa3d4;}
}
unless(defined(&AR_PHY_XPA_CFG)) {
    sub AR_PHY_XPA_CFG () {	0xa3d8;}
}
unless(defined(&AR_PHY_TX_PWRCTRL6_1)) {
    sub AR_PHY_TX_PWRCTRL6_1 () {	0xb270;}
}
unless(defined(&AR_PHY_CH1_TX_PWRCTRL11)) {
    sub AR_PHY_CH1_TX_PWRCTRL11 () {	0xb398;}
}
unless(defined(&AR7010_GPIO_OE)) {
    sub AR7010_GPIO_OE () {	0x52000;}
}
unless(defined(&AR7010_GPIO_IN)) {
    sub AR7010_GPIO_IN () {	0x52004;}
}
unless(defined(&AR7010_GPIO_OUT)) {
    sub AR7010_GPIO_OUT () {	0x52008;}
}
unless(defined(&AR_AN_RF2G1_CH0_OB_M)) {
    sub AR_AN_RF2G1_CH0_OB_M () {	0x3800000;}
}
unless(defined(&AR_AN_RF2G1_CH0_OB_S)) {
    sub AR_AN_RF2G1_CH0_OB_S () {	23;}
}
unless(defined(&AR_AN_RF2G1_CH0_DB_M)) {
    sub AR_AN_RF2G1_CH0_DB_M () {	0x1c000000;}
}
unless(defined(&AR_AN_RF2G1_CH0_DB_S)) {
    sub AR_AN_RF2G1_CH0_DB_S () {	26;}
}
unless(defined(&AR_AN_RF5G1_CH0_OB5_M)) {
    sub AR_AN_RF5G1_CH0_OB5_M () {	0x70000;}
}
unless(defined(&AR_AN_RF5G1_CH0_OB5_S)) {
    sub AR_AN_RF5G1_CH0_OB5_S () {	16;}
}
unless(defined(&AR_AN_RF5G1_CH0_DB5_M)) {
    sub AR_AN_RF5G1_CH0_DB5_M () {	0x380000;}
}
unless(defined(&AR_AN_RF5G1_CH0_DB5_S)) {
    sub AR_AN_RF5G1_CH0_DB5_S () {	19;}
}
unless(defined(&AR_AN_RF2G1_CH1_OB_M)) {
    sub AR_AN_RF2G1_CH1_OB_M () {	0x3800000;}
}
unless(defined(&AR_AN_RF2G1_CH1_OB_S)) {
    sub AR_AN_RF2G1_CH1_OB_S () {	23;}
}
unless(defined(&AR_AN_RF2G1_CH1_DB_M)) {
    sub AR_AN_RF2G1_CH1_DB_M () {	0x1c000000;}
}
unless(defined(&AR_AN_RF2G1_CH1_DB_S)) {
    sub AR_AN_RF2G1_CH1_DB_S () {	26;}
}
unless(defined(&AR_AN_RF5G1_CH1_OB5_M)) {
    sub AR_AN_RF5G1_CH1_OB5_M () {	0x70000;}
}
unless(defined(&AR_AN_RF5G1_CH1_OB5_S)) {
    sub AR_AN_RF5G1_CH1_OB5_S () {	16;}
}
unless(defined(&AR_AN_RF5G1_CH1_DB5_M)) {
    sub AR_AN_RF5G1_CH1_DB5_M () {	0x380000;}
}
unless(defined(&AR_AN_RF5G1_CH1_DB5_S)) {
    sub AR_AN_RF5G1_CH1_DB5_S () {	19;}
}
unless(defined(&AR_AN_SYNTH9_REFDIVA_M)) {
    sub AR_AN_SYNTH9_REFDIVA_M () {	0xf8000000;}
}
unless(defined(&AR_AN_SYNTH9_REFDIVA_S)) {
    sub AR_AN_SYNTH9_REFDIVA_S () {	27;}
}
unless(defined(&AR_AN_TOP1_DACLPMODE)) {
    sub AR_AN_TOP1_DACLPMODE () {	0x40000;}
}
unless(defined(&AR_AN_TOP2_XPABIAS_LVL_M)) {
    sub AR_AN_TOP2_XPABIAS_LVL_M () {	0xc0000000;}
}
unless(defined(&AR_AN_TOP2_XPABIAS_LVL_S)) {
    sub AR_AN_TOP2_XPABIAS_LVL_S () {	30;}
}
unless(defined(&AR_AN_TOP2_LOCALBIAS)) {
    sub AR_AN_TOP2_LOCALBIAS () {	0x200000;}
}
unless(defined(&AR_AN_TOP2_PWDCLKIND)) {
    sub AR_AN_TOP2_PWDCLKIND () {	0x400000;}
}
unless(defined(&AR_PHY_TEST_RFSILENT_BB)) {
    sub AR_PHY_TEST_RFSILENT_BB () {	0x2000;}
}
unless(defined(&AR_PHY_TEST_AGC_CLR)) {
    sub AR_PHY_TEST_AGC_CLR () {	0x10000000;}
}
unless(defined(&AR_PHY_FC_TURBO_MODE)) {
    sub AR_PHY_FC_TURBO_MODE () {	0x1;}
}
unless(defined(&AR_PHY_FC_TURBO_SHORT)) {
    sub AR_PHY_FC_TURBO_SHORT () {	0x2;}
}
unless(defined(&AR_PHY_FC_DYN2040_EN)) {
    sub AR_PHY_FC_DYN2040_EN () {	0x4;}
}
unless(defined(&AR_PHY_FC_DYN2040_PRI_ONLY)) {
    sub AR_PHY_FC_DYN2040_PRI_ONLY () {	0x8;}
}
unless(defined(&AR_PHY_FC_DYN2040_PRI_CH)) {
    sub AR_PHY_FC_DYN2040_PRI_CH () {	0x10;}
}
unless(defined(&AR_PHY_FC_DYN2040_EXT_CH)) {
    sub AR_PHY_FC_DYN2040_EXT_CH () {	0x20;}
}
unless(defined(&AR_PHY_FC_HT_EN)) {
    sub AR_PHY_FC_HT_EN () {	0x40;}
}
unless(defined(&AR_PHY_FC_SHORT_GI_40)) {
    sub AR_PHY_FC_SHORT_GI_40 () {	0x80;}
}
unless(defined(&AR_PHY_FC_WALSH)) {
    sub AR_PHY_FC_WALSH () {	0x100;}
}
unless(defined(&AR_PHY_FC_SINGLE_HT_LTF1)) {
    sub AR_PHY_FC_SINGLE_HT_LTF1 () {	0x200;}
}
unless(defined(&AR_PHY_FC_ENABLE_DAC_FIFO)) {
    sub AR_PHY_FC_ENABLE_DAC_FIFO () {	0x800;}
}
unless(defined(&AR_PHY_TIMING3_DSC_MAN_M)) {
    sub AR_PHY_TIMING3_DSC_MAN_M () {	0xfffe0000;}
}
unless(defined(&AR_PHY_TIMING3_DSC_MAN_S)) {
    sub AR_PHY_TIMING3_DSC_MAN_S () {	17;}
}
unless(defined(&AR_PHY_TIMING3_DSC_EXP_M)) {
    sub AR_PHY_TIMING3_DSC_EXP_M () {	0x1e000;}
}
unless(defined(&AR_PHY_TIMING3_DSC_EXP_S)) {
    sub AR_PHY_TIMING3_DSC_EXP_S () {	13;}
}
unless(defined(&AR_PHY_CHIP_ID_REV_0)) {
    sub AR_PHY_CHIP_ID_REV_0 () {	0x80;}
}
unless(defined(&AR_PHY_CHIP_ID_REV_1)) {
    sub AR_PHY_CHIP_ID_REV_1 () {	0x81;}
}
unless(defined(&AR_PHY_CHIP_ID_9160_REV_0)) {
    sub AR_PHY_CHIP_ID_9160_REV_0 () {	0xb0;}
}
unless(defined(&AR_PHY_ACTIVE_EN)) {
    sub AR_PHY_ACTIVE_EN () {	0x1;}
}
unless(defined(&AR_PHY_ACTIVE_DIS)) {
    sub AR_PHY_ACTIVE_DIS () {	0x;}
}
unless(defined(&AR_PHY_TX_END_DATA_START_M)) {
    sub AR_PHY_TX_END_DATA_START_M () {	0xff;}
}
unless(defined(&AR_PHY_TX_END_DATA_START_S)) {
    sub AR_PHY_TX_END_DATA_START_S () {	0;}
}
unless(defined(&AR_PHY_TX_END_PA_ON_M)) {
    sub AR_PHY_TX_END_PA_ON_M () {	0xff00;}
}
unless(defined(&AR_PHY_TX_END_PA_ON_S)) {
    sub AR_PHY_TX_END_PA_ON_S () {	8;}
}
unless(defined(&AR_PHY_TX_END_TO_A2_RX_ON_M)) {
    sub AR_PHY_TX_END_TO_A2_RX_ON_M () {	0xff0000;}
}
unless(defined(&AR_PHY_TX_END_TO_A2_RX_ON_S)) {
    sub AR_PHY_TX_END_TO_A2_RX_ON_S () {	16;}
}
unless(defined(&AR_PHY_ADC_CTL_OFF_INBUFGAIN_M)) {
    sub AR_PHY_ADC_CTL_OFF_INBUFGAIN_M () {	0x3;}
}
unless(defined(&AR_PHY_ADC_CTL_OFF_INBUFGAIN_S)) {
    sub AR_PHY_ADC_CTL_OFF_INBUFGAIN_S () {	0;}
}
unless(defined(&AR_PHY_ADC_CTL_OFF_PWDDAC)) {
    sub AR_PHY_ADC_CTL_OFF_PWDDAC () {	0x2000;}
}
unless(defined(&AR_PHY_ADC_CTL_OFF_PWDBANDGAP)) {
    sub AR_PHY_ADC_CTL_OFF_PWDBANDGAP () {	0x4000;}
}
unless(defined(&AR_PHY_ADC_CTL_OFF_PWDADC)) {
    sub AR_PHY_ADC_CTL_OFF_PWDADC () {	0x8000;}
}
unless(defined(&AR_PHY_ADC_CTL_ON_INBUFGAIN_M)) {
    sub AR_PHY_ADC_CTL_ON_INBUFGAIN_M () {	0x30000;}
}
unless(defined(&AR_PHY_ADC_CTL_ON_INBUFGAIN_S)) {
    sub AR_PHY_ADC_CTL_ON_INBUFGAIN_S () {	16;}
}
unless(defined(&AR_PHY_SEL_INTERNAL_ADDAC)) {
    sub AR_PHY_SEL_INTERNAL_ADDAC () {	0x;}
}
unless(defined(&AR_PHY_SEL_EXTERNAL_RADIO)) {
    sub AR_PHY_SEL_EXTERNAL_RADIO () {	0x1;}
}
unless(defined(&AR_PHY_RF_CTL4_TX_END_XPAB_OFF_M)) {
    sub AR_PHY_RF_CTL4_TX_END_XPAB_OFF_M () {	0xff000000;}
}
unless(defined(&AR_PHY_RF_CTL4_TX_END_XPAB_OFF_S)) {
    sub AR_PHY_RF_CTL4_TX_END_XPAB_OFF_S () {	24;}
}
unless(defined(&AR_PHY_RF_CTL4_TX_END_XPAA_OFF_M)) {
    sub AR_PHY_RF_CTL4_TX_END_XPAA_OFF_M () {	0xff0000;}
}
unless(defined(&AR_PHY_RF_CTL4_TX_END_XPAA_OFF_S)) {
    sub AR_PHY_RF_CTL4_TX_END_XPAA_OFF_S () {	16;}
}
unless(defined(&AR_PHY_RF_CTL4_FRAME_XPAB_ON_M)) {
    sub AR_PHY_RF_CTL4_FRAME_XPAB_ON_M () {	0xff00;}
}
unless(defined(&AR_PHY_RF_CTL4_FRAME_XPAB_ON_S)) {
    sub AR_PHY_RF_CTL4_FRAME_XPAB_ON_S () {	8;}
}
unless(defined(&AR_PHY_RF_CTL4_FRAME_XPAA_ON_M)) {
    sub AR_PHY_RF_CTL4_FRAME_XPAA_ON_M () {	0xff;}
}
unless(defined(&AR_PHY_RF_CTL4_FRAME_XPAA_ON_S)) {
    sub AR_PHY_RF_CTL4_FRAME_XPAA_ON_S () {	0;}
}
unless(defined(&AR_PHY_SETTLING_SWITCH_M)) {
    sub AR_PHY_SETTLING_SWITCH_M () {	0x3f80;}
}
unless(defined(&AR_PHY_SETTLING_SWITCH_S)) {
    sub AR_PHY_SETTLING_SWITCH_S () {	7;}
}
unless(defined(&AR_PHY_RXGAIN_TXRX_ATTEN_M)) {
    sub AR_PHY_RXGAIN_TXRX_ATTEN_M () {	0x3f000;}
}
unless(defined(&AR_PHY_RXGAIN_TXRX_ATTEN_S)) {
    sub AR_PHY_RXGAIN_TXRX_ATTEN_S () {	12;}
}
unless(defined(&AR_PHY_RXGAIN_TXRX_RF_MAX_M)) {
    sub AR_PHY_RXGAIN_TXRX_RF_MAX_M () {	0x7c0000;}
}
unless(defined(&AR_PHY_RXGAIN_TXRX_RF_MAX_S)) {
    sub AR_PHY_RXGAIN_TXRX_RF_MAX_S () {	18;}
}
unless(defined(&AR9280_PHY_RXGAIN_TXRX_ATTEN_M)) {
    sub AR9280_PHY_RXGAIN_TXRX_ATTEN_M () {	0x3f80;}
}
unless(defined(&AR9280_PHY_RXGAIN_TXRX_ATTEN_S)) {
    sub AR9280_PHY_RXGAIN_TXRX_ATTEN_S () {	7;}
}
unless(defined(&AR9280_PHY_RXGAIN_TXRX_MARGIN_M)) {
    sub AR9280_PHY_RXGAIN_TXRX_MARGIN_M () {	0x1fc000;}
}
unless(defined(&AR9280_PHY_RXGAIN_TXRX_MARGIN_S)) {
    sub AR9280_PHY_RXGAIN_TXRX_MARGIN_S () {	14;}
}
unless(defined(&AR_PHY_DESIRED_SZ_ADC_M)) {
    sub AR_PHY_DESIRED_SZ_ADC_M () {	0xff;}
}
unless(defined(&AR_PHY_DESIRED_SZ_ADC_S)) {
    sub AR_PHY_DESIRED_SZ_ADC_S () {	0;}
}
unless(defined(&AR_PHY_DESIRED_SZ_PGA_M)) {
    sub AR_PHY_DESIRED_SZ_PGA_M () {	0xff00;}
}
unless(defined(&AR_PHY_DESIRED_SZ_PGA_S)) {
    sub AR_PHY_DESIRED_SZ_PGA_S () {	8;}
}
unless(defined(&AR_PHY_DESIRED_SZ_TOT_DES_M)) {
    sub AR_PHY_DESIRED_SZ_TOT_DES_M () {	0xff00000;}
}
unless(defined(&AR_PHY_DESIRED_SZ_TOT_DES_S)) {
    sub AR_PHY_DESIRED_SZ_TOT_DES_S () {	20;}
}
unless(defined(&AR_PHY_FIND_SIG_FIRSTEP_M)) {
    sub AR_PHY_FIND_SIG_FIRSTEP_M () {	0x3f000;}
}
unless(defined(&AR_PHY_FIND_SIG_FIRSTEP_S)) {
    sub AR_PHY_FIND_SIG_FIRSTEP_S () {	12;}
}
unless(defined(&AR_PHY_FIND_SIG_FIRPWR_M)) {
    sub AR_PHY_FIND_SIG_FIRPWR_M () {	0x3fc0000;}
}
unless(defined(&AR_PHY_FIND_SIG_FIRPWR_S)) {
    sub AR_PHY_FIND_SIG_FIRPWR_S () {	18;}
}
unless(defined(&AR_PHY_AGC_CTL1_COARSE_LOW_M)) {
    sub AR_PHY_AGC_CTL1_COARSE_LOW_M () {	0x7f80;}
}
unless(defined(&AR_PHY_AGC_CTL1_COARSE_LOW_S)) {
    sub AR_PHY_AGC_CTL1_COARSE_LOW_S () {	7;}
}
unless(defined(&AR_PHY_AGC_CTL1_COARSE_HIGH_M)) {
    sub AR_PHY_AGC_CTL1_COARSE_HIGH_M () {	0x3f8000;}
}
unless(defined(&AR_PHY_AGC_CTL1_COARSE_HIGH_S)) {
    sub AR_PHY_AGC_CTL1_COARSE_HIGH_S () {	15;}
}
unless(defined(&AR_PHY_AGC_CONTROL_CAL)) {
    sub AR_PHY_AGC_CONTROL_CAL () {	0x1;}
}
unless(defined(&AR_PHY_AGC_CONTROL_NF)) {
    sub AR_PHY_AGC_CONTROL_NF () {	0x2;}
}
unless(defined(&AR_PHY_AGC_CONTROL_ENABLE_NF)) {
    sub AR_PHY_AGC_CONTROL_ENABLE_NF () {	0x8000;}
}
unless(defined(&AR_PHY_AGC_CONTROL_FLTR_CAL)) {
    sub AR_PHY_AGC_CONTROL_FLTR_CAL () {	0x10000;}
}
unless(defined(&AR_PHY_AGC_CONTROL_NO_UPDATE_NF)) {
    sub AR_PHY_AGC_CONTROL_NO_UPDATE_NF () {	0x20000;}
}
unless(defined(&AR_PHY_MAXCCA_PWR_M)) {
    sub AR_PHY_MAXCCA_PWR_M () {	0x1ff;}
}
unless(defined(&AR_PHY_MAXCCA_PWR_S)) {
    sub AR_PHY_MAXCCA_PWR_S () {	0;}
}
unless(defined(&AR_PHY_CCA_THRESH62_M)) {
    sub AR_PHY_CCA_THRESH62_M () {	0x7f000;}
}
unless(defined(&AR_PHY_CCA_THRESH62_S)) {
    sub AR_PHY_CCA_THRESH62_S () {	12;}
}
unless(defined(&AR_PHY_MINCCA_PWR_M)) {
    sub AR_PHY_MINCCA_PWR_M () {	0xff80000;}
}
unless(defined(&AR_PHY_MINCCA_PWR_S)) {
    sub AR_PHY_MINCCA_PWR_S () {	19;}
}
unless(defined(&AR9280_PHY_CCA_THRESH62_M)) {
    sub AR9280_PHY_CCA_THRESH62_M () {	0xff000;}
}
unless(defined(&AR9280_PHY_CCA_THRESH62_S)) {
    sub AR9280_PHY_CCA_THRESH62_S () {	12;}
}
unless(defined(&AR9280_PHY_MINCCA_PWR_M)) {
    sub AR9280_PHY_MINCCA_PWR_M () {	0x1ff00000;}
}
unless(defined(&AR9280_PHY_MINCCA_PWR_S)) {
    sub AR9280_PHY_MINCCA_PWR_S () {	20;}
}
unless(defined(&AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW)) {
    sub AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW () {	0x1;}
}
unless(defined(&AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW_M)) {
    sub AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW_M () {	0x3f00;}
}
unless(defined(&AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW_S)) {
    sub AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW_S () {	8;}
}
unless(defined(&AR_PHY_SFCORR_LOW_M1_THRESH_LOW_M)) {
    sub AR_PHY_SFCORR_LOW_M1_THRESH_LOW_M () {	0x1fc000;}
}
unless(defined(&AR_PHY_SFCORR_LOW_M1_THRESH_LOW_S)) {
    sub AR_PHY_SFCORR_LOW_M1_THRESH_LOW_S () {	14;}
}
unless(defined(&AR_PHY_SFCORR_LOW_M2_THRESH_LOW_M)) {
    sub AR_PHY_SFCORR_LOW_M2_THRESH_LOW_M () {	0xfe00000;}
}
unless(defined(&AR_PHY_SFCORR_LOW_M2_THRESH_LOW_S)) {
    sub AR_PHY_SFCORR_LOW_M2_THRESH_LOW_S () {	21;}
}
unless(defined(&AR_PHY_SFCORR_M2COUNT_THR_M)) {
    sub AR_PHY_SFCORR_M2COUNT_THR_M () {	0x1f;}
}
unless(defined(&AR_PHY_SFCORR_M2COUNT_THR_S)) {
    sub AR_PHY_SFCORR_M2COUNT_THR_S () {	0;}
}
unless(defined(&AR_PHY_SFCORR_M1_THRESH_M)) {
    sub AR_PHY_SFCORR_M1_THRESH_M () {	0xfe0000;}
}
unless(defined(&AR_PHY_SFCORR_M1_THRESH_S)) {
    sub AR_PHY_SFCORR_M1_THRESH_S () {	17;}
}
unless(defined(&AR_PHY_SFCORR_M2_THRESH_M)) {
    sub AR_PHY_SFCORR_M2_THRESH_M () {	0x7f000000;}
}
unless(defined(&AR_PHY_SFCORR_M2_THRESH_S)) {
    sub AR_PHY_SFCORR_M2_THRESH_S () {	24;}
}
unless(defined(&AR_PHY_RX_DELAY_DELAY_M)) {
    sub AR_PHY_RX_DELAY_DELAY_M () {	0x3fff;}
}
unless(defined(&AR_PHY_RX_DELAY_DELAY_S)) {
    sub AR_PHY_RX_DELAY_DELAY_S () {	0;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_IQCORR_Q_Q_COFF_M)) {
    sub AR_PHY_TIMING_CTRL4_IQCORR_Q_Q_COFF_M () {	0x1f;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_IQCORR_Q_Q_COFF_S)) {
    sub AR_PHY_TIMING_CTRL4_IQCORR_Q_Q_COFF_S () {	0;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_IQCORR_Q_I_COFF_M)) {
    sub AR_PHY_TIMING_CTRL4_IQCORR_Q_I_COFF_M () {	0x7e0;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_IQCORR_Q_I_COFF_S)) {
    sub AR_PHY_TIMING_CTRL4_IQCORR_Q_I_COFF_S () {	5;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_IQCORR_ENABLE)) {
    sub AR_PHY_TIMING_CTRL4_IQCORR_ENABLE () {	0x800;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_IQCAL_LOG_COUNT_MAX_M)) {
    sub AR_PHY_TIMING_CTRL4_IQCAL_LOG_COUNT_MAX_M () {	0xf000;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_IQCAL_LOG_COUNT_MAX_S)) {
    sub AR_PHY_TIMING_CTRL4_IQCAL_LOG_COUNT_MAX_S () {	12;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_DO_CAL)) {
    sub AR_PHY_TIMING_CTRL4_DO_CAL () {	0x10000;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_ENABLE_PILOT_MASK)) {
    sub AR_PHY_TIMING_CTRL4_ENABLE_PILOT_MASK () {	0x10000000;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_ENABLE_CHAN_MASK)) {
    sub AR_PHY_TIMING_CTRL4_ENABLE_CHAN_MASK () {	0x20000000;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_ENABLE_SPUR_FILTER)) {
    sub AR_PHY_TIMING_CTRL4_ENABLE_SPUR_FILTER () {	0x40000000;}
}
unless(defined(&AR_PHY_TIMING_CTRL4_ENABLE_SPUR_RSSI)) {
    sub AR_PHY_TIMING_CTRL4_ENABLE_SPUR_RSSI () {	0x80000000;}
}
unless(defined(&AR_PHY_TIMING5_CYCPWR_THR1_M)) {
    sub AR_PHY_TIMING5_CYCPWR_THR1_M () {	0xfe;}
}
unless(defined(&AR_PHY_TIMING5_CYCPWR_THR1_S)) {
    sub AR_PHY_TIMING5_CYCPWR_THR1_S () {	1;}
}
unless(defined(&AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE)) {
    sub AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE () {	0x40;}
}
unless(defined(&AR_PHY_FRAME_CTL_TX_CLIP_M)) {
    sub AR_PHY_FRAME_CTL_TX_CLIP_M () {	0x38;}
}
unless(defined(&AR_PHY_FRAME_CTL_TX_CLIP_S)) {
    sub AR_PHY_FRAME_CTL_TX_CLIP_S () {	3;}
}
unless(defined(&AR_PHY_TXPWRADJ_CCK_GAIN_DELTA_M)) {
    sub AR_PHY_TXPWRADJ_CCK_GAIN_DELTA_M () {	0xfc0;}
}
unless(defined(&AR_PHY_TXPWRADJ_CCK_GAIN_DELTA_S)) {
    sub AR_PHY_TXPWRADJ_CCK_GAIN_DELTA_S () {	6;}
}
unless(defined(&AR_PHY_TXPWRADJ_CCK_PCDAC_INDEX_M)) {
    sub AR_PHY_TXPWRADJ_CCK_PCDAC_INDEX_M () {	0xfc0000;}
}
unless(defined(&AR_PHY_TXPWRADJ_CCK_PCDAC_INDEX_S)) {
    sub AR_PHY_TXPWRADJ_CCK_PCDAC_INDEX_S () {	18;}
}
unless(defined(&AR_PHY_RADAR_EXT_ENA)) {
    sub AR_PHY_RADAR_EXT_ENA () {	0x4000;}
}
unless(defined(&AR_PHY_RADAR_0_ENA)) {
    sub AR_PHY_RADAR_0_ENA () {	0x1;}
}
unless(defined(&AR_PHY_RADAR_0_INBAND_M)) {
    sub AR_PHY_RADAR_0_INBAND_M () {	0x3e;}
}
unless(defined(&AR_PHY_RADAR_0_INBAND_S)) {
    sub AR_PHY_RADAR_0_INBAND_S () {	1;}
}
unless(defined(&AR_PHY_RADAR_0_PRSSI_M)) {
    sub AR_PHY_RADAR_0_PRSSI_M () {	0xfc0;}
}
unless(defined(&AR_PHY_RADAR_0_PRSSI_S)) {
    sub AR_PHY_RADAR_0_PRSSI_S () {	6;}
}
unless(defined(&AR_PHY_RADAR_0_HEIGHT_M)) {
    sub AR_PHY_RADAR_0_HEIGHT_M () {	0x3f000;}
}
unless(defined(&AR_PHY_RADAR_0_HEIGHT_S)) {
    sub AR_PHY_RADAR_0_HEIGHT_S () {	12;}
}
unless(defined(&AR_PHY_RADAR_0_RRSSI_M)) {
    sub AR_PHY_RADAR_0_RRSSI_M () {	0xfc0000;}
}
unless(defined(&AR_PHY_RADAR_0_RRSSI_S)) {
    sub AR_PHY_RADAR_0_RRSSI_S () {	18;}
}
unless(defined(&AR_PHY_RADAR_0_FIRPWR_M)) {
    sub AR_PHY_RADAR_0_FIRPWR_M () {	0x7f000000;}
}
unless(defined(&AR_PHY_RADAR_0_FIRPWR_S)) {
    sub AR_PHY_RADAR_0_FIRPWR_S () {	24;}
}
unless(defined(&AR_PHY_RADAR_0_FFT_ENA)) {
    sub AR_PHY_RADAR_0_FFT_ENA () {	0x80000000;}
}
unless(defined(&AR_PHY_RADAR_1_MAXLEN_M)) {
    sub AR_PHY_RADAR_1_MAXLEN_M () {	0xff;}
}
unless(defined(&AR_PHY_RADAR_1_MAXLEN_S)) {
    sub AR_PHY_RADAR_1_MAXLEN_S () {	0;}
}
unless(defined(&AR_PHY_RADAR_1_RELSTEP_THRESH_M)) {
    sub AR_PHY_RADAR_1_RELSTEP_THRESH_M () {	0x1f00;}
}
unless(defined(&AR_PHY_RADAR_1_RELSTEP_THRESH_S)) {
    sub AR_PHY_RADAR_1_RELSTEP_THRESH_S () {	8;}
}
unless(defined(&AR_PHY_RADAR_1_RELSTEP_CHECK)) {
    sub AR_PHY_RADAR_1_RELSTEP_CHECK () {	0x2000;}
}
unless(defined(&AR_PHY_RADAR_1_MAX_RRSSI)) {
    sub AR_PHY_RADAR_1_MAX_RRSSI () {	0x4000;}
}
unless(defined(&AR_PHY_RADAR_1_BLOCK_CHECK)) {
    sub AR_PHY_RADAR_1_BLOCK_CHECK () {	0x8000;}
}
unless(defined(&AR_PHY_RADAR_1_RELPWR_THRESH_M)) {
    sub AR_PHY_RADAR_1_RELPWR_THRESH_M () {	0x3f0000;}
}
unless(defined(&AR_PHY_RADAR_1_RELPWR_THRESH_S)) {
    sub AR_PHY_RADAR_1_RELPWR_THRESH_S () {	16;}
}
unless(defined(&AR_PHY_RADAR_1_USE_FIR128)) {
    sub AR_PHY_RADAR_1_USE_FIR128 () {	0x400000;}
}
unless(defined(&AR_PHY_RADAR_1_RELPWR_ENA)) {
    sub AR_PHY_RADAR_1_RELPWR_ENA () {	0x800000;}
}
unless(defined(&AR_PHY_SIGMA_DELTA_ADC_SEL_M)) {
    sub AR_PHY_SIGMA_DELTA_ADC_SEL_M () {	0x3;}
}
unless(defined(&AR_PHY_SIGMA_DELTA_ADC_SEL_S)) {
    sub AR_PHY_SIGMA_DELTA_ADC_SEL_S () {	0;}
}
unless(defined(&AR_PHY_SIGMA_DELTA_FILT2_M)) {
    sub AR_PHY_SIGMA_DELTA_FILT2_M () {	0xf8;}
}
unless(defined(&AR_PHY_SIGMA_DELTA_FILT2_S)) {
    sub AR_PHY_SIGMA_DELTA_FILT2_S () {	3;}
}
unless(defined(&AR_PHY_SIGMA_DELTA_FILT1_M)) {
    sub AR_PHY_SIGMA_DELTA_FILT1_M () {	0x1f00;}
}
unless(defined(&AR_PHY_SIGMA_DELTA_FILT1_S)) {
    sub AR_PHY_SIGMA_DELTA_FILT1_S () {	8;}
}
unless(defined(&AR_PHY_SIGMA_DELTA_ADC_CLIP_M)) {
    sub AR_PHY_SIGMA_DELTA_ADC_CLIP_M () {	0x1ffe000;}
}
unless(defined(&AR_PHY_SIGMA_DELTA_ADC_CLIP_S)) {
    sub AR_PHY_SIGMA_DELTA_ADC_CLIP_S () {	13;}
}
unless(defined(&AR_PHY_RESTART_DIV_GC_M)) {
    sub AR_PHY_RESTART_DIV_GC_M () {	0x1c0000;}
}
unless(defined(&AR_PHY_RESTART_DIV_GC_S)) {
    sub AR_PHY_RESTART_DIV_GC_S () {	18;}
}
unless(defined(&AR_PHY_RFBUS_REQ_EN)) {
    sub AR_PHY_RFBUS_REQ_EN () {	0x1;}
}
unless(defined(&AR_PHY_TIMING11_SPUR_DELTA_PHASE_M)) {
    sub AR_PHY_TIMING11_SPUR_DELTA_PHASE_M () {	0xfffff;}
}
unless(defined(&AR_PHY_TIMING11_SPUR_DELTA_PHASE_S)) {
    sub AR_PHY_TIMING11_SPUR_DELTA_PHASE_S () {	0;}
}
unless(defined(&AR_PHY_TIMING11_SPUR_FREQ_SD_M)) {
    sub AR_PHY_TIMING11_SPUR_FREQ_SD_M () {	0x3ff00000;}
}
unless(defined(&AR_PHY_TIMING11_SPUR_FREQ_SD_S)) {
    sub AR_PHY_TIMING11_SPUR_FREQ_SD_S () {	20;}
}
unless(defined(&AR_PHY_TIMING11_USE_SPUR_IN_AGC)) {
    sub AR_PHY_TIMING11_USE_SPUR_IN_AGC () {	0x40000000;}
}
unless(defined(&AR_PHY_TIMING11_USE_SPUR_IN_SELFCOR)) {
    sub AR_PHY_TIMING11_USE_SPUR_IN_SELFCOR () {	0x80000000;}
}
unless(defined(&AR_PHY_NEW_ADC_GAIN_CORR_ENABLE)) {
    sub AR_PHY_NEW_ADC_GAIN_CORR_ENABLE () {	0x40000000;}
}
unless(defined(&AR_PHY_NEW_ADC_DC_OFFSET_CORR_ENABLE)) {
    sub AR_PHY_NEW_ADC_DC_OFFSET_CORR_ENABLE () {	0x80000000;}
}
unless(defined(&AR_PHY_EXT_CCA0_THRESH62_M)) {
    sub AR_PHY_EXT_CCA0_THRESH62_M () {	0xff;}
}
unless(defined(&AR_PHY_EXT_CCA0_THRESH62_S)) {
    sub AR_PHY_EXT_CCA0_THRESH62_S () {	0;}
}
unless(defined(&AR_PHY_EXT_MAXCCA_PWR_M)) {
    sub AR_PHY_EXT_MAXCCA_PWR_M () {	0x1ff;}
}
unless(defined(&AR_PHY_EXT_MAXCCA_PWR_S)) {
    sub AR_PHY_EXT_MAXCCA_PWR_S () {	0;}
}
unless(defined(&AR_PHY_EXT_CCA_CYCPWR_THR1_M)) {
    sub AR_PHY_EXT_CCA_CYCPWR_THR1_M () {	0xfe00;}
}
unless(defined(&AR_PHY_EXT_CCA_CYCPWR_THR1_S)) {
    sub AR_PHY_EXT_CCA_CYCPWR_THR1_S () {	9;}
}
unless(defined(&AR_PHY_EXT_CCA_THRESH62_M)) {
    sub AR_PHY_EXT_CCA_THRESH62_M () {	0x7f0000;}
}
unless(defined(&AR_PHY_EXT_CCA_THRESH62_S)) {
    sub AR_PHY_EXT_CCA_THRESH62_S () {	16;}
}
unless(defined(&AR_PHY_EXT_MINCCA_PWR_M)) {
    sub AR_PHY_EXT_MINCCA_PWR_M () {	0xff800000;}
}
unless(defined(&AR_PHY_EXT_MINCCA_PWR_S)) {
    sub AR_PHY_EXT_MINCCA_PWR_S () {	23;}
}
unless(defined(&AR9280_PHY_EXT_MINCCA_PWR_M)) {
    sub AR9280_PHY_EXT_MINCCA_PWR_M () {	0x1ff0000;}
}
unless(defined(&AR9280_PHY_EXT_MINCCA_PWR_S)) {
    sub AR9280_PHY_EXT_MINCCA_PWR_S () {	16;}
}
unless(defined(&AR_PHY_SFCORR_EXT_M1_THRESH_M)) {
    sub AR_PHY_SFCORR_EXT_M1_THRESH_M () {	0x7f;}
}
unless(defined(&AR_PHY_SFCORR_EXT_M1_THRESH_S)) {
    sub AR_PHY_SFCORR_EXT_M1_THRESH_S () {	0;}
}
unless(defined(&AR_PHY_SFCORR_EXT_M2_THRESH_M)) {
    sub AR_PHY_SFCORR_EXT_M2_THRESH_M () {	0x3f80;}
}
unless(defined(&AR_PHY_SFCORR_EXT_M2_THRESH_S)) {
    sub AR_PHY_SFCORR_EXT_M2_THRESH_S () {	7;}
}
unless(defined(&AR_PHY_SFCORR_EXT_M1_THRESH_LOW_M)) {
    sub AR_PHY_SFCORR_EXT_M1_THRESH_LOW_M () {	0x1fc000;}
}
unless(defined(&AR_PHY_SFCORR_EXT_M1_THRESH_LOW_S)) {
    sub AR_PHY_SFCORR_EXT_M1_THRESH_LOW_S () {	14;}
}
unless(defined(&AR_PHY_SFCORR_EXT_M2_THRESH_LOW_M)) {
    sub AR_PHY_SFCORR_EXT_M2_THRESH_LOW_M () {	0xfe00000;}
}
unless(defined(&AR_PHY_SFCORR_EXT_M2_THRESH_LOW_S)) {
    sub AR_PHY_SFCORR_EXT_M2_THRESH_LOW_S () {	21;}
}
unless(defined(&AR_PHY_SFCORR_SPUR_SUBCHNL_SD_M)) {
    sub AR_PHY_SFCORR_SPUR_SUBCHNL_SD_M () {	0xf0000000;}
}
unless(defined(&AR_PHY_SFCORR_SPUR_SUBCHNL_SD_S)) {
    sub AR_PHY_SFCORR_SPUR_SUBCHNL_SD_S () {	28;}
}
unless(defined(&AR_PHY_HALFGI_DSC_EXP_M)) {
    sub AR_PHY_HALFGI_DSC_EXP_M () {	0xf;}
}
unless(defined(&AR_PHY_HALFGI_DSC_EXP_S)) {
    sub AR_PHY_HALFGI_DSC_EXP_S () {	0;}
}
unless(defined(&AR_PHY_HALFGI_DSC_MAN_M)) {
    sub AR_PHY_HALFGI_DSC_MAN_M () {	0x7fff0;}
}
unless(defined(&AR_PHY_HALFGI_DSC_MAN_S)) {
    sub AR_PHY_HALFGI_DSC_MAN_S () {	4;}
}
unless(defined(&AR_PHY_CHAN_INFO_MEMORY_CAPTURE_MASK)) {
    sub AR_PHY_CHAN_INFO_MEMORY_CAPTURE_MASK () {	0x1;}
}
unless(defined(&AR_PHY_RIFS_INIT_DELAY_M)) {
    sub AR_PHY_RIFS_INIT_DELAY_M () {	0x3ff0000;}
}
unless(defined(&AR_PHY_RIFS_INIT_DELAY_S)) {
    sub AR_PHY_RIFS_INIT_DELAY_S () {	16;}
}
unless(defined(&AR_PHY_CALMODE_IQ)) {
    sub AR_PHY_CALMODE_IQ () {	0x;}
}
unless(defined(&AR_PHY_CALMODE_ADC_GAIN)) {
    sub AR_PHY_CALMODE_ADC_GAIN () {	0x1;}
}
unless(defined(&AR_PHY_CALMODE_ADC_DC_PER)) {
    sub AR_PHY_CALMODE_ADC_DC_PER () {	0x2;}
}
unless(defined(&AR_PHY_CALMODE_ADC_DC_INIT)) {
    sub AR_PHY_CALMODE_ADC_DC_INIT () {	0x3;}
}
unless(defined(&AR_PHY_RFBUS_GRANT_EN)) {
    sub AR_PHY_RFBUS_GRANT_EN () {	0x1;}
}
unless(defined(&AR_PHY_CHAN_INFO_GAIN_DIFF_UPPER_LIMIT)) {
    sub AR_PHY_CHAN_INFO_GAIN_DIFF_UPPER_LIMIT () {	320;}
}
unless(defined(&AR_PHY_MODE_ASYNCFIFO)) {
    sub AR_PHY_MODE_ASYNCFIFO () {	0x80;}
}
unless(defined(&AR_PHY_MODE_AR2133)) {
    sub AR_PHY_MODE_AR2133 () {	0x8;}
}
unless(defined(&AR_PHY_MODE_AR5111)) {
    sub AR_PHY_MODE_AR5111 () {	0x;}
}
unless(defined(&AR_PHY_MODE_AR5112)) {
    sub AR_PHY_MODE_AR5112 () {	0x8;}
}
unless(defined(&AR_PHY_MODE_DYNAMIC)) {
    sub AR_PHY_MODE_DYNAMIC () {	0x4;}
}
unless(defined(&AR_PHY_MODE_RF2GHZ)) {
    sub AR_PHY_MODE_RF2GHZ () {	0x2;}
}
unless(defined(&AR_PHY_MODE_RF5GHZ)) {
    sub AR_PHY_MODE_RF5GHZ () {	0x;}
}
unless(defined(&AR_PHY_MODE_CCK)) {
    sub AR_PHY_MODE_CCK () {	0x1;}
}
unless(defined(&AR_PHY_MODE_OFDM)) {
    sub AR_PHY_MODE_OFDM () {	0x;}
}
unless(defined(&AR_PHY_MODE_DYN_CCK_DISABLE)) {
    sub AR_PHY_MODE_DYN_CCK_DISABLE () {	0x100;}
}
unless(defined(&AR_PHY_CCK_TX_CTRL_TX_DAC_SCALE_CCK_M)) {
    sub AR_PHY_CCK_TX_CTRL_TX_DAC_SCALE_CCK_M () {	0xc;}
}
unless(defined(&AR_PHY_CCK_TX_CTRL_TX_DAC_SCALE_CCK_S)) {
    sub AR_PHY_CCK_TX_CTRL_TX_DAC_SCALE_CCK_S () {	2;}
}
unless(defined(&AR_PHY_CCK_TX_CTRL_JAPAN)) {
    sub AR_PHY_CCK_TX_CTRL_JAPAN () {	0x10;}
}
unless(defined(&AR_PHY_CCK_DETECT_WEAK_SIG_THR_CCK_M)) {
    sub AR_PHY_CCK_DETECT_WEAK_SIG_THR_CCK_M () {	0x3f;}
}
unless(defined(&AR_PHY_CCK_DETECT_WEAK_SIG_THR_CCK_S)) {
    sub AR_PHY_CCK_DETECT_WEAK_SIG_THR_CCK_S () {	0;}
}
unless(defined(&AR_PHY_CCK_DETECT_ANT_SWITCH_TIME_M)) {
    sub AR_PHY_CCK_DETECT_ANT_SWITCH_TIME_M () {	0x1fc0;}
}
unless(defined(&AR_PHY_CCK_DETECT_ANT_SWITCH_TIME_S)) {
    sub AR_PHY_CCK_DETECT_ANT_SWITCH_TIME_S () {	6;}
}
unless(defined(&AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV)) {
    sub AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV () {	0x2000;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_XATTEN1_DB_M)) {
    sub AR_PHY_GAIN_2GHZ_XATTEN1_DB_M () {	0x3f;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_XATTEN1_DB_S)) {
    sub AR_PHY_GAIN_2GHZ_XATTEN1_DB_S () {	0;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_BSW_ATTEN_M)) {
    sub AR_PHY_GAIN_2GHZ_BSW_ATTEN_M () {	0x1f;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_BSW_ATTEN_S)) {
    sub AR_PHY_GAIN_2GHZ_BSW_ATTEN_S () {	0;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_XATTEN2_DB_M)) {
    sub AR_PHY_GAIN_2GHZ_XATTEN2_DB_M () {	0xfc0;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_XATTEN2_DB_S)) {
    sub AR_PHY_GAIN_2GHZ_XATTEN2_DB_S () {	6;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_BSW_MARGIN_M)) {
    sub AR_PHY_GAIN_2GHZ_BSW_MARGIN_M () {	0x3c00;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_BSW_MARGIN_S)) {
    sub AR_PHY_GAIN_2GHZ_BSW_MARGIN_S () {	10;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_XATTEN1_MARGIN_M)) {
    sub AR_PHY_GAIN_2GHZ_XATTEN1_MARGIN_M () {	0x1f000;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_XATTEN1_MARGIN_S)) {
    sub AR_PHY_GAIN_2GHZ_XATTEN1_MARGIN_S () {	12;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_XATTEN2_MARGIN_M)) {
    sub AR_PHY_GAIN_2GHZ_XATTEN2_MARGIN_M () {	0x3e0000;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_XATTEN2_MARGIN_S)) {
    sub AR_PHY_GAIN_2GHZ_XATTEN2_MARGIN_S () {	17;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_RXTX_MARGIN_M)) {
    sub AR_PHY_GAIN_2GHZ_RXTX_MARGIN_M () {	0xfc0000;}
}
unless(defined(&AR_PHY_GAIN_2GHZ_RXTX_MARGIN_S)) {
    sub AR_PHY_GAIN_2GHZ_RXTX_MARGIN_S () {	18;}
}
unless(defined(&AR_PHY_CCK_RXCTRL4_FREQ_EST_SHORT_M)) {
    sub AR_PHY_CCK_RXCTRL4_FREQ_EST_SHORT_M () {	0x1f80000;}
}
unless(defined(&AR_PHY_CCK_RXCTRL4_FREQ_EST_SHORT_S)) {
    sub AR_PHY_CCK_RXCTRL4_FREQ_EST_SHORT_S () {	19;}
}
unless(defined(&AR_PHY_DAG_CTRLCCK_EN_RSSI_THR)) {
    sub AR_PHY_DAG_CTRLCCK_EN_RSSI_THR () {	0x200;}
}
unless(defined(&AR_PHY_DAG_CTRLCCK_RSSI_THR_M)) {
    sub AR_PHY_DAG_CTRLCCK_RSSI_THR_M () {	0x1fc00;}
}
unless(defined(&AR_PHY_DAG_CTRLCCK_RSSI_THR_S)) {
    sub AR_PHY_DAG_CTRLCCK_RSSI_THR_S () {	10;}
}
unless(defined(&AR_PHY_FORCE_CLKEN_CCK_MRC_MUX)) {
    sub AR_PHY_FORCE_CLKEN_CCK_MRC_MUX () {	0x40;}
}
unless(defined(&AR_PHY_TPCRG1_NUM_PD_GAIN_M)) {
    sub AR_PHY_TPCRG1_NUM_PD_GAIN_M () {	0xc000;}
}
unless(defined(&AR_PHY_TPCRG1_NUM_PD_GAIN_S)) {
    sub AR_PHY_TPCRG1_NUM_PD_GAIN_S () {	14;}
}
unless(defined(&AR_PHY_TPCRG1_PD_GAIN_1_M)) {
    sub AR_PHY_TPCRG1_PD_GAIN_1_M () {	0x30000;}
}
unless(defined(&AR_PHY_TPCRG1_PD_GAIN_1_S)) {
    sub AR_PHY_TPCRG1_PD_GAIN_1_S () {	16;}
}
unless(defined(&AR_PHY_TPCRG1_PD_GAIN_2_M)) {
    sub AR_PHY_TPCRG1_PD_GAIN_2_M () {	0xc0000;}
}
unless(defined(&AR_PHY_TPCRG1_PD_GAIN_2_S)) {
    sub AR_PHY_TPCRG1_PD_GAIN_2_S () {	18;}
}
unless(defined(&AR_PHY_TPCRG1_PD_GAIN_3_M)) {
    sub AR_PHY_TPCRG1_PD_GAIN_3_M () {	0x300000;}
}
unless(defined(&AR_PHY_TPCRG1_PD_GAIN_3_S)) {
    sub AR_PHY_TPCRG1_PD_GAIN_3_S () {	20;}
}
unless(defined(&AR_PHY_TPCRG1_PD_CAL_ENABLE)) {
    sub AR_PHY_TPCRG1_PD_CAL_ENABLE () {	0x400000;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_PD_AVG_VALID)) {
    sub AR_PHY_TX_PWRCTRL_PD_AVG_VALID () {	0x1;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_PD_AVG_OUT_M)) {
    sub AR_PHY_TX_PWRCTRL_PD_AVG_OUT_M () {	0x1fe;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_PD_AVG_OUT_S)) {
    sub AR_PHY_TX_PWRCTRL_PD_AVG_OUT_S () {	1;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_ERR_EST_MODE_M)) {
    sub AR_PHY_TX_PWRCTRL_ERR_EST_MODE_M () {	0x3000000;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_ERR_EST_MODE_S)) {
    sub AR_PHY_TX_PWRCTRL_ERR_EST_MODE_S () {	24;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX_M)) {
    sub AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX_M () {	0x7e000;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX_S)) {
    sub AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX_S () {	13;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_INIT_TX_GAIN_M)) {
    sub AR_PHY_TX_PWRCTRL_INIT_TX_GAIN_M () {	0x1f80000;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_INIT_TX_GAIN_S)) {
    sub AR_PHY_TX_PWRCTRL_INIT_TX_GAIN_S () {	19;}
}
unless(defined(&AR_PHY_TX_DESIRED_SCALE_CCK_M)) {
    sub AR_PHY_TX_DESIRED_SCALE_CCK_M () {	0x7c00;}
}
unless(defined(&AR_PHY_TX_DESIRED_SCALE_CCK_S)) {
    sub AR_PHY_TX_DESIRED_SCALE_CCK_S () {	10;}
}
unless(defined(&AR_PHY_TX_PWRCTRL9_RES_DC_REMOVAL)) {
    sub AR_PHY_TX_PWRCTRL9_RES_DC_REMOVAL () {	0x80000000;}
}
unless(defined(&AR_PHY_TX_GAIN_CLC_M)) {
    sub AR_PHY_TX_GAIN_CLC_M () {	0x1e;}
}
unless(defined(&AR_PHY_TX_GAIN_CLC_S)) {
    sub AR_PHY_TX_GAIN_CLC_S () {	1;}
}
unless(defined(&AR_PHY_TX_GAIN_M)) {
    sub AR_PHY_TX_GAIN_M () {	0x7f000;}
}
unless(defined(&AR_PHY_TX_GAIN_S)) {
    sub AR_PHY_TX_GAIN_S () {	12;}
}
unless(defined(&AR_PHY_SPUR_REG_SPUR_RSSI_THRESH_M)) {
    sub AR_PHY_SPUR_REG_SPUR_RSSI_THRESH_M () {	0x7f;}
}
unless(defined(&AR_PHY_SPUR_REG_SPUR_RSSI_THRESH_S)) {
    sub AR_PHY_SPUR_REG_SPUR_RSSI_THRESH_S () {	0;}
}
unless(defined(&AR_SPUR_RSSI_THRESH)) {
    sub AR_SPUR_RSSI_THRESH () {	40;}
}
unless(defined(&AR_PHY_SPUR_REG_ENABLE_VIT_SPUR_RSSI)) {
    sub AR_PHY_SPUR_REG_ENABLE_VIT_SPUR_RSSI () {	0x100;}
}
unless(defined(&AR_PHY_SPUR_REG_MASK_RATE_SELECT)) {
    sub AR_PHY_SPUR_REG_MASK_RATE_SELECT () {	0x1fe00;}
}
unless(defined(&AR_PHY_SPUR_REG_ENABLE_MASK_PPM)) {
    sub AR_PHY_SPUR_REG_ENABLE_MASK_PPM () {	0x20000;}
}
unless(defined(&AR_PHY_SPUR_REG_MASK_RATE_CNTL)) {
    sub AR_PHY_SPUR_REG_MASK_RATE_CNTL () {	0x3fc0000;}
}
unless(defined(&AR_PHY_SWAP_ALT_CHAIN)) {
    sub AR_PHY_SWAP_ALT_CHAIN () {	0x40;}
}
unless(defined(&AR_PHY_TPCRG5_PD_GAIN_OVERLAP_M)) {
    sub AR_PHY_TPCRG5_PD_GAIN_OVERLAP_M () {	0xf;}
}
unless(defined(&AR_PHY_TPCRG5_PD_GAIN_OVERLAP_S)) {
    sub AR_PHY_TPCRG5_PD_GAIN_OVERLAP_S () {	0;}
}
unless(defined(&AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_1_M)) {
    sub AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_1_M () {	0x3f0;}
}
unless(defined(&AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_1_S)) {
    sub AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_1_S () {	4;}
}
unless(defined(&AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_2_M)) {
    sub AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_2_M () {	0xfc00;}
}
unless(defined(&AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_2_S)) {
    sub AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_2_S () {	10;}
}
unless(defined(&AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_3_M)) {
    sub AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_3_M () {	0x3f0000;}
}
unless(defined(&AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_3_S)) {
    sub AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_3_S () {	16;}
}
unless(defined(&AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_4_M)) {
    sub AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_4_M () {	0xfc00000;}
}
unless(defined(&AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_4_S)) {
    sub AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_4_S () {	22;}
}
unless(defined(&AR_PHY_PARALLEL_CAL_ENABLE)) {
    sub AR_PHY_PARALLEL_CAL_ENABLE () {	0x1;}
}
unless(defined(&AR_PHY_CL_CAL_ENABLE)) {
    sub AR_PHY_CL_CAL_ENABLE () {	0x2;}
}
unless(defined(&AR_PHY_CLC_Q0_M)) {
    sub AR_PHY_CLC_Q0_M () {	0xffd0;}
}
unless(defined(&AR_PHY_CLC_Q0_S)) {
    sub AR_PHY_CLC_Q0_S () {	5;}
}
unless(defined(&AR_PHY_CLC_I0_M)) {
    sub AR_PHY_CLC_I0_M () {	0x7ff0000;}
}
unless(defined(&AR_PHY_CLC_I0_S)) {
    sub AR_PHY_CLC_I0_S () {	16;}
}
unless(defined(&AR_PHY_FORCE_XPA_CFG)) {
    sub AR_PHY_FORCE_XPA_CFG () {	0x1;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_OLPC_TEMP_COMP_M)) {
    sub AR_PHY_TX_PWRCTRL_OLPC_TEMP_COMP_M () {	0xfc00;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_OLPC_TEMP_COMP_S)) {
    sub AR_PHY_TX_PWRCTRL_OLPC_TEMP_COMP_S () {	10;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_OLPC_PWR_M)) {
    sub AR_PHY_TX_PWRCTRL_OLPC_PWR_M () {	0xff0000;}
}
unless(defined(&AR_PHY_TX_PWRCTRL_OLPC_PWR_S)) {
    sub AR_PHY_TX_PWRCTRL_OLPC_PWR_S () {	16;}
}
unless(defined(&AR_PHY_NEW_ADC_DC_GAIN_QGAIN_M)) {
    sub AR_PHY_NEW_ADC_DC_GAIN_QGAIN_M () {	0x3f;}
}
unless(defined(&AR_PHY_NEW_ADC_DC_GAIN_QGAIN_S)) {
    sub AR_PHY_NEW_ADC_DC_GAIN_QGAIN_S () {	0;}
}
unless(defined(&AR_PHY_NEW_ADC_DC_GAIN_IGAIN_M)) {
    sub AR_PHY_NEW_ADC_DC_GAIN_IGAIN_M () {	0xfc0;}
}
unless(defined(&AR_PHY_NEW_ADC_DC_GAIN_IGAIN_S)) {
    sub AR_PHY_NEW_ADC_DC_GAIN_IGAIN_S () {	6;}
}
unless(defined(&AR_PHY_NEW_ADC_DC_GAIN_QDC_M)) {
    sub AR_PHY_NEW_ADC_DC_GAIN_QDC_M () {	0x1ff000;}
}
unless(defined(&AR_PHY_NEW_ADC_DC_GAIN_QDC_S)) {
    sub AR_PHY_NEW_ADC_DC_GAIN_QDC_S () {	12;}
}
unless(defined(&AR_PHY_NEW_ADC_DC_GAIN_IDC_M)) {
    sub AR_PHY_NEW_ADC_DC_GAIN_IDC_M () {	0x3fe00000;}
}
unless(defined(&AR_PHY_NEW_ADC_DC_GAIN_IDC_S)) {
    sub AR_PHY_NEW_ADC_DC_GAIN_IDC_S () {	21;}
}
unless(defined(&AR5416_BMODE_SYNTH)) {
    sub AR5416_BMODE_SYNTH () {	0x2;}
}
unless(defined(&AR5416_AMODE_REFSEL_M)) {
    sub AR5416_AMODE_REFSEL_M () {	0xc;}
}
unless(defined(&AR5416_AMODE_REFSEL_S)) {
    sub AR5416_AMODE_REFSEL_S () {	2;}
}
unless(defined(&AR5008_MAX_SCATTER)) {
    sub AR5008_MAX_SCATTER () {	16;}
}
unless(defined(&AR_TXC0_FRAME_LEN_M)) {
    sub AR_TXC0_FRAME_LEN_M () {	0xfff;}
}
unless(defined(&AR_TXC0_FRAME_LEN_S)) {
    sub AR_TXC0_FRAME_LEN_S () {	0;}
}
unless(defined(&AR_TXC0_VIRT_MORE_FRAG)) {
    sub AR_TXC0_VIRT_MORE_FRAG () {	0x1000;}
}
unless(defined(&AR_TXC0_XMIT_POWER_M)) {
    sub AR_TXC0_XMIT_POWER_M () {	0x3f0000;}
}
unless(defined(&AR_TXC0_XMIT_POWER_S)) {
    sub AR_TXC0_XMIT_POWER_S () {	16;}
}
unless(defined(&AR_TXC0_RTS_ENABLE)) {
    sub AR_TXC0_RTS_ENABLE () {	0x400000;}
}
unless(defined(&AR_TXC0_VEOL)) {
    sub AR_TXC0_VEOL () {	0x800000;}
}
unless(defined(&AR_TXC0_CLR_DEST_MASK)) {
    sub AR_TXC0_CLR_DEST_MASK () {	0x1000000;}
}
unless(defined(&AR_TXC0_INTR_REQ)) {
    sub AR_TXC0_INTR_REQ () {	0x20000000;}
}
unless(defined(&AR_TXC0_DEST_IDX_VALID)) {
    sub AR_TXC0_DEST_IDX_VALID () {	0x40000000;}
}
unless(defined(&AR_TXC0_CTS_ENABLE)) {
    sub AR_TXC0_CTS_ENABLE () {	0x80000000;}
}
unless(defined(&AR_TXC1_BUF_LEN_M)) {
    sub AR_TXC1_BUF_LEN_M () {	0xfff;}
}
unless(defined(&AR_TXC1_BUF_LEN_S)) {
    sub AR_TXC1_BUF_LEN_S () {	0;}
}
unless(defined(&AR_TXC1_MORE)) {
    sub AR_TXC1_MORE () {	0x1000;}
}
unless(defined(&AR_TXC1_DEST_IDX_M)) {
    sub AR_TXC1_DEST_IDX_M () {	0xfe000;}
}
unless(defined(&AR_TXC1_DEST_IDX_S)) {
    sub AR_TXC1_DEST_IDX_S () {	13;}
}
unless(defined(&AR_TXC1_FRAME_TYPE_M)) {
    sub AR_TXC1_FRAME_TYPE_M () {	0xf00000;}
}
unless(defined(&AR_TXC1_FRAME_TYPE_S)) {
    sub AR_TXC1_FRAME_TYPE_S () {	20;}
}
unless(defined(&AR_FRAME_TYPE_NORMAL)) {
    sub AR_FRAME_TYPE_NORMAL () {	0;}
}
unless(defined(&AR_FRAME_TYPE_ATIM)) {
    sub AR_FRAME_TYPE_ATIM () {	1;}
}
unless(defined(&AR_FRAME_TYPE_PSPOLL)) {
    sub AR_FRAME_TYPE_PSPOLL () {	2;}
}
unless(defined(&AR_FRAME_TYPE_BEACON)) {
    sub AR_FRAME_TYPE_BEACON () {	3;}
}
unless(defined(&AR_FRAME_TYPE_PROBE_RESP)) {
    sub AR_FRAME_TYPE_PROBE_RESP () {	4;}
}
unless(defined(&AR_TXC1_NO_ACK)) {
    sub AR_TXC1_NO_ACK () {	0x1000000;}
}
unless(defined(&AR_TXC1_INSERT_TS)) {
    sub AR_TXC1_INSERT_TS () {	0x2000000;}
}
unless(defined(&AR_TXC1_EXT_ONLY)) {
    sub AR_TXC1_EXT_ONLY () {	0x8000000;}
}
unless(defined(&AR_TXC1_EXT_AND_CTL)) {
    sub AR_TXC1_EXT_AND_CTL () {	0x10000000;}
}
unless(defined(&AR_TXC1_MORE_AGGR)) {
    sub AR_TXC1_MORE_AGGR () {	0x20000000;}
}
unless(defined(&AR_TXC1_IS_AGGR)) {
    sub AR_TXC1_IS_AGGR () {	0x40000000;}
}
unless(defined(&AR_TXC2_BURST_DUR_M)) {
    sub AR_TXC2_BURST_DUR_M () {	0x7fff;}
}
unless(defined(&AR_TXC2_BURST_DUR_S)) {
    sub AR_TXC2_BURST_DUR_S () {	0;}
}
unless(defined(&AR_TXC2_DUR_UPDATE_ENA)) {
    sub AR_TXC2_DUR_UPDATE_ENA () {	0x8000;}
}
unless(defined(&AR_TXC2_XMIT_DATA_TRIES0_M)) {
    sub AR_TXC2_XMIT_DATA_TRIES0_M () {	0xf0000;}
}
unless(defined(&AR_TXC2_XMIT_DATA_TRIES0_S)) {
    sub AR_TXC2_XMIT_DATA_TRIES0_S () {	16;}
}
unless(defined(&AR_TXC2_XMIT_DATA_TRIES1_M)) {
    sub AR_TXC2_XMIT_DATA_TRIES1_M () {	0xf00000;}
}
unless(defined(&AR_TXC2_XMIT_DATA_TRIES1_S)) {
    sub AR_TXC2_XMIT_DATA_TRIES1_S () {	20;}
}
unless(defined(&AR_TXC2_XMIT_DATA_TRIES2_M)) {
    sub AR_TXC2_XMIT_DATA_TRIES2_M () {	0xf000000;}
}
unless(defined(&AR_TXC2_XMIT_DATA_TRIES2_S)) {
    sub AR_TXC2_XMIT_DATA_TRIES2_S () {	24;}
}
unless(defined(&AR_TXC2_XMIT_DATA_TRIES3_M)) {
    sub AR_TXC2_XMIT_DATA_TRIES3_M () {	0xf0000000;}
}
unless(defined(&AR_TXC2_XMIT_DATA_TRIES3_S)) {
    sub AR_TXC2_XMIT_DATA_TRIES3_S () {	28;}
}
unless(defined(&AR_TXC3_XMIT_RATE0_M)) {
    sub AR_TXC3_XMIT_RATE0_M () {	0xff;}
}
unless(defined(&AR_TXC3_XMIT_RATE0_S)) {
    sub AR_TXC3_XMIT_RATE0_S () {	0;}
}
unless(defined(&AR_TXC3_XMIT_RATE1_M)) {
    sub AR_TXC3_XMIT_RATE1_M () {	0xff00;}
}
unless(defined(&AR_TXC3_XMIT_RATE1_S)) {
    sub AR_TXC3_XMIT_RATE1_S () {	8;}
}
unless(defined(&AR_TXC3_XMIT_RATE2_M)) {
    sub AR_TXC3_XMIT_RATE2_M () {	0xff0000;}
}
unless(defined(&AR_TXC3_XMIT_RATE2_S)) {
    sub AR_TXC3_XMIT_RATE2_S () {	16;}
}
unless(defined(&AR_TXC3_XMIT_RATE3_M)) {
    sub AR_TXC3_XMIT_RATE3_M () {	0xff000000;}
}
unless(defined(&AR_TXC3_XMIT_RATE3_S)) {
    sub AR_TXC3_XMIT_RATE3_S () {	24;}
}
unless(defined(&AR_TXC4_PACKET_DUR0_M)) {
    sub AR_TXC4_PACKET_DUR0_M () {	0x7fff;}
}
unless(defined(&AR_TXC4_PACKET_DUR0_S)) {
    sub AR_TXC4_PACKET_DUR0_S () {	0;}
}
unless(defined(&AR_TXC4_RTSCTS_QUAL0)) {
    sub AR_TXC4_RTSCTS_QUAL0 () {	0x8000;}
}
unless(defined(&AR_TXC4_PACKET_DUR1_M)) {
    sub AR_TXC4_PACKET_DUR1_M () {	0x7fff0000;}
}
unless(defined(&AR_TXC4_PACKET_DUR1_S)) {
    sub AR_TXC4_PACKET_DUR1_S () {	16;}
}
unless(defined(&AR_TXC4_RTSCTS_QUAL1)) {
    sub AR_TXC4_RTSCTS_QUAL1 () {	0x80000000;}
}
unless(defined(&AR_TXC4_RTSCTS_QUAL01)) {
    sub AR_TXC4_RTSCTS_QUAL01 () {	( &AR_TXC4_RTSCTS_QUAL0 |  &AR_TXC4_RTSCTS_QUAL1);}
}
unless(defined(&AR_TXC5_PACKET_DUR2_M)) {
    sub AR_TXC5_PACKET_DUR2_M () {	0x7fff;}
}
unless(defined(&AR_TXC5_PACKET_DUR2_S)) {
    sub AR_TXC5_PACKET_DUR2_S () {	0;}
}
unless(defined(&AR_TXC5_RTSCTS_QUAL2)) {
    sub AR_TXC5_RTSCTS_QUAL2 () {	0x8000;}
}
unless(defined(&AR_TXC5_PACKET_DUR3_M)) {
    sub AR_TXC5_PACKET_DUR3_M () {	0x7fff0000;}
}
unless(defined(&AR_TXC5_PACKET_DUR3_S)) {
    sub AR_TXC5_PACKET_DUR3_S () {	16;}
}
unless(defined(&AR_TXC5_RTSCTS_QUAL3)) {
    sub AR_TXC5_RTSCTS_QUAL3 () {	0x80000000;}
}
unless(defined(&AR_TXC5_RTSCTS_QUAL23)) {
    sub AR_TXC5_RTSCTS_QUAL23 () {	( &AR_TXC5_RTSCTS_QUAL2 |  &AR_TXC5_RTSCTS_QUAL3);}
}
unless(defined(&AR_TXC6_AGGR_LEN_M)) {
    sub AR_TXC6_AGGR_LEN_M () {	0xffff;}
}
unless(defined(&AR_TXC6_AGGR_LEN_S)) {
    sub AR_TXC6_AGGR_LEN_S () {	0;}
}
unless(defined(&AR_TXC6_PAD_DELIM_M)) {
    sub AR_TXC6_PAD_DELIM_M () {	0x3fc0000;}
}
unless(defined(&AR_TXC6_PAD_DELIM_S)) {
    sub AR_TXC6_PAD_DELIM_S () {	18;}
}
unless(defined(&AR_TXC6_ENCR_TYPE_M)) {
    sub AR_TXC6_ENCR_TYPE_M () {	0xc000000;}
}
unless(defined(&AR_TXC6_ENCR_TYPE_S)) {
    sub AR_TXC6_ENCR_TYPE_S () {	26;}
}
unless(defined(&AR_ENCR_TYPE_CLEAR)) {
    sub AR_ENCR_TYPE_CLEAR () {	0;}
}
unless(defined(&AR_ENCR_TYPE_WEP)) {
    sub AR_ENCR_TYPE_WEP () {	1;}
}
unless(defined(&AR_ENCR_TYPE_AES)) {
    sub AR_ENCR_TYPE_AES () {	2;}
}
unless(defined(&AR_ENCR_TYPE_TKIP)) {
    sub AR_ENCR_TYPE_TKIP () {	3;}
}
unless(defined(&AR_TXC7_2040_0)) {
    sub AR_TXC7_2040_0 () {	0x1;}
}
unless(defined(&AR_TXC7_GI0)) {
    sub AR_TXC7_GI0 () {	0x2;}
}
unless(defined(&AR_TXC7_CHAIN_SEL0_M)) {
    sub AR_TXC7_CHAIN_SEL0_M () {	0x1c;}
}
unless(defined(&AR_TXC7_CHAIN_SEL0_S)) {
    sub AR_TXC7_CHAIN_SEL0_S () {	2;}
}
unless(defined(&AR_TXC7_2040_1)) {
    sub AR_TXC7_2040_1 () {	0x20;}
}
unless(defined(&AR_TXC7_GI1)) {
    sub AR_TXC7_GI1 () {	0x40;}
}
unless(defined(&AR_TXC7_CHAIN_SEL1_M)) {
    sub AR_TXC7_CHAIN_SEL1_M () {	0x380;}
}
unless(defined(&AR_TXC7_CHAIN_SEL1_S)) {
    sub AR_TXC7_CHAIN_SEL1_S () {	7;}
}
unless(defined(&AR_TXC7_2040_2)) {
    sub AR_TXC7_2040_2 () {	0x400;}
}
unless(defined(&AR_TXC7_GI2)) {
    sub AR_TXC7_GI2 () {	0x800;}
}
unless(defined(&AR_TXC7_CHAIN_SEL2_M)) {
    sub AR_TXC7_CHAIN_SEL2_M () {	0x7000;}
}
unless(defined(&AR_TXC7_CHAIN_SEL2_S)) {
    sub AR_TXC7_CHAIN_SEL2_S () {	12;}
}
unless(defined(&AR_TXC7_2040_3)) {
    sub AR_TXC7_2040_3 () {	0x8000;}
}
unless(defined(&AR_TXC7_GI3)) {
    sub AR_TXC7_GI3 () {	0x10000;}
}
unless(defined(&AR_TXC7_CHAIN_SEL3_M)) {
    sub AR_TXC7_CHAIN_SEL3_M () {	0xe0000;}
}
unless(defined(&AR_TXC7_CHAIN_SEL3_S)) {
    sub AR_TXC7_CHAIN_SEL3_S () {	17;}
}
unless(defined(&AR_TXC7_RTSCTS_RATE_M)) {
    sub AR_TXC7_RTSCTS_RATE_M () {	0xff00000;}
}
unless(defined(&AR_TXC7_RTSCTS_RATE_S)) {
    sub AR_TXC7_RTSCTS_RATE_S () {	20;}
}
unless(defined(&AR_TXC7_2040_0123)) {
    sub AR_TXC7_2040_0123 () {	( &AR_TXC7_2040_0 |  &AR_TXC7_2040_1 |  &AR_TXC7_2040_2 |  &AR_TXC7_2040_3);}
}
unless(defined(&AR_TXC7_GI0123)) {
    sub AR_TXC7_GI0123 () {	( &AR_TXC7_GI0 |  &AR_TXC7_GI1 |  &AR_TXC7_GI2 |  &AR_TXC7_GI3);}
}
unless(defined(&AR_TXS0_RSSI_ANT0)) {
    sub AR_TXS0_RSSI_ANT0 {
	my($i) = @_;
	eval q(((( &x) >> (($i) * 8)) & 0xff));
    }
}
unless(defined(&AR_TXS0_BA_STATUS)) {
    sub AR_TXS0_BA_STATUS () {	0x40000000;}
}
unless(defined(&AR_TXS1_FRM_XMIT_OK)) {
    sub AR_TXS1_FRM_XMIT_OK () {	0x1;}
}
unless(defined(&AR_TXS1_EXCESSIVE_RETRIES)) {
    sub AR_TXS1_EXCESSIVE_RETRIES () {	0x2;}
}
unless(defined(&AR_TXS1_FIFO_UNDERRUN)) {
    sub AR_TXS1_FIFO_UNDERRUN () {	0x4;}
}
unless(defined(&AR_TXS1_FILTERED)) {
    sub AR_TXS1_FILTERED () {	0x8;}
}
unless(defined(&AR_TXS1_RTS_FAIL_CNT_M)) {
    sub AR_TXS1_RTS_FAIL_CNT_M () {	0xf0;}
}
unless(defined(&AR_TXS1_RTS_FAIL_CNT_S)) {
    sub AR_TXS1_RTS_FAIL_CNT_S () {	4;}
}
unless(defined(&AR_TXS1_DATA_FAIL_CNT_M)) {
    sub AR_TXS1_DATA_FAIL_CNT_M () {	0xf00;}
}
unless(defined(&AR_TXS1_DATA_FAIL_CNT_S)) {
    sub AR_TXS1_DATA_FAIL_CNT_S () {	8;}
}
unless(defined(&AR_TXS1_VIRT_RETRY_CNT_M)) {
    sub AR_TXS1_VIRT_RETRY_CNT_M () {	0xf000;}
}
unless(defined(&AR_TXS1_VIRT_RETRY_CNT_S)) {
    sub AR_TXS1_VIRT_RETRY_CNT_S () {	12;}
}
unless(defined(&AR_TXS1_TX_DELIM_UNDERRUN)) {
    sub AR_TXS1_TX_DELIM_UNDERRUN () {	0x10000;}
}
unless(defined(&AR_TXS1_TX_DATA_UNDERRUN)) {
    sub AR_TXS1_TX_DATA_UNDERRUN () {	0x20000;}
}
unless(defined(&AR_TXS1_DESC_CFG_ERR)) {
    sub AR_TXS1_DESC_CFG_ERR () {	0x40000;}
}
unless(defined(&AR_TXS1_TX_TIMER_EXPIRED)) {
    sub AR_TXS1_TX_TIMER_EXPIRED () {	0x80000;}
}
unless(defined(&AR_TXS1_UNDERRUN)) {
    sub AR_TXS1_UNDERRUN () {	( &AR_TXS1_FIFO_UNDERRUN |  &AR_TXS1_TX_DELIM_UNDERRUN |  &AR_TXS1_TX_DATA_UNDERRUN);}
}
unless(defined(&AR_TXS9_DONE)) {
    sub AR_TXS9_DONE () {	0x1;}
}
unless(defined(&AR_TXS9_SEQNUM_M)) {
    sub AR_TXS9_SEQNUM_M () {	0x1ffe;}
}
unless(defined(&AR_TXS9_SEQNUM_S)) {
    sub AR_TXS9_SEQNUM_S () {	1;}
}
unless(defined(&AR_TXS9_TXOP_EXCEEDED)) {
    sub AR_TXS9_TXOP_EXCEEDED () {	0x20000;}
}
unless(defined(&AR_TXS9_FINAL_IDX_M)) {
    sub AR_TXS9_FINAL_IDX_M () {	0x600000;}
}
unless(defined(&AR_TXS9_FINAL_IDX_S)) {
    sub AR_TXS9_FINAL_IDX_S () {	21;}
}
unless(defined(&AR_TXS9_POWER_MGMT)) {
    sub AR_TXS9_POWER_MGMT () {	0x2000000;}
}
unless(defined(&AR_RXC1_BUF_LEN_M)) {
    sub AR_RXC1_BUF_LEN_M () {	0xfff;}
}
unless(defined(&AR_RXC1_BUF_LEN_S)) {
    sub AR_RXC1_BUF_LEN_S () {	0;}
}
unless(defined(&AR_RXC1_INTR_REQ)) {
    sub AR_RXC1_INTR_REQ () {	0x2000;}
}
unless(defined(&AR_RXS0_RSSI_ANT00)) {
    sub AR_RXS0_RSSI_ANT00 {
	my($x) = @_;
	eval q(((($x) >> 0) & 0xff));
    }
}
unless(defined(&AR_RXS0_RSSI_ANT01)) {
    sub AR_RXS0_RSSI_ANT01 {
	my($x) = @_;
	eval q(((($x) >> 8) & 0xff));
    }
}
unless(defined(&AR_RXS0_RSSI_ANT02)) {
    sub AR_RXS0_RSSI_ANT02 {
	my($x) = @_;
	eval q(((($x) >> 16) & 0xff));
    }
}
unless(defined(&AR_RXS0_RATE_M)) {
    sub AR_RXS0_RATE_M () {	0xff000000;}
}
unless(defined(&AR_RXS0_RATE_S)) {
    sub AR_RXS0_RATE_S () {	24;}
}
unless(defined(&AR_RXS1_DATA_LEN_M)) {
    sub AR_RXS1_DATA_LEN_M () {	0xfff;}
}
unless(defined(&AR_RXS1_DATA_LEN_S)) {
    sub AR_RXS1_DATA_LEN_S () {	0;}
}
unless(defined(&AR_RXS1_MORE)) {
    sub AR_RXS1_MORE () {	0x1000;}
}
unless(defined(&AR_RXS3_GI)) {
    sub AR_RXS3_GI () {	0x1;}
}
unless(defined(&AR_RXS3_2040)) {
    sub AR_RXS3_2040 () {	0x2;}
}
unless(defined(&AR_RXS3_PARALLEL_40)) {
    sub AR_RXS3_PARALLEL_40 () {	0x4;}
}
unless(defined(&AR_RXS3_ANTENNA_M)) {
    sub AR_RXS3_ANTENNA_M () {	0xffffff00;}
}
unless(defined(&AR_RXS3_ANTENNA_S)) {
    sub AR_RXS3_ANTENNA_S () {	8;}
}
unless(defined(&AR_RXS3_RATE_M)) {
    sub AR_RXS3_RATE_M () {	0x3fc;}
}
unless(defined(&AR_RXS3_RATE_S)) {
    sub AR_RXS3_RATE_S () {	2;}
}
unless(defined(&AR_RXS4_RSSI_COMBINED_M)) {
    sub AR_RXS4_RSSI_COMBINED_M () {	0xff000000;}
}
unless(defined(&AR_RXS4_RSSI_COMBINED_S)) {
    sub AR_RXS4_RSSI_COMBINED_S () {	24;}
}
unless(defined(&AR_RXS8_DONE)) {
    sub AR_RXS8_DONE () {	0x1;}
}
unless(defined(&AR_RXS8_FRAME_OK)) {
    sub AR_RXS8_FRAME_OK () {	0x2;}
}
unless(defined(&AR_RXS8_CRC_ERR)) {
    sub AR_RXS8_CRC_ERR () {	0x4;}
}
unless(defined(&AR_RXS8_DECRYPT_CRC_ERR)) {
    sub AR_RXS8_DECRYPT_CRC_ERR () {	0x8;}
}
unless(defined(&AR_RXS8_PHY_ERR)) {
    sub AR_RXS8_PHY_ERR () {	0x10;}
}
unless(defined(&AR_RXS8_MICHAEL_ERR)) {
    sub AR_RXS8_MICHAEL_ERR () {	0x20;}
}
unless(defined(&AR_RXS8_PRE_DELIM_CRC_ERR)) {
    sub AR_RXS8_PRE_DELIM_CRC_ERR () {	0x40;}
}
unless(defined(&AR_RXS8_PHY_ERR_CODE_M)) {
    sub AR_RXS8_PHY_ERR_CODE_M () {	0xff00;}
}
unless(defined(&AR_RXS8_PHY_ERR_CODE_S)) {
    sub AR_RXS8_PHY_ERR_CODE_S () {	8;}
}
unless(defined(&AR_RXS8_KEY_IDX_VALID)) {
    sub AR_RXS8_KEY_IDX_VALID () {	0x100;}
}
unless(defined(&AR_RXS8_KEY_IDX_M)) {
    sub AR_RXS8_KEY_IDX_M () {	0xfe00;}
}
unless(defined(&AR_RXS8_KEY_IDX_S)) {
    sub AR_RXS8_KEY_IDX_S () {	9;}
}
unless(defined(&AR_RXS8_POST_DELIM_CRC_ERR)) {
    sub AR_RXS8_POST_DELIM_CRC_ERR () {	0x40000;}
}
unless(defined(&AR_RXS8_DECRYPT_BUSY_ERR)) {
    sub AR_RXS8_DECRYPT_BUSY_ERR () {	0x40000000;}
}
unless(defined(&AR_MAX_PWR_RANGE_IN_HALF_DB)) {
    sub AR_MAX_PWR_RANGE_IN_HALF_DB () {	64;}
}
unless(defined(&AR9285_PD_GAIN_BOUNDARY_DEFAULT)) {
    sub AR9285_PD_GAIN_BOUNDARY_DEFAULT () {	58;}
}
unless(defined(&AR_EEPROM_MAGIC_OFFSET)) {
    sub AR_EEPROM_MAGIC_OFFSET () {	0x;}
}
if((defined(&BYTE_ORDER) ? &BYTE_ORDER : undef) == (defined(&BIG_ENDIAN) ? &BIG_ENDIAN : undef)) {
    eval 'sub AR_EEPROM_MAGIC () {0x5aa5;}' unless defined(&AR_EEPROM_MAGIC);
} else {
    eval 'sub AR_EEPROM_MAGIC () {0xa55a;}' unless defined(&AR_EEPROM_MAGIC);
}
unless(defined(&AR_NO_SPUR)) {
    sub AR_NO_SPUR () {	0x8000;}
}
unless(defined(&AR_NUM_PDADC_VALUES)) {
    sub AR_NUM_PDADC_VALUES () {	128;}
}
unless(defined(&AR_EEP_VER)) {
    sub AR_EEP_VER () {	0xe;}
}
unless(defined(&AR_EEP_VER_MINOR_MASK)) {
    sub AR_EEP_VER_MINOR_MASK () {	0xfff;}
}
unless(defined(&AR_EEP_MINOR_VER_2)) {
    sub AR_EEP_MINOR_VER_2 () {	2;}
}
unless(defined(&AR_EEP_MINOR_VER_3)) {
    sub AR_EEP_MINOR_VER_3 () {	3;}
}
unless(defined(&AR_EEP_MINOR_VER_7)) {
    sub AR_EEP_MINOR_VER_7 () {	7;}
}
unless(defined(&AR_EEP_MINOR_VER_9)) {
    sub AR_EEP_MINOR_VER_9 () {	9;}
}
unless(defined(&AR_EEP_MINOR_VER_10)) {
    sub AR_EEP_MINOR_VER_10 () {	10;}
}
unless(defined(&AR_EEP_MINOR_VER_16)) {
    sub AR_EEP_MINOR_VER_16 () {	16;}
}
unless(defined(&AR_EEP_MINOR_VER_17)) {
    sub AR_EEP_MINOR_VER_17 () {	17;}
}
unless(defined(&AR_EEP_MINOR_VER_19)) {
    sub AR_EEP_MINOR_VER_19 () {	19;}
}
unless(defined(&AR_EEP_MINOR_VER_20)) {
    sub AR_EEP_MINOR_VER_20 () {	20;}
}
unless(defined(&AR_EEP_MINOR_VER_21)) {
    sub AR_EEP_MINOR_VER_21 () {	21;}
}
unless(defined(&AR_EEP_MINOR_VER_22)) {
    sub AR_EEP_MINOR_VER_22 () {	22;}
}
unless(defined(&AR_OPFLAGS_11A)) {
    sub AR_OPFLAGS_11A () {	0x1;}
}
unless(defined(&AR_OPFLAGS_11G)) {
    sub AR_OPFLAGS_11G () {	0x2;}
}
unless(defined(&AR_OPFLAGS_11N_5G40)) {
    sub AR_OPFLAGS_11N_5G40 () {	0x4;}
}
unless(defined(&AR_OPFLAGS_11N_2G40)) {
    sub AR_OPFLAGS_11N_2G40 () {	0x8;}
}
unless(defined(&AR_OPFLAGS_11N_5G20)) {
    sub AR_OPFLAGS_11N_5G20 () {	0x10;}
}
unless(defined(&AR_OPFLAGS_11N_2G20)) {
    sub AR_OPFLAGS_11N_2G20 () {	0x20;}
}
unless(defined(&AR_OPFLAGS_11N)) {
    sub AR_OPFLAGS_11N () {	0x3c;}
}
unless(defined(&AR_EEP_RFSILENT_ENABLED)) {
    sub AR_EEP_RFSILENT_ENABLED () {	0x1;}
}
unless(defined(&AR_EEP_RFSILENT_GPIO_SEL_M)) {
    sub AR_EEP_RFSILENT_GPIO_SEL_M () {	0x1c;}
}
unless(defined(&AR_EEP_RFSILENT_GPIO_SEL_S)) {
    sub AR_EEP_RFSILENT_GPIO_SEL_S () {	2;}
}
unless(defined(&AR_EEP_RFSILENT_POLARITY)) {
    sub AR_EEP_RFSILENT_POLARITY () {	0x2;}
}
unless(defined(&AR_EEP_DEVCAP_COMPRESS_DIS)) {
    sub AR_EEP_DEVCAP_COMPRESS_DIS () {	0x1;}
}
unless(defined(&AR_EEP_DEVCAP_AES_DIS)) {
    sub AR_EEP_DEVCAP_AES_DIS () {	0x2;}
}
unless(defined(&AR_EEP_DEVCAP_FASTFRAME_DIS)) {
    sub AR_EEP_DEVCAP_FASTFRAME_DIS () {	0x4;}
}
unless(defined(&AR_EEP_DEVCAP_BURST_DIS)) {
    sub AR_EEP_DEVCAP_BURST_DIS () {	0x8;}
}
unless(defined(&AR_EEP_DEVCAP_MAXQCU_M)) {
    sub AR_EEP_DEVCAP_MAXQCU_M () {	0x1f0;}
}
unless(defined(&AR_EEP_DEVCAP_MAXQCU_S)) {
    sub AR_EEP_DEVCAP_MAXQCU_S () {	4;}
}
unless(defined(&AR_EEP_DEVCAP_HEAVY_CLIP_EN)) {
    sub AR_EEP_DEVCAP_HEAVY_CLIP_EN () {	0x200;}
}
unless(defined(&AR_EEP_DEVCAP_KC_ENTRIES_M)) {
    sub AR_EEP_DEVCAP_KC_ENTRIES_M () {	0xf000;}
}
unless(defined(&AR_EEP_DEVCAP_KC_ENTRIES_S)) {
    sub AR_EEP_DEVCAP_KC_ENTRIES_S () {	12;}
}
unless(defined(&AR_EEP_TXGAIN_ORIGINAL)) {
    sub AR_EEP_TXGAIN_ORIGINAL () {	0;}
}
unless(defined(&AR_EEP_TXGAIN_HIGH_POWER)) {
    sub AR_EEP_TXGAIN_HIGH_POWER () {	1;}
}
unless(defined(&AR_EEPROM_MODAL_SPURS)) {
    sub AR_EEPROM_MODAL_SPURS () {	5;}
}
unless(defined(&AR_CAL_CTL_EDGES_POWER_M)) {
    sub AR_CAL_CTL_EDGES_POWER_M () {	0x3f;}
}
unless(defined(&AR_CAL_CTL_EDGES_POWER_S)) {
    sub AR_CAL_CTL_EDGES_POWER_S () {	0;}
}
unless(defined(&AR_CAL_CTL_EDGES_FLAG_M)) {
    sub AR_CAL_CTL_EDGES_FLAG_M () {	0xc0;}
}
unless(defined(&AR_CAL_CTL_EDGES_FLAG_S)) {
    sub AR_CAL_CTL_EDGES_FLAG_S () {	6;}
}
1;
