require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_AR5K_AR5212_REG_H)) {
    eval 'sub _AR5K_AR5212_REG_H () {1;}' unless defined(&_AR5K_AR5212_REG_H);
    eval 'sub AR5K_AR5212_CR () {0x8;}' unless defined(&AR5K_AR5212_CR);
    eval 'sub AR5K_AR5212_CR_RXE () {0x4;}' unless defined(&AR5K_AR5212_CR_RXE);
    eval 'sub AR5K_AR5212_CR_RXD () {0x20;}' unless defined(&AR5K_AR5212_CR_RXD);
    eval 'sub AR5K_AR5212_CR_SWI () {0x40;}' unless defined(&AR5K_AR5212_CR_SWI);
    eval 'sub AR5K_AR5212_RXDP () {0xc;}' unless defined(&AR5K_AR5212_RXDP);
    eval 'sub AR5K_AR5212_CFG () {0x14;}' unless defined(&AR5K_AR5212_CFG);
    eval 'sub AR5K_AR5212_CFG_SWTD () {0x1;}' unless defined(&AR5K_AR5212_CFG_SWTD);
    eval 'sub AR5K_AR5212_CFG_SWTB () {0x2;}' unless defined(&AR5K_AR5212_CFG_SWTB);
    eval 'sub AR5K_AR5212_CFG_SWRD () {0x4;}' unless defined(&AR5K_AR5212_CFG_SWRD);
    eval 'sub AR5K_AR5212_CFG_SWRB () {0x8;}' unless defined(&AR5K_AR5212_CFG_SWRB);
    eval 'sub AR5K_AR5212_CFG_SWRG () {0x10;}' unless defined(&AR5K_AR5212_CFG_SWRG);
    eval 'sub AR5K_AR5212_CFG_ADHOC () {0x20;}' unless defined(&AR5K_AR5212_CFG_ADHOC);
    eval 'sub AR5K_AR5212_CFG_PHY_OK () {0x100;}' unless defined(&AR5K_AR5212_CFG_PHY_OK);
    eval 'sub AR5K_AR5212_CFG_EEBS () {0x200;}' unless defined(&AR5K_AR5212_CFG_EEBS);
    eval 'sub AR5K_AR5212_CFG_CLKGD () {0x400;}' unless defined(&AR5K_AR5212_CFG_CLKGD);
    eval 'sub AR5K_AR5212_CFG_PCI_THRES () {0x60000;}' unless defined(&AR5K_AR5212_CFG_PCI_THRES);
    eval 'sub AR5K_AR5212_CFG_PCI_THRES_S () {17;}' unless defined(&AR5K_AR5212_CFG_PCI_THRES_S);
    eval 'sub AR5K_AR5212_IER () {0x24;}' unless defined(&AR5K_AR5212_IER);
    eval 'sub AR5K_AR5212_IER_DISABLE () {0x;}' unless defined(&AR5K_AR5212_IER_DISABLE);
    eval 'sub AR5K_AR5212_IER_ENABLE () {0x1;}' unless defined(&AR5K_AR5212_IER_ENABLE);
    eval 'sub AR5K_AR5212_TXCFG () {0x30;}' unless defined(&AR5K_AR5212_TXCFG);
    eval 'sub AR5K_AR5212_TXCFG_SDMAMR () {0x7;}' unless defined(&AR5K_AR5212_TXCFG_SDMAMR);
    eval 'sub AR5K_AR5212_TXCFG_SDMAMR_S () {0;}' unless defined(&AR5K_AR5212_TXCFG_SDMAMR_S);
    eval 'sub AR5K_AR5212_TXCFG_B_MODE () {0x8;}' unless defined(&AR5K_AR5212_TXCFG_B_MODE);
    eval 'sub AR5K_AR5212_TXCFG_TXFULL () {0x3f0;}' unless defined(&AR5K_AR5212_TXCFG_TXFULL);
    eval 'sub AR5K_AR5212_TXCFG_TXFULL_S () {4;}' unless defined(&AR5K_AR5212_TXCFG_TXFULL_S);
    eval 'sub AR5K_AR5212_TXCFG_TXFULL_0B () {0x;}' unless defined(&AR5K_AR5212_TXCFG_TXFULL_0B);
    eval 'sub AR5K_AR5212_TXCFG_TXFULL_64B () {0x10;}' unless defined(&AR5K_AR5212_TXCFG_TXFULL_64B);
    eval 'sub AR5K_AR5212_TXCFG_TXFULL_128B () {0x20;}' unless defined(&AR5K_AR5212_TXCFG_TXFULL_128B);
    eval 'sub AR5K_AR5212_TXCFG_TXFULL_192B () {0x30;}' unless defined(&AR5K_AR5212_TXCFG_TXFULL_192B);
    eval 'sub AR5K_AR5212_TXCFG_TXFULL_256B () {0x40;}' unless defined(&AR5K_AR5212_TXCFG_TXFULL_256B);
    eval 'sub AR5K_AR5212_TXCFG_TXCONT_ENABLE () {0x80;}' unless defined(&AR5K_AR5212_TXCFG_TXCONT_ENABLE);
    eval 'sub AR5K_AR5212_TXCFG_DMASIZE () {0x100;}' unless defined(&AR5K_AR5212_TXCFG_DMASIZE);
    eval 'sub AR5K_AR5212_TXCFG_JUMBO_TXE () {0x400;}' unless defined(&AR5K_AR5212_TXCFG_JUMBO_TXE);
    eval 'sub AR5K_AR5212_TXCFG_RTSRND () {0x1000;}' unless defined(&AR5K_AR5212_TXCFG_RTSRND);
    eval 'sub AR5K_AR5212_TXCFG_FRMPAD_DIS () {0x2000;}' unless defined(&AR5K_AR5212_TXCFG_FRMPAD_DIS);
    eval 'sub AR5K_AR5212_TXCFG_RDY_DIS () {0x4000;}' unless defined(&AR5K_AR5212_TXCFG_RDY_DIS);
    eval 'sub AR5K_AR5212_RXCFG () {0x34;}' unless defined(&AR5K_AR5212_RXCFG);
    eval 'sub AR5K_AR5212_RXCFG_SDMAMW () {0x7;}' unless defined(&AR5K_AR5212_RXCFG_SDMAMW);
    eval 'sub AR5K_AR5212_RXCFG_SDMAMW_S () {0;}' unless defined(&AR5K_AR5212_RXCFG_SDMAMW_S);
    eval 'sub AR5K_AR5311_RXCFG_DEFAULT_ANTENNA () {0x8;}' unless defined(&AR5K_AR5311_RXCFG_DEFAULT_ANTENNA);
    eval 'sub AR5K_AR5212_RXCFG_ZLFDMA () {0x10;}' unless defined(&AR5K_AR5212_RXCFG_ZLFDMA);
    eval 'sub AR5K_AR5212_RXCFG_JUMBO_RXE () {0x20;}' unless defined(&AR5K_AR5212_RXCFG_JUMBO_RXE);
    eval 'sub AR5K_AR5212_RXCFG_JUMBO_WRAP () {0x40;}' unless defined(&AR5K_AR5212_RXCFG_JUMBO_WRAP);
    eval 'sub AR5K_AR5212_MIBC () {0x40;}' unless defined(&AR5K_AR5212_MIBC);
    eval 'sub AR5K_AR5212_MIBC_COW () {0x1;}' unless defined(&AR5K_AR5212_MIBC_COW);
    eval 'sub AR5K_AR5212_MIBC_FMC () {0x2;}' unless defined(&AR5K_AR5212_MIBC_FMC);
    eval 'sub AR5K_AR5212_MIBC_CMC () {0x4;}' unless defined(&AR5K_AR5212_MIBC_CMC);
    eval 'sub AR5K_AR5212_MIBC_MCS () {0x8;}' unless defined(&AR5K_AR5212_MIBC_MCS);
    eval 'sub AR5K_AR5212_TOPS () {0x44;}' unless defined(&AR5K_AR5212_TOPS);
    eval 'sub AR5K_AR5212_TOPS_M () {0xffff;}' unless defined(&AR5K_AR5212_TOPS_M);
    eval 'sub AR5K_AR5212_RXNOFRM () {0x48;}' unless defined(&AR5K_AR5212_RXNOFRM);
    eval 'sub AR5K_AR5212_RXNOFRM_M () {0x3ff;}' unless defined(&AR5K_AR5212_RXNOFRM_M);
    eval 'sub AR5K_AR5212_TXNOFRM () {0x4c;}' unless defined(&AR5K_AR5212_TXNOFRM);
    eval 'sub AR5K_AR5212_TXNOFRM_M () {0x3ff;}' unless defined(&AR5K_AR5212_TXNOFRM_M);
    eval 'sub AR5K_AR5212_TXNOFRM_QCU () {0xffc00;}' unless defined(&AR5K_AR5212_TXNOFRM_QCU);
    eval 'sub AR5K_AR5212_RPGTO () {0x50;}' unless defined(&AR5K_AR5212_RPGTO);
    eval 'sub AR5K_AR5212_RPGTO_M () {0x3ff;}' unless defined(&AR5K_AR5212_RPGTO_M);
    eval 'sub AR5K_AR5212_RFCNT () {0x54;}' unless defined(&AR5K_AR5212_RFCNT);
    eval 'sub AR5K_AR5212_RFCNT_M () {0x1f;}' unless defined(&AR5K_AR5212_RFCNT_M);
    eval 'sub AR5K_AR5212_MISC () {0x58;}' unless defined(&AR5K_AR5212_MISC);
    eval 'sub AR5K_AR5212_MISC_DMA_OBS_M () {0x1e0;}' unless defined(&AR5K_AR5212_MISC_DMA_OBS_M);
    eval 'sub AR5K_AR5212_MISC_DMA_OBS_S () {5;}' unless defined(&AR5K_AR5212_MISC_DMA_OBS_S);
    eval 'sub AR5K_AR5212_MISC_MISC_OBS_M () {0xe00;}' unless defined(&AR5K_AR5212_MISC_MISC_OBS_M);
    eval 'sub AR5K_AR5212_MISC_MISC_OBS_S () {9;}' unless defined(&AR5K_AR5212_MISC_MISC_OBS_S);
    eval 'sub AR5K_AR5212_MISC_MAC_OBS_LSB_M () {0x7000;}' unless defined(&AR5K_AR5212_MISC_MAC_OBS_LSB_M);
    eval 'sub AR5K_AR5212_MISC_MAC_OBS_LSB_S () {12;}' unless defined(&AR5K_AR5212_MISC_MAC_OBS_LSB_S);
    eval 'sub AR5K_AR5212_MISC_MAC_OBS_MSB_M () {0x38000;}' unless defined(&AR5K_AR5212_MISC_MAC_OBS_MSB_M);
    eval 'sub AR5K_AR5212_MISC_MAC_OBS_MSB_S () {15;}' unless defined(&AR5K_AR5212_MISC_MAC_OBS_MSB_S);
    eval 'sub AR5K_AR5212_PISR () {0x80;}' unless defined(&AR5K_AR5212_PISR);
    eval 'sub AR5K_AR5212_PISR_RXOK () {0x1;}' unless defined(&AR5K_AR5212_PISR_RXOK);
    eval 'sub AR5K_AR5212_PISR_RXDESC () {0x2;}' unless defined(&AR5K_AR5212_PISR_RXDESC);
    eval 'sub AR5K_AR5212_PISR_RXERR () {0x4;}' unless defined(&AR5K_AR5212_PISR_RXERR);
    eval 'sub AR5K_AR5212_PISR_RXNOFRM () {0x8;}' unless defined(&AR5K_AR5212_PISR_RXNOFRM);
    eval 'sub AR5K_AR5212_PISR_RXEOL () {0x10;}' unless defined(&AR5K_AR5212_PISR_RXEOL);
    eval 'sub AR5K_AR5212_PISR_RXORN () {0x20;}' unless defined(&AR5K_AR5212_PISR_RXORN);
    eval 'sub AR5K_AR5212_PISR_TXOK () {0x40;}' unless defined(&AR5K_AR5212_PISR_TXOK);
    eval 'sub AR5K_AR5212_PISR_TXDESC () {0x80;}' unless defined(&AR5K_AR5212_PISR_TXDESC);
    eval 'sub AR5K_AR5212_PISR_TXERR () {0x100;}' unless defined(&AR5K_AR5212_PISR_TXERR);
    eval 'sub AR5K_AR5212_PISR_TXNOFRM () {0x200;}' unless defined(&AR5K_AR5212_PISR_TXNOFRM);
    eval 'sub AR5K_AR5212_PISR_TXEOL () {0x400;}' unless defined(&AR5K_AR5212_PISR_TXEOL);
    eval 'sub AR5K_AR5212_PISR_TXURN () {0x800;}' unless defined(&AR5K_AR5212_PISR_TXURN);
    eval 'sub AR5K_AR5212_PISR_MIB () {0x1000;}' unless defined(&AR5K_AR5212_PISR_MIB);
    eval 'sub AR5K_AR5212_PISR_SWI () {0x2000;}' unless defined(&AR5K_AR5212_PISR_SWI);
    eval 'sub AR5K_AR5212_PISR_RXPHY () {0x4000;}' unless defined(&AR5K_AR5212_PISR_RXPHY);
    eval 'sub AR5K_AR5212_PISR_RXKCM () {0x8000;}' unless defined(&AR5K_AR5212_PISR_RXKCM);
    eval 'sub AR5K_AR5212_PISR_SWBA () {0x10000;}' unless defined(&AR5K_AR5212_PISR_SWBA);
    eval 'sub AR5K_AR5212_PISR_BRSSI () {0x20000;}' unless defined(&AR5K_AR5212_PISR_BRSSI);
    eval 'sub AR5K_AR5212_PISR_BMISS () {0x40000;}' unless defined(&AR5K_AR5212_PISR_BMISS);
    eval 'sub AR5K_AR5212_PISR_HIUERR () {0x80000;}' unless defined(&AR5K_AR5212_PISR_HIUERR);
    eval 'sub AR5K_AR5212_PISR_BNR () {0x100000;}' unless defined(&AR5K_AR5212_PISR_BNR);
    eval 'sub AR5K_AR5212_PISR_RXCHIRP () {0x200000;}' unless defined(&AR5K_AR5212_PISR_RXCHIRP);
    eval 'sub AR5K_AR5212_PISR_TIM () {0x800000;}' unless defined(&AR5K_AR5212_PISR_TIM);
    eval 'sub AR5K_AR5212_PISR_BCNMISC () {0x800000;}' unless defined(&AR5K_AR5212_PISR_BCNMISC);
    eval 'sub AR5K_AR5212_PISR_GPIO () {0x1000000;}' unless defined(&AR5K_AR5212_PISR_GPIO);
    eval 'sub AR5K_AR5212_PISR_QCBRORN () {0x2000000;}' unless defined(&AR5K_AR5212_PISR_QCBRORN);
    eval 'sub AR5K_AR5212_PISR_QCBRURN () {0x4000000;}' unless defined(&AR5K_AR5212_PISR_QCBRURN);
    eval 'sub AR5K_AR5212_PISR_QTRIG () {0x8000000;}' unless defined(&AR5K_AR5212_PISR_QTRIG);
    eval 'sub AR5K_AR5212_SISR0 () {0x84;}' unless defined(&AR5K_AR5212_SISR0);
    eval 'sub AR5K_AR5212_SISR0_QCU_TXOK () {0x3ff;}' unless defined(&AR5K_AR5212_SISR0_QCU_TXOK);
    eval 'sub AR5K_AR5212_SISR0_QCU_TXDESC () {0x3ff0000;}' unless defined(&AR5K_AR5212_SISR0_QCU_TXDESC);
    eval 'sub AR5K_AR5212_SISR1 () {0x88;}' unless defined(&AR5K_AR5212_SISR1);
    eval 'sub AR5K_AR5212_SISR1_QCU_TXERR () {0x3ff;}' unless defined(&AR5K_AR5212_SISR1_QCU_TXERR);
    eval 'sub AR5K_AR5212_SISR1_QCU_TXEOL () {0x3ff0000;}' unless defined(&AR5K_AR5212_SISR1_QCU_TXEOL);
    eval 'sub AR5K_AR5212_SISR2 () {0x8c;}' unless defined(&AR5K_AR5212_SISR2);
    eval 'sub AR5K_AR5212_SISR2_QCU_TXURN () {0x3ff;}' unless defined(&AR5K_AR5212_SISR2_QCU_TXURN);
    eval 'sub AR5K_AR5212_SISR2_MCABT () {0x100000;}' unless defined(&AR5K_AR5212_SISR2_MCABT);
    eval 'sub AR5K_AR5212_SISR2_SSERR () {0x200000;}' unless defined(&AR5K_AR5212_SISR2_SSERR);
    eval 'sub AR5K_AR5212_SISR2_DPERR () {0x400000;}' unless defined(&AR5K_AR5212_SISR2_DPERR);
    eval 'sub AR5K_AR5212_SISR2_TIM () {0x1000000;}' unless defined(&AR5K_AR5212_SISR2_TIM);
    eval 'sub AR5K_AR5212_SISR2_CAB_END () {0x2000000;}' unless defined(&AR5K_AR5212_SISR2_CAB_END);
    eval 'sub AR5K_AR5212_SISR2_DTIM_SYNC () {0x4000000;}' unless defined(&AR5K_AR5212_SISR2_DTIM_SYNC);
    eval 'sub AR5K_AR5212_SISR2_BCN_TIMEOUT () {0x8000000;}' unless defined(&AR5K_AR5212_SISR2_BCN_TIMEOUT);
    eval 'sub AR5K_AR5212_SISR2_CAB_TIMEOUT () {0x10000000;}' unless defined(&AR5K_AR5212_SISR2_CAB_TIMEOUT);
    eval 'sub AR5K_AR5212_SISR2_DTIM () {0x20000000;}' unless defined(&AR5K_AR5212_SISR2_DTIM);
    eval 'sub AR5K_AR5212_SISR3 () {0x90;}' unless defined(&AR5K_AR5212_SISR3);
    eval 'sub AR5K_AR5212_SISR3_QCBRORN () {0x3ff;}' unless defined(&AR5K_AR5212_SISR3_QCBRORN);
    eval 'sub AR5K_AR5212_SISR3_QCBRURN () {0x3ff0000;}' unless defined(&AR5K_AR5212_SISR3_QCBRURN);
    eval 'sub AR5K_AR5212_SISR4 () {0x94;}' unless defined(&AR5K_AR5212_SISR4);
    eval 'sub AR5K_AR5212_SISR4_QTRIG () {0x3ff;}' unless defined(&AR5K_AR5212_SISR4_QTRIG);
    eval 'sub AR5K_AR5212_RAC_PISR () {0xc0;}' unless defined(&AR5K_AR5212_RAC_PISR);
    eval 'sub AR5K_AR5212_RAC_SISR0 () {0xc4;}' unless defined(&AR5K_AR5212_RAC_SISR0);
    eval 'sub AR5K_AR5212_RAC_SISR1 () {0xc8;}' unless defined(&AR5K_AR5212_RAC_SISR1);
    eval 'sub AR5K_AR5212_RAC_SISR2 () {0xcc;}' unless defined(&AR5K_AR5212_RAC_SISR2);
    eval 'sub AR5K_AR5212_RAC_SISR3 () {0 &c00d0;}' unless defined(&AR5K_AR5212_RAC_SISR3);
    eval 'sub AR5K_AR5212_RAC_SISR4 () {0 &c00d4;}' unless defined(&AR5K_AR5212_RAC_SISR4);
    eval 'sub AR5K_AR5212_PIMR () {0xa0;}' unless defined(&AR5K_AR5212_PIMR);
    eval 'sub AR5K_AR5212_PIMR_RXOK () {0x1;}' unless defined(&AR5K_AR5212_PIMR_RXOK);
    eval 'sub AR5K_AR5212_PIMR_RXDESC () {0x2;}' unless defined(&AR5K_AR5212_PIMR_RXDESC);
    eval 'sub AR5K_AR5212_PIMR_RXERR () {0x4;}' unless defined(&AR5K_AR5212_PIMR_RXERR);
    eval 'sub AR5K_AR5212_PIMR_RXNOFRM () {0x8;}' unless defined(&AR5K_AR5212_PIMR_RXNOFRM);
    eval 'sub AR5K_AR5212_PIMR_RXEOL () {0x10;}' unless defined(&AR5K_AR5212_PIMR_RXEOL);
    eval 'sub AR5K_AR5212_PIMR_RXORN () {0x20;}' unless defined(&AR5K_AR5212_PIMR_RXORN);
    eval 'sub AR5K_AR5212_PIMR_TXOK () {0x40;}' unless defined(&AR5K_AR5212_PIMR_TXOK);
    eval 'sub AR5K_AR5212_PIMR_TXDESC () {0x80;}' unless defined(&AR5K_AR5212_PIMR_TXDESC);
    eval 'sub AR5K_AR5212_PIMR_TXERR () {0x100;}' unless defined(&AR5K_AR5212_PIMR_TXERR);
    eval 'sub AR5K_AR5212_PIMR_TXNOFRM () {0x200;}' unless defined(&AR5K_AR5212_PIMR_TXNOFRM);
    eval 'sub AR5K_AR5212_PIMR_TXEOL () {0x400;}' unless defined(&AR5K_AR5212_PIMR_TXEOL);
    eval 'sub AR5K_AR5212_PIMR_TXURN () {0x800;}' unless defined(&AR5K_AR5212_PIMR_TXURN);
    eval 'sub AR5K_AR5212_PIMR_MIB () {0x1000;}' unless defined(&AR5K_AR5212_PIMR_MIB);
    eval 'sub AR5K_AR5212_PIMR_SWI () {0x2000;}' unless defined(&AR5K_AR5212_PIMR_SWI);
    eval 'sub AR5K_AR5212_PIMR_RXPHY () {0x4000;}' unless defined(&AR5K_AR5212_PIMR_RXPHY);
    eval 'sub AR5K_AR5212_PIMR_RXKCM () {0x8000;}' unless defined(&AR5K_AR5212_PIMR_RXKCM);
    eval 'sub AR5K_AR5212_PIMR_SWBA () {0x10000;}' unless defined(&AR5K_AR5212_PIMR_SWBA);
    eval 'sub AR5K_AR5212_PIMR_BRSSI () {0x20000;}' unless defined(&AR5K_AR5212_PIMR_BRSSI);
    eval 'sub AR5K_AR5212_PIMR_BMISS () {0x40000;}' unless defined(&AR5K_AR5212_PIMR_BMISS);
    eval 'sub AR5K_AR5212_PIMR_HIUERR () {0x80000;}' unless defined(&AR5K_AR5212_PIMR_HIUERR);
    eval 'sub AR5K_AR5212_PIMR_BNR () {0x100000;}' unless defined(&AR5K_AR5212_PIMR_BNR);
    eval 'sub AR5K_AR5212_PIMR_RXCHIRP () {0x200000;}' unless defined(&AR5K_AR5212_PIMR_RXCHIRP);
    eval 'sub AR5K_AR5212_PIMR_TIM () {0x800000;}' unless defined(&AR5K_AR5212_PIMR_TIM);
    eval 'sub AR5K_AR5212_PIMR_BCNMISC () {0x800000;}' unless defined(&AR5K_AR5212_PIMR_BCNMISC);
    eval 'sub AR5K_AR5212_PIMR_GPIO () {0x1000000;}' unless defined(&AR5K_AR5212_PIMR_GPIO);
    eval 'sub AR5K_AR5212_PIMR_QCBRORN () {0x2000000;}' unless defined(&AR5K_AR5212_PIMR_QCBRORN);
    eval 'sub AR5K_AR5212_PIMR_QCBRURN () {0x4000000;}' unless defined(&AR5K_AR5212_PIMR_QCBRURN);
    eval 'sub AR5K_AR5212_PIMR_QTRIG () {0x8000000;}' unless defined(&AR5K_AR5212_PIMR_QTRIG);
    eval 'sub AR5K_AR5212_SIMR0 () {0xa4;}' unless defined(&AR5K_AR5212_SIMR0);
    eval 'sub AR5K_AR5212_SIMR0_QCU_TXOK () {0x3ff;}' unless defined(&AR5K_AR5212_SIMR0_QCU_TXOK);
    eval 'sub AR5K_AR5212_SIMR0_QCU_TXOK_S () {0;}' unless defined(&AR5K_AR5212_SIMR0_QCU_TXOK_S);
    eval 'sub AR5K_AR5212_SIMR0_QCU_TXDESC () {0x3ff0000;}' unless defined(&AR5K_AR5212_SIMR0_QCU_TXDESC);
    eval 'sub AR5K_AR5212_SIMR0_QCU_TXDESC_S () {16;}' unless defined(&AR5K_AR5212_SIMR0_QCU_TXDESC_S);
    eval 'sub AR5K_AR5212_SIMR1 () {0xa8;}' unless defined(&AR5K_AR5212_SIMR1);
    eval 'sub AR5K_AR5212_SIMR1_QCU_TXERR () {0x3ff;}' unless defined(&AR5K_AR5212_SIMR1_QCU_TXERR);
    eval 'sub AR5K_AR5212_SIMR1_QCU_TXERR_S () {0;}' unless defined(&AR5K_AR5212_SIMR1_QCU_TXERR_S);
    eval 'sub AR5K_AR5212_SIMR1_QCU_TXEOL () {0x3ff0000;}' unless defined(&AR5K_AR5212_SIMR1_QCU_TXEOL);
    eval 'sub AR5K_AR5212_SIMR1_QCU_TXEOL_S () {16;}' unless defined(&AR5K_AR5212_SIMR1_QCU_TXEOL_S);
    eval 'sub AR5K_AR5212_SIMR2 () {0xac;}' unless defined(&AR5K_AR5212_SIMR2);
    eval 'sub AR5K_AR5212_SIMR2_QCU_TXURN () {0x3ff;}' unless defined(&AR5K_AR5212_SIMR2_QCU_TXURN);
    eval 'sub AR5K_AR5212_SIMR2_QCU_TXURN_S () {0;}' unless defined(&AR5K_AR5212_SIMR2_QCU_TXURN_S);
    eval 'sub AR5K_AR5212_SIMR2_MCABT () {0x100000;}' unless defined(&AR5K_AR5212_SIMR2_MCABT);
    eval 'sub AR5K_AR5212_SIMR2_SSERR () {0x200000;}' unless defined(&AR5K_AR5212_SIMR2_SSERR);
    eval 'sub AR5K_AR5212_SIMR2_DPERR () {0x400000;}' unless defined(&AR5K_AR5212_SIMR2_DPERR);
    eval 'sub AR5K_AR5212_SIMR2_TIM () {0x1000000;}' unless defined(&AR5K_AR5212_SIMR2_TIM);
    eval 'sub AR5K_AR5212_SIMR2_CAB_END () {0x2000000;}' unless defined(&AR5K_AR5212_SIMR2_CAB_END);
    eval 'sub AR5K_AR5212_SIMR2_DTIM_SYNC () {0x4000000;}' unless defined(&AR5K_AR5212_SIMR2_DTIM_SYNC);
    eval 'sub AR5K_AR5212_SIMR2_BCN_TIMEOUT () {0x8000000;}' unless defined(&AR5K_AR5212_SIMR2_BCN_TIMEOUT);
    eval 'sub AR5K_AR5212_SIMR2_CAB_TIMEOUT () {0x10000000;}' unless defined(&AR5K_AR5212_SIMR2_CAB_TIMEOUT);
    eval 'sub AR5K_AR5212_SIMR2_DTIM () {0x20000000;}' unless defined(&AR5K_AR5212_SIMR2_DTIM);
    eval 'sub AR5K_AR5212_SIMR3 () {0xb0;}' unless defined(&AR5K_AR5212_SIMR3);
    eval 'sub AR5K_AR5212_SIMR3_QCBRORN () {0x3ff;}' unless defined(&AR5K_AR5212_SIMR3_QCBRORN);
    eval 'sub AR5K_AR5212_SIMR3_QCBRORN_S () {0;}' unless defined(&AR5K_AR5212_SIMR3_QCBRORN_S);
    eval 'sub AR5K_AR5212_SIMR3_QCBRURN () {0x3ff0000;}' unless defined(&AR5K_AR5212_SIMR3_QCBRURN);
    eval 'sub AR5K_AR5212_SIMR3_QCBRURN_S () {16;}' unless defined(&AR5K_AR5212_SIMR3_QCBRURN_S);
    eval 'sub AR5K_AR5212_SIMR4 () {0xb4;}' unless defined(&AR5K_AR5212_SIMR4);
    eval 'sub AR5K_AR5212_SIMR4_QTRIG () {0x3ff;}' unless defined(&AR5K_AR5212_SIMR4_QTRIG);
    eval 'sub AR5K_AR5212_SIMR4_QTRIG_S () {0;}' unless defined(&AR5K_AR5212_SIMR4_QTRIG_S);
    eval 'sub AR5K_AR5212_DCM_ADDR () {0x400;}' unless defined(&AR5K_AR5212_DCM_ADDR);
    eval 'sub AR5K_AR5212_DCM_DATA () {0x404;}' unless defined(&AR5K_AR5212_DCM_DATA);
    eval 'sub AR5K_AR5212_DCCFG () {0x420;}' unless defined(&AR5K_AR5212_DCCFG);
    eval 'sub AR5K_AR5212_CCFG () {0x600;}' unless defined(&AR5K_AR5212_CCFG);
    eval 'sub AR5K_AR5212_CCFG_CUP () {0x604;}' unless defined(&AR5K_AR5212_CCFG_CUP);
    eval 'sub AR5K_AR5212_CPC0 () {0x610;}' unless defined(&AR5K_AR5212_CPC0);
    eval 'sub AR5K_AR5212_CPC1 () {0x614;}' unless defined(&AR5K_AR5212_CPC1);
    eval 'sub AR5K_AR5212_CPC2 () {0x618;}' unless defined(&AR5K_AR5212_CPC2);
    eval 'sub AR5K_AR5212_CPC3 () {0x61c;}' unless defined(&AR5K_AR5212_CPC3);
    eval 'sub AR5K_AR5212_CPCORN () {0x620;}' unless defined(&AR5K_AR5212_CPCORN);
    eval 'sub AR5K_AR5212_QCU {
        my($_n, $_a) = @_;
	    eval q(((($_n) << 2) + $_a));
    }' unless defined(&AR5K_AR5212_QCU);
    eval 'sub AR5K_AR5212_QCU_TXDP {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_QCU($_n, 0x800));
    }' unless defined(&AR5K_AR5212_QCU_TXDP);
    eval 'sub AR5K_AR5212_QCU_TXE () {0x840;}' unless defined(&AR5K_AR5212_QCU_TXE);
    eval 'sub AR5K_AR5212_QCU_TXD () {0x880;}' unless defined(&AR5K_AR5212_QCU_TXD);
    eval 'sub AR5K_AR5212_QCU_CBRCFG {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_QCU($_n, 0x8c0));
    }' unless defined(&AR5K_AR5212_QCU_CBRCFG);
    eval 'sub AR5K_AR5212_QCU_CBRCFG_INTVAL () {0xffffff;}' unless defined(&AR5K_AR5212_QCU_CBRCFG_INTVAL);
    eval 'sub AR5K_AR5212_QCU_CBRCFG_INTVAL_S () {0;}' unless defined(&AR5K_AR5212_QCU_CBRCFG_INTVAL_S);
    eval 'sub AR5K_AR5212_QCU_CBRCFG_ORN_THRES () {0xff000000;}' unless defined(&AR5K_AR5212_QCU_CBRCFG_ORN_THRES);
    eval 'sub AR5K_AR5212_QCU_CBRCFG_ORN_THRES_S () {24;}' unless defined(&AR5K_AR5212_QCU_CBRCFG_ORN_THRES_S);
    eval 'sub AR5K_AR5212_QCU_RDYTIMECFG {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_QCU($_n, 0x900));
    }' unless defined(&AR5K_AR5212_QCU_RDYTIMECFG);
    eval 'sub AR5K_AR5212_QCU_RDYTIMECFG_INTVAL () {0xffffff;}' unless defined(&AR5K_AR5212_QCU_RDYTIMECFG_INTVAL);
    eval 'sub AR5K_AR5212_QCU_RDYTIMECFG_INTVAL_S () {0;}' unless defined(&AR5K_AR5212_QCU_RDYTIMECFG_INTVAL_S);
    eval 'sub AR5K_AR5212_QCU_RDYTIMECFG_DURATION () {0xffffff;}' unless defined(&AR5K_AR5212_QCU_RDYTIMECFG_DURATION);
    eval 'sub AR5K_AR5212_QCU_RDYTIMECFG_ENABLE () {0x1000000;}' unless defined(&AR5K_AR5212_QCU_RDYTIMECFG_ENABLE);
    eval 'sub AR5K_AR5212_QCU_ONESHOTARMS {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_QCU($_n, 0x940));
    }' unless defined(&AR5K_AR5212_QCU_ONESHOTARMS);
    eval 'sub AR5K_AR5212_QCU_ONESHOTARMS_M () {0xffff;}' unless defined(&AR5K_AR5212_QCU_ONESHOTARMS_M);
    eval 'sub AR5K_AR5212_QCU_ONESHOTARMC {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_QCU($_n, 0x980));
    }' unless defined(&AR5K_AR5212_QCU_ONESHOTARMC);
    eval 'sub AR5K_AR5212_QCU_ONESHOTARMC_M () {0xffff;}' unless defined(&AR5K_AR5212_QCU_ONESHOTARMC_M);
    eval 'sub AR5K_AR5212_QCU_MISC {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_QCU($_n, 0x9c0));
    }' unless defined(&AR5K_AR5212_QCU_MISC);
    eval 'sub AR5K_AR5212_QCU_MISC_FRSHED_M () {0xf;}' unless defined(&AR5K_AR5212_QCU_MISC_FRSHED_M);
    eval 'sub AR5K_AR5212_QCU_MISC_FRSHED_ASAP () {0;}' unless defined(&AR5K_AR5212_QCU_MISC_FRSHED_ASAP);
    eval 'sub AR5K_AR5212_QCU_MISC_FRSHED_CBR () {1;}' unless defined(&AR5K_AR5212_QCU_MISC_FRSHED_CBR);
    eval 'sub AR5K_AR5212_QCU_MISC_FRSHED_DBA_GT () {2;}' unless defined(&AR5K_AR5212_QCU_MISC_FRSHED_DBA_GT);
    eval 'sub AR5K_AR5212_QCU_MISC_FRSHED_TIM_GT () {3;}' unless defined(&AR5K_AR5212_QCU_MISC_FRSHED_TIM_GT);
    eval 'sub AR5K_AR5212_QCU_MISC_FRSHED_BCN_SENT_GT () {4;}' unless defined(&AR5K_AR5212_QCU_MISC_FRSHED_BCN_SENT_GT);
    eval 'sub AR5K_AR5212_QCU_MISC_ONESHOT_ENABLE () {0x10;}' unless defined(&AR5K_AR5212_QCU_MISC_ONESHOT_ENABLE);
    eval 'sub AR5K_AR5212_QCU_MISC_CBREXP () {0x20;}' unless defined(&AR5K_AR5212_QCU_MISC_CBREXP);
    eval 'sub AR5K_AR5212_QCU_MISC_CBREXP_BCN () {0x40;}' unless defined(&AR5K_AR5212_QCU_MISC_CBREXP_BCN);
    eval 'sub AR5K_AR5212_QCU_MISC_BCN_ENABLE () {0x80;}' unless defined(&AR5K_AR5212_QCU_MISC_BCN_ENABLE);
    eval 'sub AR5K_AR5212_QCU_MISC_CBR_THRES_ENABLE () {0x100;}' unless defined(&AR5K_AR5212_QCU_MISC_CBR_THRES_ENABLE);
    eval 'sub AR5K_AR5212_QCU_MISC_TXE () {0x200;}' unless defined(&AR5K_AR5212_QCU_MISC_TXE);
    eval 'sub AR5K_AR5212_QCU_MISC_CBR () {0x400;}' unless defined(&AR5K_AR5212_QCU_MISC_CBR);
    eval 'sub AR5K_AR5212_QCU_MISC_DCU_EARLY () {0x800;}' unless defined(&AR5K_AR5212_QCU_MISC_DCU_EARLY);
    eval 'sub AR5K_AR5212_QCU_STS {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_QCU($_n, 0xa00));
    }' unless defined(&AR5K_AR5212_QCU_STS);
    eval 'sub AR5K_AR5212_QCU_STS_FRMPENDCNT () {0x3;}' unless defined(&AR5K_AR5212_QCU_STS_FRMPENDCNT);
    eval 'sub AR5K_AR5212_QCU_STS_CBREXPCNT () {0xff00;}' unless defined(&AR5K_AR5212_QCU_STS_CBREXPCNT);
    eval 'sub AR5K_AR5212_QCU_RDYTIMESHDN () {0xa40;}' unless defined(&AR5K_AR5212_QCU_RDYTIMESHDN);
    eval 'sub AR5K_AR5212_QCU_RDYTIMESHDN_M () {0x3ff;}' unless defined(&AR5K_AR5212_QCU_RDYTIMESHDN_M);
    eval 'sub AR5K_AR5212_QCU_CBB_SELECT () {0xb00;}' unless defined(&AR5K_AR5212_QCU_CBB_SELECT);
    eval 'sub AR5K_AR5212_QCU_CBB_ADDR () {0xb04;}' unless defined(&AR5K_AR5212_QCU_CBB_ADDR);
    eval 'sub AR5K_AR5212_QCU_CBCFG () {0xb08;}' unless defined(&AR5K_AR5212_QCU_CBCFG);
    eval 'sub AR5K_AR5212_DCU {
        my($_n, $_a) = @_;
	    eval q( &AR5K_AR5212_QCU($_n, $_a));
    }' unless defined(&AR5K_AR5212_DCU);
    eval 'sub AR5K_AR5212_DCU_QCUMASK {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_DCU($_n, 0x1000));
    }' unless defined(&AR5K_AR5212_DCU_QCUMASK);
    eval 'sub AR5K_AR5212_DCU_QCUMASK_M () {0x3ff;}' unless defined(&AR5K_AR5212_DCU_QCUMASK_M);
    eval 'sub AR5K_AR5212_DCU_LCL_IFS {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_DCU($_n, 0x1040));
    }' unless defined(&AR5K_AR5212_DCU_LCL_IFS);
    eval 'sub AR5K_AR5212_DCU_LCL_IFS_CW_MIN () {0x3ff;}' unless defined(&AR5K_AR5212_DCU_LCL_IFS_CW_MIN);
    eval 'sub AR5K_AR5212_DCU_LCL_IFS_CW_MIN_S () {0;}' unless defined(&AR5K_AR5212_DCU_LCL_IFS_CW_MIN_S);
    eval 'sub AR5K_AR5212_DCU_LCL_IFS_CW_MAX () {0xffc00;}' unless defined(&AR5K_AR5212_DCU_LCL_IFS_CW_MAX);
    eval 'sub AR5K_AR5212_DCU_LCL_IFS_CW_MAX_S () {10;}' unless defined(&AR5K_AR5212_DCU_LCL_IFS_CW_MAX_S);
    eval 'sub AR5K_AR5212_DCU_LCL_IFS_AIFS () {0xff00000;}' unless defined(&AR5K_AR5212_DCU_LCL_IFS_AIFS);
    eval 'sub AR5K_AR5212_DCU_LCL_IFS_AIFS_S () {20;}' unless defined(&AR5K_AR5212_DCU_LCL_IFS_AIFS_S);
    eval 'sub AR5K_AR5212_DCU_RETRY_LMT {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_DCU($_n, 0x1080));
    }' unless defined(&AR5K_AR5212_DCU_RETRY_LMT);
    eval 'sub AR5K_AR5212_DCU_RETRY_LMT_SH_RETRY () {0xf;}' unless defined(&AR5K_AR5212_DCU_RETRY_LMT_SH_RETRY);
    eval 'sub AR5K_AR5212_DCU_RETRY_LMT_SH_RETRY_S () {0;}' unless defined(&AR5K_AR5212_DCU_RETRY_LMT_SH_RETRY_S);
    eval 'sub AR5K_AR5212_DCU_RETRY_LMT_LG_RETRY () {0xf0;}' unless defined(&AR5K_AR5212_DCU_RETRY_LMT_LG_RETRY);
    eval 'sub AR5K_AR5212_DCU_RETRY_LMT_LG_RETRY_S () {4;}' unless defined(&AR5K_AR5212_DCU_RETRY_LMT_LG_RETRY_S);
    eval 'sub AR5K_AR5212_DCU_RETRY_LMT_SSH_RETRY () {0x3f00;}' unless defined(&AR5K_AR5212_DCU_RETRY_LMT_SSH_RETRY);
    eval 'sub AR5K_AR5212_DCU_RETRY_LMT_SSH_RETRY_S () {8;}' unless defined(&AR5K_AR5212_DCU_RETRY_LMT_SSH_RETRY_S);
    eval 'sub AR5K_AR5212_DCU_RETRY_LMT_SLG_RETRY () {0xfc000;}' unless defined(&AR5K_AR5212_DCU_RETRY_LMT_SLG_RETRY);
    eval 'sub AR5K_AR5212_DCU_RETRY_LMT_SLG_RETRY_S () {14;}' unless defined(&AR5K_AR5212_DCU_RETRY_LMT_SLG_RETRY_S);
    eval 'sub AR5K_AR5212_DCU_CHAN_TIME {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_DCU($_n, 0x10c0));
    }' unless defined(&AR5K_AR5212_DCU_CHAN_TIME);
    eval 'sub AR5K_AR5212_DCU_CHAN_TIME_DUR () {0xfffff;}' unless defined(&AR5K_AR5212_DCU_CHAN_TIME_DUR);
    eval 'sub AR5K_AR5212_DCU_CHAN_TIME_DUR_S () {0;}' unless defined(&AR5K_AR5212_DCU_CHAN_TIME_DUR_S);
    eval 'sub AR5K_AR5212_DCU_CHAN_TIME_ENABLE () {0x100000;}' unless defined(&AR5K_AR5212_DCU_CHAN_TIME_ENABLE);
    eval 'sub AR5K_AR5212_DCU_MISC {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_DCU($_n, 0x1100));
    }' unless defined(&AR5K_AR5212_DCU_MISC);
    eval 'sub AR5K_AR5212_DCU_MISC_BACKOFF () {0x7ff;}' unless defined(&AR5K_AR5212_DCU_MISC_BACKOFF);
    eval 'sub AR5K_AR5212_DCU_MISC_BACKOFF_FRAG () {0x200;}' unless defined(&AR5K_AR5212_DCU_MISC_BACKOFF_FRAG);
    eval 'sub AR5K_AR5212_DCU_MISC_HCFPOLL_ENABLE () {0x800;}' unless defined(&AR5K_AR5212_DCU_MISC_HCFPOLL_ENABLE);
    eval 'sub AR5K_AR5212_DCU_MISC_BACKOFF_PERSIST () {0x1000;}' unless defined(&AR5K_AR5212_DCU_MISC_BACKOFF_PERSIST);
    eval 'sub AR5K_AR5212_DCU_MISC_FRMPRFTCH_ENABLE () {0x2000;}' unless defined(&AR5K_AR5212_DCU_MISC_FRMPRFTCH_ENABLE);
    eval 'sub AR5K_AR5212_DCU_MISC_VIRTCOL () {0xc000;}' unless defined(&AR5K_AR5212_DCU_MISC_VIRTCOL);
    eval 'sub AR5K_AR5212_DCU_MISC_VIRTCOL_NORMAL () {0;}' unless defined(&AR5K_AR5212_DCU_MISC_VIRTCOL_NORMAL);
    eval 'sub AR5K_AR5212_DCU_MISC_VIRTCOL_MODIFIED () {1;}' unless defined(&AR5K_AR5212_DCU_MISC_VIRTCOL_MODIFIED);
    eval 'sub AR5K_AR5212_DCU_MISC_VIRTCOL_IGNORE () {2;}' unless defined(&AR5K_AR5212_DCU_MISC_VIRTCOL_IGNORE);
    eval 'sub AR5K_AR5212_DCU_MISC_BCN_ENABLE () {0x10000;}' unless defined(&AR5K_AR5212_DCU_MISC_BCN_ENABLE);
    eval 'sub AR5K_AR5212_DCU_MISC_ARBLOCK_CTL () {0x60000;}' unless defined(&AR5K_AR5212_DCU_MISC_ARBLOCK_CTL);
    eval 'sub AR5K_AR5212_DCU_MISC_ARBLOCK_CTL_S () {17;}' unless defined(&AR5K_AR5212_DCU_MISC_ARBLOCK_CTL_S);
    eval 'sub AR5K_AR5212_DCU_MISC_ARBLOCK_CTL_NONE () {0;}' unless defined(&AR5K_AR5212_DCU_MISC_ARBLOCK_CTL_NONE);
    eval 'sub AR5K_AR5212_DCU_MISC_ARBLOCK_CTL_INTFRM () {1;}' unless defined(&AR5K_AR5212_DCU_MISC_ARBLOCK_CTL_INTFRM);
    eval 'sub AR5K_AR5212_DCU_MISC_ARBLOCK_CTL_GLOBAL () {2;}' unless defined(&AR5K_AR5212_DCU_MISC_ARBLOCK_CTL_GLOBAL);
    eval 'sub AR5K_AR5212_DCU_MISC_ARBLOCK_IGNORE () {0x80000;}' unless defined(&AR5K_AR5212_DCU_MISC_ARBLOCK_IGNORE);
    eval 'sub AR5K_AR5212_DCU_MISC_SEQ_NUM_INCR_DIS () {0x100000;}' unless defined(&AR5K_AR5212_DCU_MISC_SEQ_NUM_INCR_DIS);
    eval 'sub AR5K_AR5212_DCU_MISC_POST_FR_BKOFF_DIS () {0x200000;}' unless defined(&AR5K_AR5212_DCU_MISC_POST_FR_BKOFF_DIS);
    eval 'sub AR5K_AR5212_DCU_MISC_VIRT_COLL_POLICY () {0x400000;}' unless defined(&AR5K_AR5212_DCU_MISC_VIRT_COLL_POLICY);
    eval 'sub AR5K_AR5212_DCU_MISC_BLOWN_IFS_POLICY () {0x800000;}' unless defined(&AR5K_AR5212_DCU_MISC_BLOWN_IFS_POLICY);
    eval 'sub AR5K_AR5212_DCU_MISC_SEQNUM_CTL () {0x1000000;}' unless defined(&AR5K_AR5212_DCU_MISC_SEQNUM_CTL);
    eval 'sub AR5K_AR5212_DCU_SEQNUM {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_DCU($_n, 0x1140));
    }' unless defined(&AR5K_AR5212_DCU_SEQNUM);
    eval 'sub AR5K_AR5212_DCU_SEQNUM_M () {0xfff;}' unless defined(&AR5K_AR5212_DCU_SEQNUM_M);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_SIFS () {0x1030;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_SIFS);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_SIFS_M () {0xffff;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_SIFS_M);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_SLOT () {0x1070;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_SLOT);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_SLOT_M () {0xffff;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_SLOT_M);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_EIFS () {0x10b0;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_EIFS);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_EIFS_M () {0xffff;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_EIFS_M);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_MISC () {0x10f0;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_MISC);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_MISC_LFSR_SLICE () {0x7;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_MISC_LFSR_SLICE);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_MISC_TURBO_MODE () {0x8;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_MISC_TURBO_MODE);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_MISC_SIFS_DUR_USEC () {0x3f0;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_MISC_SIFS_DUR_USEC);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_MISC_USEC_DUR () {0xffc00;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_MISC_USEC_DUR);
    eval 'sub AR5K_AR5212_DCU_GBL_IFS_MISC_DCU_ARB_DELAY () {0x300000;}' unless defined(&AR5K_AR5212_DCU_GBL_IFS_MISC_DCU_ARB_DELAY);
    eval 'sub AR5K_AR5212_DCU_FP () {0x1230;}' unless defined(&AR5K_AR5212_DCU_FP);
    eval 'sub AR5K_AR5212_DCU_TXP () {0x1270;}' unless defined(&AR5K_AR5212_DCU_TXP);
    eval 'sub AR5K_AR5212_DCU_TXP_M () {0x3ff;}' unless defined(&AR5K_AR5212_DCU_TXP_M);
    eval 'sub AR5K_AR5212_DCU_TXP_STATUS () {0x10000;}' unless defined(&AR5K_AR5212_DCU_TXP_STATUS);
    eval 'sub AR5K_AR5212_DCU_TX_FILTER () {0x1038;}' unless defined(&AR5K_AR5212_DCU_TX_FILTER);
    eval 'sub AR5K_AR5212_DCU_TX_FILTER_CLR () {0x143c;}' unless defined(&AR5K_AR5212_DCU_TX_FILTER_CLR);
    eval 'sub AR5K_AR5212_DCU_TX_FILTER_SET () {0x147c;}' unless defined(&AR5K_AR5212_DCU_TX_FILTER_SET);
    eval("sub AR5K_AR5212_DMASIZE_4B () { 0; }") unless defined(&AR5K_AR5212_DMASIZE_4B);
    eval("sub AR5K_AR5212_DMASIZE_8B () { 1; }") unless defined(&AR5K_AR5212_DMASIZE_8B);
    eval("sub AR5K_AR5212_DMASIZE_16B () { 2; }") unless defined(&AR5K_AR5212_DMASIZE_16B);
    eval("sub AR5K_AR5212_DMASIZE_32B () { 3; }") unless defined(&AR5K_AR5212_DMASIZE_32B);
    eval("sub AR5K_AR5212_DMASIZE_64B () { 4; }") unless defined(&AR5K_AR5212_DMASIZE_64B);
    eval("sub AR5K_AR5212_DMASIZE_128B () { 5; }") unless defined(&AR5K_AR5212_DMASIZE_128B);
    eval("sub AR5K_AR5212_DMASIZE_256B () { 6; }") unless defined(&AR5K_AR5212_DMASIZE_256B);
    eval("sub AR5K_AR5212_DMASIZE_512B () { 7; }") unless defined(&AR5K_AR5212_DMASIZE_512B);
    eval 'sub AR5K_AR5212_RC () {0x4000;}' unless defined(&AR5K_AR5212_RC);
    eval 'sub AR5K_AR5212_RC_PCU () {0x1;}' unless defined(&AR5K_AR5212_RC_PCU);
    eval 'sub AR5K_AR5212_RC_BB () {0x2;}' unless defined(&AR5K_AR5212_RC_BB);
    eval 'sub AR5K_AR5212_RC_PCI () {0x10;}' unless defined(&AR5K_AR5212_RC_PCI);
    eval 'sub AR5K_AR5212_RC_CHIP () {(  &AR5K_AR5212_RC_PCU |  &AR5K_AR5212_RC_BB |  &AR5K_AR5212_RC_PCI );}' unless defined(&AR5K_AR5212_RC_CHIP);
    eval 'sub AR5K_AR5212_SCR () {0x4004;}' unless defined(&AR5K_AR5212_SCR);
    eval 'sub AR5K_AR5212_SCR_SLDUR () {0xffff;}' unless defined(&AR5K_AR5212_SCR_SLDUR);
    eval 'sub AR5K_AR5212_SCR_SLE () {0x30000;}' unless defined(&AR5K_AR5212_SCR_SLE);
    eval 'sub AR5K_AR5212_SCR_SLE_S () {16;}' unless defined(&AR5K_AR5212_SCR_SLE_S);
    eval 'sub AR5K_AR5212_SCR_SLE_WAKE () {0x;}' unless defined(&AR5K_AR5212_SCR_SLE_WAKE);
    eval 'sub AR5K_AR5212_SCR_SLE_SLP () {0x10000;}' unless defined(&AR5K_AR5212_SCR_SLE_SLP);
    eval 'sub AR5K_AR5212_SCR_SLE_ALLOW () {0x20000;}' unless defined(&AR5K_AR5212_SCR_SLE_ALLOW);
    eval 'sub AR5K_AR5212_SCR_SLE_UNITS () {0x8;}' unless defined(&AR5K_AR5212_SCR_SLE_UNITS);
    eval 'sub AR5K_AR5212_INTPEND () {0x4008;}' unless defined(&AR5K_AR5212_INTPEND);
    eval 'sub AR5K_AR5212_INTPEND_M () {0x1;}' unless defined(&AR5K_AR5212_INTPEND_M);
    eval 'sub AR5K_AR5212_SFR () {0x400c;}' unless defined(&AR5K_AR5212_SFR);
    eval 'sub AR5K_AR5212_SFR_M () {0x1;}' unless defined(&AR5K_AR5212_SFR_M);
    eval 'sub AR5K_AR5212_PCICFG () {0x4010;}' unless defined(&AR5K_AR5212_PCICFG);
    eval 'sub AR5K_AR5212_PCICFG_CLKRUNEN () {0x4;}' unless defined(&AR5K_AR5212_PCICFG_CLKRUNEN);
    eval 'sub AR5K_AR5212_PCICFG_EESIZE () {0x18;}' unless defined(&AR5K_AR5212_PCICFG_EESIZE);
    eval 'sub AR5K_AR5212_PCICFG_EESIZE_S () {3;}' unless defined(&AR5K_AR5212_PCICFG_EESIZE_S);
    eval 'sub AR5K_AR5212_PCICFG_EESIZE_4K () {0;}' unless defined(&AR5K_AR5212_PCICFG_EESIZE_4K);
    eval 'sub AR5K_AR5212_PCICFG_EESIZE_8K () {1;}' unless defined(&AR5K_AR5212_PCICFG_EESIZE_8K);
    eval 'sub AR5K_AR5212_PCICFG_EESIZE_16K () {2;}' unless defined(&AR5K_AR5212_PCICFG_EESIZE_16K);
    eval 'sub AR5K_AR5212_PCICFG_EESIZE_FAIL () {3;}' unless defined(&AR5K_AR5212_PCICFG_EESIZE_FAIL);
    eval 'sub AR5K_AR5212_PCICFG_LED () {0x60;}' unless defined(&AR5K_AR5212_PCICFG_LED);
    eval 'sub AR5K_AR5212_PCICFG_LED_NONE () {0x;}' unless defined(&AR5K_AR5212_PCICFG_LED_NONE);
    eval 'sub AR5K_AR5212_PCICFG_LED_PEND () {0x20;}' unless defined(&AR5K_AR5212_PCICFG_LED_PEND);
    eval 'sub AR5K_AR5212_PCICFG_LED_ASSOC () {0x40;}' unless defined(&AR5K_AR5212_PCICFG_LED_ASSOC);
    eval 'sub AR5K_AR5212_PCICFG_BUS_SEL () {0x380;}' unless defined(&AR5K_AR5212_PCICFG_BUS_SEL);
    eval 'sub AR5K_AR5212_PCICFG_CBEFIX_DIS () {0x400;}' unless defined(&AR5K_AR5212_PCICFG_CBEFIX_DIS);
    eval 'sub AR5K_AR5212_PCICFG_SL_INTEN () {0x800;}' unless defined(&AR5K_AR5212_PCICFG_SL_INTEN);
    eval 'sub AR5K_AR5212_PCICFG_SL_INPEN () {0x2800;}' unless defined(&AR5K_AR5212_PCICFG_SL_INPEN);
    eval 'sub AR5K_AR5212_PCICFG_SPWR_DN () {0x10000;}' unless defined(&AR5K_AR5212_PCICFG_SPWR_DN);
    eval 'sub AR5K_AR5212_PCICFG_LEDMODE () {0xe0000;}' unless defined(&AR5K_AR5212_PCICFG_LEDMODE);
    eval 'sub AR5K_AR5212_PCICFG_LEDMODE_PROP () {0x;}' unless defined(&AR5K_AR5212_PCICFG_LEDMODE_PROP);
    eval 'sub AR5K_AR5212_PCICFG_LEDMODE_PROM () {0x20000;}' unless defined(&AR5K_AR5212_PCICFG_LEDMODE_PROM);
    eval 'sub AR5K_AR5212_PCICFG_LEDMODE_PWR () {0x40000;}' unless defined(&AR5K_AR5212_PCICFG_LEDMODE_PWR);
    eval 'sub AR5K_AR5212_PCICFG_LEDMODE_RAND () {0x60000;}' unless defined(&AR5K_AR5212_PCICFG_LEDMODE_RAND);
    eval 'sub AR5K_AR5212_PCICFG_LEDBLINK () {0x700000;}' unless defined(&AR5K_AR5212_PCICFG_LEDBLINK);
    eval 'sub AR5K_AR5212_PCICFG_LEDBLINK_S () {20;}' unless defined(&AR5K_AR5212_PCICFG_LEDBLINK_S);
    eval 'sub AR5K_AR5212_PCICFG_LEDSLOW () {0x800000;}' unless defined(&AR5K_AR5212_PCICFG_LEDSLOW);
    eval 'sub AR5K_AR5212_PCICFG_LEDSTATE () {( &AR5K_AR5212_PCICFG_LED |  &AR5K_AR5212_PCICFG_LEDMODE |  &AR5K_AR5212_PCICFG_LEDBLINK |  &AR5K_AR5212_PCICFG_LEDSLOW);}' unless defined(&AR5K_AR5212_PCICFG_LEDSTATE);
    eval 'sub AR5K_AR5212_GPIOCR () {0x4014;}' unless defined(&AR5K_AR5212_GPIOCR);
    eval 'sub AR5K_AR5212_GPIOCR_INT_ENA () {0x8000;}' unless defined(&AR5K_AR5212_GPIOCR_INT_ENA);
    eval 'sub AR5K_AR5212_GPIOCR_INT_SELL () {0x;}' unless defined(&AR5K_AR5212_GPIOCR_INT_SELL);
    eval 'sub AR5K_AR5212_GPIOCR_INT_SELH () {0x10000;}' unless defined(&AR5K_AR5212_GPIOCR_INT_SELH);
    eval 'sub AR5K_AR5212_GPIOCR_NONE {
        my($n) = @_;
	    eval q((0<< (($n) * 2)));
    }' unless defined(&AR5K_AR5212_GPIOCR_NONE);
    eval 'sub AR5K_AR5212_GPIOCR_OUT0 {
        my($n) = @_;
	    eval q((1<< (($n) * 2)));
    }' unless defined(&AR5K_AR5212_GPIOCR_OUT0);
    eval 'sub AR5K_AR5212_GPIOCR_OUT1 {
        my($n) = @_;
	    eval q((2<< (($n) * 2)));
    }' unless defined(&AR5K_AR5212_GPIOCR_OUT1);
    eval 'sub AR5K_AR5212_GPIOCR_ALL {
        my($n) = @_;
	    eval q((3<< (($n) * 2)));
    }' unless defined(&AR5K_AR5212_GPIOCR_ALL);
    eval 'sub AR5K_AR5212_GPIOCR_INT_SEL {
        my($n) = @_;
	    eval q((($n) << 12));
    }' unless defined(&AR5K_AR5212_GPIOCR_INT_SEL);
    eval 'sub AR5K_AR5212_NUM_GPIO () {6;}' unless defined(&AR5K_AR5212_NUM_GPIO);
    eval 'sub AR5K_AR5212_GPIODO () {0x4018;}' unless defined(&AR5K_AR5212_GPIODO);
    eval 'sub AR5K_AR5212_GPIODI () {0x401c;}' unless defined(&AR5K_AR5212_GPIODI);
    eval 'sub AR5K_AR5212_GPIODI_M () {0x2f;}' unless defined(&AR5K_AR5212_GPIODI_M);
    eval 'sub AR5K_AR5212_SREV () {0x4020;}' unless defined(&AR5K_AR5212_SREV);
    eval 'sub AR5K_AR5212_SREV_REV () {0xf;}' unless defined(&AR5K_AR5212_SREV_REV);
    eval 'sub AR5K_AR5212_SREV_REV_S () {0;}' unless defined(&AR5K_AR5212_SREV_REV_S);
    eval 'sub AR5K_AR5212_SREV_VER () {0xff;}' unless defined(&AR5K_AR5212_SREV_VER);
    eval 'sub AR5K_AR5212_SREV_VER_S () {4;}' unless defined(&AR5K_AR5212_SREV_VER_S);
    eval 'sub AR5K_AR5212_EEPROM_BASE () {0x6000;}' unless defined(&AR5K_AR5212_EEPROM_BASE);
    eval 'sub AR5K_AR5212_EEPROM_DATA () {0x6004;}' unless defined(&AR5K_AR5212_EEPROM_DATA);
    eval 'sub AR5K_AR5212_EEPROM_CMD () {0x6008;}' unless defined(&AR5K_AR5212_EEPROM_CMD);
    eval 'sub AR5K_AR5212_EEPROM_CMD_READ () {0x1;}' unless defined(&AR5K_AR5212_EEPROM_CMD_READ);
    eval 'sub AR5K_AR5212_EEPROM_CMD_WRITE () {0x2;}' unless defined(&AR5K_AR5212_EEPROM_CMD_WRITE);
    eval 'sub AR5K_AR5212_EEPROM_CMD_RESET () {0x4;}' unless defined(&AR5K_AR5212_EEPROM_CMD_RESET);
    eval 'sub AR5K_AR5212_EEPROM_STATUS () {0x600c;}' unless defined(&AR5K_AR5212_EEPROM_STATUS);
    eval 'sub AR5K_AR5212_EEPROM_STAT_RDERR () {0x1;}' unless defined(&AR5K_AR5212_EEPROM_STAT_RDERR);
    eval 'sub AR5K_AR5212_EEPROM_STAT_RDDONE () {0x2;}' unless defined(&AR5K_AR5212_EEPROM_STAT_RDDONE);
    eval 'sub AR5K_AR5212_EEPROM_STAT_WRERR () {0x4;}' unless defined(&AR5K_AR5212_EEPROM_STAT_WRERR);
    eval 'sub AR5K_AR5212_EEPROM_STAT_WRDONE () {0x8;}' unless defined(&AR5K_AR5212_EEPROM_STAT_WRDONE);
    eval 'sub AR5K_AR5212_EEPROM_CFG () {0x6010;}' unless defined(&AR5K_AR5212_EEPROM_CFG);
    eval 'sub AR5K_AR5212_PCU_MIN () {0x8000;}' unless defined(&AR5K_AR5212_PCU_MIN);
    eval 'sub AR5K_AR5212_PCU_MAX () {0x8fff;}' unless defined(&AR5K_AR5212_PCU_MAX);
    eval 'sub AR5K_AR5212_STA_ID0 () {0x8000;}' unless defined(&AR5K_AR5212_STA_ID0);
    eval 'sub AR5K_AR5212_STA_ID1 () {0x8004;}' unless defined(&AR5K_AR5212_STA_ID1);
    eval 'sub AR5K_AR5212_STA_ID1_AP () {0x10000;}' unless defined(&AR5K_AR5212_STA_ID1_AP);
    eval 'sub AR5K_AR5212_STA_ID1_ADHOC () {0x20000;}' unless defined(&AR5K_AR5212_STA_ID1_ADHOC);
    eval 'sub AR5K_AR5212_STA_ID1_PWR_SV () {0x40000;}' unless defined(&AR5K_AR5212_STA_ID1_PWR_SV);
    eval 'sub AR5K_AR5212_STA_ID1_NO_KEYSRCH () {0x80000;}' unless defined(&AR5K_AR5212_STA_ID1_NO_KEYSRCH);
    eval 'sub AR5K_AR5212_STA_ID1_PCF () {0x100000;}' unless defined(&AR5K_AR5212_STA_ID1_PCF);
    eval 'sub AR5K_AR5212_STA_ID1_DEFAULT_ANTENNA () {0x200000;}' unless defined(&AR5K_AR5212_STA_ID1_DEFAULT_ANTENNA);
    eval 'sub AR5K_AR5212_STA_ID1_DESC_ANTENNA () {0x400000;}' unless defined(&AR5K_AR5212_STA_ID1_DESC_ANTENNA);
    eval 'sub AR5K_AR5212_STA_ID1_RTS_DEFAULT_ANTENNA () {0x800000;}' unless defined(&AR5K_AR5212_STA_ID1_RTS_DEFAULT_ANTENNA);
    eval 'sub AR5K_AR5212_STA_ID1_ACKCTS_6MB () {0x1000000;}' unless defined(&AR5K_AR5212_STA_ID1_ACKCTS_6MB);
    eval 'sub AR5K_AR5212_STA_ID1_BASE_RATE_11B () {0x2000000;}' unless defined(&AR5K_AR5212_STA_ID1_BASE_RATE_11B);
    eval 'sub AR5K_AR5212_BSS_ID0 () {0x8008;}' unless defined(&AR5K_AR5212_BSS_ID0);
    eval 'sub AR5K_AR5212_BSS_ID1 () {0x800c;}' unless defined(&AR5K_AR5212_BSS_ID1);
    eval 'sub AR5K_AR5212_BSS_ID1_AID () {0xffff0000;}' unless defined(&AR5K_AR5212_BSS_ID1_AID);
    eval 'sub AR5K_AR5212_BSS_ID1_AID_S () {16;}' unless defined(&AR5K_AR5212_BSS_ID1_AID_S);
    eval 'sub AR5K_AR5212_SLOT_TIME () {0x8010;}' unless defined(&AR5K_AR5212_SLOT_TIME);
    eval 'sub AR5K_AR5212_TIME_OUT () {0x8014;}' unless defined(&AR5K_AR5212_TIME_OUT);
    eval 'sub AR5K_AR5212_TIME_OUT_ACK () {0x1fff;}' unless defined(&AR5K_AR5212_TIME_OUT_ACK);
    eval 'sub AR5K_AR5212_TIME_OUT_ACK_S () {0;}' unless defined(&AR5K_AR5212_TIME_OUT_ACK_S);
    eval 'sub AR5K_AR5212_TIME_OUT_CTS () {0x1fff0000;}' unless defined(&AR5K_AR5212_TIME_OUT_CTS);
    eval 'sub AR5K_AR5212_TIME_OUT_CTS_S () {16;}' unless defined(&AR5K_AR5212_TIME_OUT_CTS_S);
    eval 'sub AR5K_AR5212_RSSI_THR () {0x8018;}' unless defined(&AR5K_AR5212_RSSI_THR);
    eval 'sub AR5K_AR5212_RSSI_THR_M () {0xff;}' unless defined(&AR5K_AR5212_RSSI_THR_M);
    eval 'sub AR5K_AR5212_RSSI_THR_BMISS () {0xff00;}' unless defined(&AR5K_AR5212_RSSI_THR_BMISS);
    eval 'sub AR5K_AR5212_RSSI_THR_BMISS_S () {8;}' unless defined(&AR5K_AR5212_RSSI_THR_BMISS_S);
    eval 'sub AR5K_AR5212_USEC () {0x801c;}' unless defined(&AR5K_AR5212_USEC);
    eval 'sub AR5K_AR5212_USEC_1 () {0x7f;}' unless defined(&AR5K_AR5212_USEC_1);
    eval 'sub AR5K_AR5212_USEC_1_S () {0;}' unless defined(&AR5K_AR5212_USEC_1_S);
    eval 'sub AR5K_AR5212_USEC_32 () {0x3f80;}' unless defined(&AR5K_AR5212_USEC_32);
    eval 'sub AR5K_AR5212_USEC_32_S () {7;}' unless defined(&AR5K_AR5212_USEC_32_S);
    eval 'sub AR5K_AR5212_USEC_TX_LATENCY () {0x7fc000;}' unless defined(&AR5K_AR5212_USEC_TX_LATENCY);
    eval 'sub AR5K_AR5212_USEC_TX_LATENCY_S () {14;}' unless defined(&AR5K_AR5212_USEC_TX_LATENCY_S);
    eval 'sub AR5K_AR5212_USEC_RX_LATENCY () {0x1f800000;}' unless defined(&AR5K_AR5212_USEC_RX_LATENCY);
    eval 'sub AR5K_AR5212_USEC_RX_LATENCY_S () {23;}' unless defined(&AR5K_AR5212_USEC_RX_LATENCY_S);
    eval 'sub AR5K_AR5311_USEC_TX_LATENCY () {0xfc000;}' unless defined(&AR5K_AR5311_USEC_TX_LATENCY);
    eval 'sub AR5K_AR5311_USEC_TX_LATENCY_S () {14;}' unless defined(&AR5K_AR5311_USEC_TX_LATENCY_S);
    eval 'sub AR5K_AR5311_USEC_RX_LATENCY () {0x3f00000;}' unless defined(&AR5K_AR5311_USEC_RX_LATENCY);
    eval 'sub AR5K_AR5311_USEC_RX_LATENCY_S () {20;}' unless defined(&AR5K_AR5311_USEC_RX_LATENCY_S);
    eval 'sub AR5K_AR5212_BEACON () {0x8020;}' unless defined(&AR5K_AR5212_BEACON);
    eval 'sub AR5K_AR5212_BEACON_PERIOD () {0xffff;}' unless defined(&AR5K_AR5212_BEACON_PERIOD);
    eval 'sub AR5K_AR5212_BEACON_PERIOD_S () {0;}' unless defined(&AR5K_AR5212_BEACON_PERIOD_S);
    eval 'sub AR5K_AR5212_BEACON_TIM () {0x7f0000;}' unless defined(&AR5K_AR5212_BEACON_TIM);
    eval 'sub AR5K_AR5212_BEACON_TIM_S () {16;}' unless defined(&AR5K_AR5212_BEACON_TIM_S);
    eval 'sub AR5K_AR5212_BEACON_ENABLE () {0x800000;}' unless defined(&AR5K_AR5212_BEACON_ENABLE);
    eval 'sub AR5K_AR5212_BEACON_RESET_TSF () {0x1000000;}' unless defined(&AR5K_AR5212_BEACON_RESET_TSF);
    eval 'sub AR5K_AR5212_CFP_PERIOD () {0x8024;}' unless defined(&AR5K_AR5212_CFP_PERIOD);
    eval 'sub AR5K_AR5212_TIMER0 () {0x8028;}' unless defined(&AR5K_AR5212_TIMER0);
    eval 'sub AR5K_AR5212_TIMER1 () {0x802c;}' unless defined(&AR5K_AR5212_TIMER1);
    eval 'sub AR5K_AR5212_TIMER2 () {0x8030;}' unless defined(&AR5K_AR5212_TIMER2);
    eval 'sub AR5K_AR5212_TIMER3 () {0x8034;}' unless defined(&AR5K_AR5212_TIMER3);
    eval 'sub AR5K_AR5212_CFP_DUR () {0x8038;}' unless defined(&AR5K_AR5212_CFP_DUR);
    eval 'sub AR5K_AR5212_RX_FILTER () {0x803c;}' unless defined(&AR5K_AR5212_RX_FILTER);
    eval 'sub AR5K_AR5212_RX_FILTER_UNICAST () {0x1;}' unless defined(&AR5K_AR5212_RX_FILTER_UNICAST);
    eval 'sub AR5K_AR5212_RX_FILTER_MULTICAST () {0x2;}' unless defined(&AR5K_AR5212_RX_FILTER_MULTICAST);
    eval 'sub AR5K_AR5212_RX_FILTER_BROADCAST () {0x4;}' unless defined(&AR5K_AR5212_RX_FILTER_BROADCAST);
    eval 'sub AR5K_AR5212_RX_FILTER_CONTROL () {0x8;}' unless defined(&AR5K_AR5212_RX_FILTER_CONTROL);
    eval 'sub AR5K_AR5212_RX_FILTER_BEACON () {0x10;}' unless defined(&AR5K_AR5212_RX_FILTER_BEACON);
    eval 'sub AR5K_AR5212_RX_FILTER_PROMISC () {0x20;}' unless defined(&AR5K_AR5212_RX_FILTER_PROMISC);
    eval 'sub AR5K_AR5212_RX_FILTER_XR_POLL () {0x40;}' unless defined(&AR5K_AR5212_RX_FILTER_XR_POLL);
    eval 'sub AR5K_AR5212_RX_FILTER_PROBE_REQ () {0x80;}' unless defined(&AR5K_AR5212_RX_FILTER_PROBE_REQ);
    eval 'sub AR5K_AR5212_MCAST_FIL0 () {0x8040;}' unless defined(&AR5K_AR5212_MCAST_FIL0);
    eval 'sub AR5K_AR5212_MCAST_FIL1 () {0x8044;}' unless defined(&AR5K_AR5212_MCAST_FIL1);
    eval 'sub AR5K_AR5212_DIAG_SW () {0x8048;}' unless defined(&AR5K_AR5212_DIAG_SW);
    eval 'sub AR5K_AR5212_DIAG_SW_DIS_WEP_ACK () {0x1;}' unless defined(&AR5K_AR5212_DIAG_SW_DIS_WEP_ACK);
    eval 'sub AR5K_AR5212_DIAG_SW_DIS_ACK () {0x2;}' unless defined(&AR5K_AR5212_DIAG_SW_DIS_ACK);
    eval 'sub AR5K_AR5212_DIAG_SW_DIS_CTS () {0x4;}' unless defined(&AR5K_AR5212_DIAG_SW_DIS_CTS);
    eval 'sub AR5K_AR5212_DIAG_SW_DIS_ENC () {0x8;}' unless defined(&AR5K_AR5212_DIAG_SW_DIS_ENC);
    eval 'sub AR5K_AR5212_DIAG_SW_DIS_DEC () {0x10;}' unless defined(&AR5K_AR5212_DIAG_SW_DIS_DEC);
    eval 'sub AR5K_AR5212_DIAG_SW_DIS_RX () {0x20;}' unless defined(&AR5K_AR5212_DIAG_SW_DIS_RX);
    eval 'sub AR5K_AR5212_DIAG_SW_LOOP_BACK () {0x40;}' unless defined(&AR5K_AR5212_DIAG_SW_LOOP_BACK);
    eval 'sub AR5K_AR5212_DIAG_SW_CORR_FCS () {0x80;}' unless defined(&AR5K_AR5212_DIAG_SW_CORR_FCS);
    eval 'sub AR5K_AR5212_DIAG_SW_CHAN_INFO () {0x100;}' unless defined(&AR5K_AR5212_DIAG_SW_CHAN_INFO);
    eval 'sub AR5K_AR5212_DIAG_SW_EN_SCRAM_SEED () {0x200;}' unless defined(&AR5K_AR5212_DIAG_SW_EN_SCRAM_SEED);
    eval 'sub AR5K_AR5212_DIAG_SW_ECO_ENABLE () {0x400;}' unless defined(&AR5K_AR5212_DIAG_SW_ECO_ENABLE);
    eval 'sub AR5K_AR5212_DIAG_SW_SCRAM_SEED_M () {0x1fc00;}' unless defined(&AR5K_AR5212_DIAG_SW_SCRAM_SEED_M);
    eval 'sub AR5K_AR5212_DIAG_SW_SCRAM_SEED_S () {10;}' unless defined(&AR5K_AR5212_DIAG_SW_SCRAM_SEED_S);
    eval 'sub AR5K_AR5212_DIAG_SW_FRAME_NV0 () {0x20000;}' unless defined(&AR5K_AR5212_DIAG_SW_FRAME_NV0);
    eval 'sub AR5K_AR5212_DIAG_SW_OBSPT_M () {0xc0000;}' unless defined(&AR5K_AR5212_DIAG_SW_OBSPT_M);
    eval 'sub AR5K_AR5212_DIAG_SW_OBSPT_S () {18;}' unless defined(&AR5K_AR5212_DIAG_SW_OBSPT_S);
    eval 'sub AR5K_AR5212_TSF_L32 () {0x804c;}' unless defined(&AR5K_AR5212_TSF_L32);
    eval 'sub AR5K_AR5212_TSF_U32 () {0x8050;}' unless defined(&AR5K_AR5212_TSF_U32);
    eval 'sub AR5K_AR5212_ADDAC_TEST () {0x8054;}' unless defined(&AR5K_AR5212_ADDAC_TEST);
    eval 'sub AR5K_AR5212_DEFAULT_ANTENNA () {0x8058;}' unless defined(&AR5K_AR5212_DEFAULT_ANTENNA);
    eval 'sub AR5K_AR5212_LAST_TSTP () {0x8080;}' unless defined(&AR5K_AR5212_LAST_TSTP);
    eval 'sub AR5K_AR5212_NAV () {0x8084;}' unless defined(&AR5K_AR5212_NAV);
    eval 'sub AR5K_AR5212_RTS_OK () {0x8088;}' unless defined(&AR5K_AR5212_RTS_OK);
    eval 'sub AR5K_AR5212_RTS_FAIL () {0x808c;}' unless defined(&AR5K_AR5212_RTS_FAIL);
    eval 'sub AR5K_AR5212_ACK_FAIL () {0x8090;}' unless defined(&AR5K_AR5212_ACK_FAIL);
    eval 'sub AR5K_AR5212_FCS_FAIL () {0x8094;}' unless defined(&AR5K_AR5212_FCS_FAIL);
    eval 'sub AR5K_AR5212_BEACON_CNT () {0x8098;}' unless defined(&AR5K_AR5212_BEACON_CNT);
    eval 'sub AR5K_AR5212_XRMODE () {0x80c0;}' unless defined(&AR5K_AR5212_XRMODE);
    eval 'sub AR5K_AR5212_XRMODE_POLL_TYPE_M () {0x3f;}' unless defined(&AR5K_AR5212_XRMODE_POLL_TYPE_M);
    eval 'sub AR5K_AR5212_XRMODE_POLL_TYPE_S () {0;}' unless defined(&AR5K_AR5212_XRMODE_POLL_TYPE_S);
    eval 'sub AR5K_AR5212_XRMODE_POLL_SUBTYPE_M () {0x3c;}' unless defined(&AR5K_AR5212_XRMODE_POLL_SUBTYPE_M);
    eval 'sub AR5K_AR5212_XRMODE_POLL_SUBTYPE_S () {2;}' unless defined(&AR5K_AR5212_XRMODE_POLL_SUBTYPE_S);
    eval 'sub AR5K_AR5212_XRMODE_POLL_WAIT_ALL () {0x80;}' unless defined(&AR5K_AR5212_XRMODE_POLL_WAIT_ALL);
    eval 'sub AR5K_AR5212_XRMODE_SIFS_DELAY () {0xfff00;}' unless defined(&AR5K_AR5212_XRMODE_SIFS_DELAY);
    eval 'sub AR5K_AR5212_XRMODE_FRAME_HOLD_M () {0xfff00000;}' unless defined(&AR5K_AR5212_XRMODE_FRAME_HOLD_M);
    eval 'sub AR5K_AR5212_XRMODE_FRAME_HOLD_S () {20;}' unless defined(&AR5K_AR5212_XRMODE_FRAME_HOLD_S);
    eval 'sub AR5K_AR5212_XRDELAY () {0x80c4;}' unless defined(&AR5K_AR5212_XRDELAY);
    eval 'sub AR5K_AR5212_XRDELAY_SLOT_DELAY_M () {0xffff;}' unless defined(&AR5K_AR5212_XRDELAY_SLOT_DELAY_M);
    eval 'sub AR5K_AR5212_XRDELAY_SLOT_DELAY_S () {0;}' unless defined(&AR5K_AR5212_XRDELAY_SLOT_DELAY_S);
    eval 'sub AR5K_AR5212_XRDELAY_CHIRP_DELAY_M () {0xffff0000;}' unless defined(&AR5K_AR5212_XRDELAY_CHIRP_DELAY_M);
    eval 'sub AR5K_AR5212_XRDELAY_CHIRP_DELAY_S () {16;}' unless defined(&AR5K_AR5212_XRDELAY_CHIRP_DELAY_S);
    eval 'sub AR5K_AR5212_XRTIMEOUT () {0x80c8;}' unless defined(&AR5K_AR5212_XRTIMEOUT);
    eval 'sub AR5K_AR5212_XRTIMEOUT_CHIRP_M () {0xffff;}' unless defined(&AR5K_AR5212_XRTIMEOUT_CHIRP_M);
    eval 'sub AR5K_AR5212_XRTIMEOUT_CHIRP_S () {0;}' unless defined(&AR5K_AR5212_XRTIMEOUT_CHIRP_S);
    eval 'sub AR5K_AR5212_XRTIMEOUT_POLL_M () {0xffff0000;}' unless defined(&AR5K_AR5212_XRTIMEOUT_POLL_M);
    eval 'sub AR5K_AR5212_XRTIMEOUT_POLL_S () {16;}' unless defined(&AR5K_AR5212_XRTIMEOUT_POLL_S);
    eval 'sub AR5K_AR5212_XRCHIRP () {0x80cc;}' unless defined(&AR5K_AR5212_XRCHIRP);
    eval 'sub AR5K_AR5212_XRCHIRP_SEND () {0x1;}' unless defined(&AR5K_AR5212_XRCHIRP_SEND);
    eval 'sub AR5K_AR5212_XRCHIRP_GAP () {0xffff0000;}' unless defined(&AR5K_AR5212_XRCHIRP_GAP);
    eval 'sub AR5K_AR5212_XRSTOMP () {0x80d0;}' unless defined(&AR5K_AR5212_XRSTOMP);
    eval 'sub AR5K_AR5212_XRSTOMP_TX () {0x1;}' unless defined(&AR5K_AR5212_XRSTOMP_TX);
    eval 'sub AR5K_AR5212_XRSTOMP_RX_ABORT () {0x2;}' unless defined(&AR5K_AR5212_XRSTOMP_RX_ABORT);
    eval 'sub AR5K_AR5212_XRSTOMP_RSSI_THRES () {0xff00;}' unless defined(&AR5K_AR5212_XRSTOMP_RSSI_THRES);
    eval 'sub AR5K_AR5212_SLEEP0 () {0x80d4;}' unless defined(&AR5K_AR5212_SLEEP0);
    eval 'sub AR5K_AR5212_SLEEP0_NEXT_DTIM () {0x7ffff;}' unless defined(&AR5K_AR5212_SLEEP0_NEXT_DTIM);
    eval 'sub AR5K_AR5212_SLEEP0_NEXT_DTIM_S () {0;}' unless defined(&AR5K_AR5212_SLEEP0_NEXT_DTIM_S);
    eval 'sub AR5K_AR5212_SLEEP0_ASSUME_DTIM () {0x80000;}' unless defined(&AR5K_AR5212_SLEEP0_ASSUME_DTIM);
    eval 'sub AR5K_AR5212_SLEEP0_ENH_SLEEP_EN () {0x100000;}' unless defined(&AR5K_AR5212_SLEEP0_ENH_SLEEP_EN);
    eval 'sub AR5K_AR5212_SLEEP0_CABTO () {0xff000000;}' unless defined(&AR5K_AR5212_SLEEP0_CABTO);
    eval 'sub AR5K_AR5212_SLEEP0_CABTO_S () {24;}' unless defined(&AR5K_AR5212_SLEEP0_CABTO_S);
    eval 'sub AR5K_AR5212_SLEEP1 () {0x80d8;}' unless defined(&AR5K_AR5212_SLEEP1);
    eval 'sub AR5K_AR5212_SLEEP1_NEXT_TIM () {0x7ffff;}' unless defined(&AR5K_AR5212_SLEEP1_NEXT_TIM);
    eval 'sub AR5K_AR5212_SLEEP1_NEXT_TIM_S () {0;}' unless defined(&AR5K_AR5212_SLEEP1_NEXT_TIM_S);
    eval 'sub AR5K_AR5212_SLEEP1_BEACON_TO () {0xff000000;}' unless defined(&AR5K_AR5212_SLEEP1_BEACON_TO);
    eval 'sub AR5K_AR5212_SLEEP1_BEACON_TO_S () {24;}' unless defined(&AR5K_AR5212_SLEEP1_BEACON_TO_S);
    eval 'sub AR5K_AR5212_SLEEP2 () {0x80dc;}' unless defined(&AR5K_AR5212_SLEEP2);
    eval 'sub AR5K_AR5212_SLEEP2_TIM_PER () {0xffff;}' unless defined(&AR5K_AR5212_SLEEP2_TIM_PER);
    eval 'sub AR5K_AR5212_SLEEP2_TIM_PER_S () {0;}' unless defined(&AR5K_AR5212_SLEEP2_TIM_PER_S);
    eval 'sub AR5K_AR5212_SLEEP2_DTIM_PER () {0xffff0000;}' unless defined(&AR5K_AR5212_SLEEP2_DTIM_PER);
    eval 'sub AR5K_AR5212_SLEEP2_DTIM_PER_S () {16;}' unless defined(&AR5K_AR5212_SLEEP2_DTIM_PER_S);
    eval 'sub AR5K_AR5212_BSS_IDM0 () {0x80e0;}' unless defined(&AR5K_AR5212_BSS_IDM0);
    eval 'sub AR5K_AR5212_BSS_IDM1 () {0x80e4;}' unless defined(&AR5K_AR5212_BSS_IDM1);
    eval 'sub AR5K_AR5212_TXPC () {0x80e8;}' unless defined(&AR5K_AR5212_TXPC);
    eval 'sub AR5K_AR5212_TXPC_ACK_M () {0x3f;}' unless defined(&AR5K_AR5212_TXPC_ACK_M);
    eval 'sub AR5K_AR5212_TXPC_ACK_S () {0;}' unless defined(&AR5K_AR5212_TXPC_ACK_S);
    eval 'sub AR5K_AR5212_TXPC_CTS_M () {0x3f00;}' unless defined(&AR5K_AR5212_TXPC_CTS_M);
    eval 'sub AR5K_AR5212_TXPC_CTS_S () {8;}' unless defined(&AR5K_AR5212_TXPC_CTS_S);
    eval 'sub AR5K_AR5212_TXPC_CHIRP_M () {0x3f0000;}' unless defined(&AR5K_AR5212_TXPC_CHIRP_M);
    eval 'sub AR5K_AR5212_TXPC_CHIRP_S () {22;}' unless defined(&AR5K_AR5212_TXPC_CHIRP_S);
    eval 'sub AR5K_AR5212_PROFCNT_TX () {0x80ec;}' unless defined(&AR5K_AR5212_PROFCNT_TX);
    eval 'sub AR5K_AR5212_PROFCNT_RX () {0x80f0;}' unless defined(&AR5K_AR5212_PROFCNT_RX);
    eval 'sub AR5K_AR5212_PROFCNT_RXCLR () {0x80f4;}' unless defined(&AR5K_AR5212_PROFCNT_RXCLR);
    eval 'sub AR5K_AR5212_PROFCNT_CYCLE () {0x80f8;}' unless defined(&AR5K_AR5212_PROFCNT_CYCLE);
    eval 'sub AR5K_AR5212_TSF_PARM () {0x8104;}' unless defined(&AR5K_AR5212_TSF_PARM);
    eval 'sub AR5K_AR5212_TSF_PARM_INC_M () {0xff;}' unless defined(&AR5K_AR5212_TSF_PARM_INC_M);
    eval 'sub AR5K_AR5212_TSF_PARM_INC_S () {0;}' unless defined(&AR5K_AR5212_TSF_PARM_INC_S);
    eval 'sub AR5K_AR5212_PHY_ERR_FIL () {0x810c;}' unless defined(&AR5K_AR5212_PHY_ERR_FIL);
    eval 'sub AR5K_AR5212_PHY_ERR_FIL_RADAR () {0x20;}' unless defined(&AR5K_AR5212_PHY_ERR_FIL_RADAR);
    eval 'sub AR5K_AR5212_PHY_ERR_FIL_OFDM () {0x20000;}' unless defined(&AR5K_AR5212_PHY_ERR_FIL_OFDM);
    eval 'sub AR5K_AR5212_PHY_ERR_FIL_CCK () {0x2000000;}' unless defined(&AR5K_AR5212_PHY_ERR_FIL_CCK);
    eval 'sub AR5K_AR5212_RATE_DUR_0 () {0x8700;}' unless defined(&AR5K_AR5212_RATE_DUR_0);
    eval 'sub AR5K_AR5212_RATE_DUR {
        my($_n) = @_;
	    eval q(( &AR5K_AR5212_RATE_DUR_0 + (($_n) << 2)));
    }' unless defined(&AR5K_AR5212_RATE_DUR);
    eval 'sub AR5K_AR5212_KEYTABLE_0 () {0x8800;}' unless defined(&AR5K_AR5212_KEYTABLE_0);
    eval 'sub AR5K_AR5212_KEYTABLE {
        my($_n) = @_;
	    eval q(( &AR5K_AR5212_KEYTABLE_0 + (($_n) << 5)));
    }' unless defined(&AR5K_AR5212_KEYTABLE);
    eval 'sub AR5K_AR5212_KEYTABLE_OFF {
        my($_n, $x) = @_;
	    eval q(( &AR5K_AR5212_KEYTABLE($_n) + ($x << 2)));
    }' unless defined(&AR5K_AR5212_KEYTABLE_OFF);
    eval 'sub AR5K_AR5212_KEYTABLE_TYPE {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_KEYTABLE_OFF($_n, 5));
    }' unless defined(&AR5K_AR5212_KEYTABLE_TYPE);
    eval 'sub AR5K_AR5212_KEYTABLE_TYPE_40 () {0x;}' unless defined(&AR5K_AR5212_KEYTABLE_TYPE_40);
    eval 'sub AR5K_AR5212_KEYTABLE_TYPE_104 () {0x1;}' unless defined(&AR5K_AR5212_KEYTABLE_TYPE_104);
    eval 'sub AR5K_AR5212_KEYTABLE_TYPE_128 () {0x3;}' unless defined(&AR5K_AR5212_KEYTABLE_TYPE_128);
    eval 'sub AR5K_AR5212_KEYTABLE_TYPE_TKIP () {0x4;}' unless defined(&AR5K_AR5212_KEYTABLE_TYPE_TKIP);
    eval 'sub AR5K_AR5212_KEYTABLE_TYPE_AES () {0x5;}' unless defined(&AR5K_AR5212_KEYTABLE_TYPE_AES);
    eval 'sub AR5K_AR5212_KEYTABLE_TYPE_CCM () {0x6;}' unless defined(&AR5K_AR5212_KEYTABLE_TYPE_CCM);
    eval 'sub AR5K_AR5212_KEYTABLE_TYPE_NULL () {0x7;}' unless defined(&AR5K_AR5212_KEYTABLE_TYPE_NULL);
    eval 'sub AR5K_AR5212_KEYTABLE_ANTENNA () {0x8;}' unless defined(&AR5K_AR5212_KEYTABLE_ANTENNA);
    eval 'sub AR5K_AR5212_KEYTABLE_MAC0 {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_KEYTABLE_OFF($_n, 6));
    }' unless defined(&AR5K_AR5212_KEYTABLE_MAC0);
    eval 'sub AR5K_AR5212_KEYTABLE_MAC1 {
        my($_n) = @_;
	    eval q( &AR5K_AR5212_KEYTABLE_OFF($_n, 7));
    }' unless defined(&AR5K_AR5212_KEYTABLE_MAC1);
    eval 'sub AR5K_AR5212_KEYTABLE_VALID () {0x8000;}' unless defined(&AR5K_AR5212_KEYTABLE_VALID);
    eval 'sub AR5K_AR5212_KEYTABLE_SIZE () {128;}' unless defined(&AR5K_AR5212_KEYTABLE_SIZE);
    eval 'sub AR5K_AR5212_KEYCACHE_SIZE () {8;}' unless defined(&AR5K_AR5212_KEYCACHE_SIZE);
    eval 'sub AR5K_AR5212_PHY {
        my($_n) = @_;
	    eval q((0x9800 + (($_n) << 2)));
    }' unless defined(&AR5K_AR5212_PHY);
    eval 'sub AR5K_AR5212_PHY_SHIFT_2GHZ () {0x4007;}' unless defined(&AR5K_AR5212_PHY_SHIFT_2GHZ);
    eval 'sub AR5K_AR5212_PHY_SHIFT_5GHZ () {0x7;}' unless defined(&AR5K_AR5212_PHY_SHIFT_5GHZ);
    eval 'sub AR5K_AR5212_PHY_TURBO () {0x9804;}' unless defined(&AR5K_AR5212_PHY_TURBO);
    eval 'sub AR5K_AR5212_PHY_TURBO_MODE () {0x1;}' unless defined(&AR5K_AR5212_PHY_TURBO_MODE);
    eval 'sub AR5K_AR5212_PHY_TURBO_SHORT () {0x2;}' unless defined(&AR5K_AR5212_PHY_TURBO_SHORT);
    eval 'sub AR5K_AR5212_PHY_AGC () {0x9808;}' unless defined(&AR5K_AR5212_PHY_AGC);
    eval 'sub AR5K_AR5212_PHY_AGC_DISABLE () {0x8000000;}' unless defined(&AR5K_AR5212_PHY_AGC_DISABLE);
    eval 'sub AR5K_AR5212_PHY_TIMING_3 () {0x9814;}' unless defined(&AR5K_AR5212_PHY_TIMING_3);
    eval 'sub AR5K_AR5212_PHY_TIMING_3_DSC_MAN () {0xfffe0000;}' unless defined(&AR5K_AR5212_PHY_TIMING_3_DSC_MAN);
    eval 'sub AR5K_AR5212_PHY_TIMING_3_DSC_MAN_S () {17;}' unless defined(&AR5K_AR5212_PHY_TIMING_3_DSC_MAN_S);
    eval 'sub AR5K_AR5212_PHY_TIMING_3_DSC_EXP () {0x1e000;}' unless defined(&AR5K_AR5212_PHY_TIMING_3_DSC_EXP);
    eval 'sub AR5K_AR5212_PHY_TIMING_3_DSC_EXP_S () {13;}' unless defined(&AR5K_AR5212_PHY_TIMING_3_DSC_EXP_S);
    eval 'sub AR5K_AR5212_PHY_CHIP_ID () {0x9818;}' unless defined(&AR5K_AR5212_PHY_CHIP_ID);
    eval 'sub AR5K_AR5212_PHY_ACTIVE () {0x981c;}' unless defined(&AR5K_AR5212_PHY_ACTIVE);
    eval 'sub AR5K_AR5212_PHY_ENABLE () {0x1;}' unless defined(&AR5K_AR5212_PHY_ENABLE);
    eval 'sub AR5K_AR5212_PHY_DISABLE () {0x2;}' unless defined(&AR5K_AR5212_PHY_DISABLE);
    eval 'sub AR5K_AR5212_PHY_AGCCTL () {0x9860;}' unless defined(&AR5K_AR5212_PHY_AGCCTL);
    eval 'sub AR5K_AR5212_PHY_AGCCTL_CAL () {0x1;}' unless defined(&AR5K_AR5212_PHY_AGCCTL_CAL);
    eval 'sub AR5K_AR5212_PHY_AGCCTL_NF () {0x2;}' unless defined(&AR5K_AR5212_PHY_AGCCTL_NF);
    eval 'sub AR5K_AR5212_PHY_NF () {0x9864;}' unless defined(&AR5K_AR5212_PHY_NF);
    eval 'sub AR5K_AR5212_PHY_NF_M () {0x1ff;}' unless defined(&AR5K_AR5212_PHY_NF_M);
    eval 'sub AR5K_AR5212_PHY_NF_ACTIVE () {0x100;}' unless defined(&AR5K_AR5212_PHY_NF_ACTIVE);
    eval 'sub AR5K_AR5212_PHY_NF_RVAL {
        my($_n) = @_;
	    eval q(((($_n) >> 19) &  &AR5K_AR5212_PHY_NF_M));
    }' unless defined(&AR5K_AR5212_PHY_NF_RVAL);
    eval 'sub AR5K_AR5212_PHY_NF_AVAL {
        my($_n) = @_;
	    eval q((-(($_n) ^  &AR5K_AR5212_PHY_NF_M) + 1));
    }' unless defined(&AR5K_AR5212_PHY_NF_AVAL);
    eval 'sub AR5K_AR5212_PHY_NF_SVAL {
        my($_n) = @_;
	    eval q(((($_n) &  &AR5K_AR5212_PHY_NF_M) | (1<< 9)));
    }' unless defined(&AR5K_AR5212_PHY_NF_SVAL);
    eval 'sub AR5K_AR5212_PHY_SCR () {0x9870;}' unless defined(&AR5K_AR5212_PHY_SCR);
    eval 'sub AR5K_AR5212_PHY_SCR_32MHZ () {0x1f;}' unless defined(&AR5K_AR5212_PHY_SCR_32MHZ);
    eval 'sub AR5K_AR5212_PHY_SLMT () {0x9874;}' unless defined(&AR5K_AR5212_PHY_SLMT);
    eval 'sub AR5K_AR5212_PHY_SLMT_32MHZ () {0x7f;}' unless defined(&AR5K_AR5212_PHY_SLMT_32MHZ);
    eval 'sub AR5K_AR5212_PHY_SCAL () {0x9878;}' unless defined(&AR5K_AR5212_PHY_SCAL);
    eval 'sub AR5K_AR5212_PHY_SCAL_32MHZ () {0xe;}' unless defined(&AR5K_AR5212_PHY_SCAL_32MHZ);
    eval 'sub AR5K_AR5212_PHY_PLL () {0x987c;}' unless defined(&AR5K_AR5212_PHY_PLL);
    eval 'sub AR5K_AR5212_PHY_PLL_40MHZ () {0xaa;}' unless defined(&AR5K_AR5212_PHY_PLL_40MHZ);
    eval 'sub AR5K_AR5212_PHY_PLL_44MHZ () {0xab;}' unless defined(&AR5K_AR5212_PHY_PLL_44MHZ);
    eval 'sub AR5K_AR5212_PHY_PLL_AR5111 () {0x;}' unless defined(&AR5K_AR5212_PHY_PLL_AR5111);
    eval 'sub AR5K_AR5212_PHY_PLL_AR5112 () {0x40;}' unless defined(&AR5K_AR5212_PHY_PLL_AR5112);
    eval 'sub AR5K_AR5212_PHY_RX_DELAY () {0x9914;}' unless defined(&AR5K_AR5212_PHY_RX_DELAY);
    eval 'sub AR5K_AR5212_PHY_RX_DELAY_M () {0x3fff;}' unless defined(&AR5K_AR5212_PHY_RX_DELAY_M);
    eval 'sub AR5K_AR5212_PHY_IQ () {0x9920;}' unless defined(&AR5K_AR5212_PHY_IQ);
    eval 'sub AR5K_AR5212_PHY_IQ_CORR_Q_Q_COFF () {0x1f;}' unless defined(&AR5K_AR5212_PHY_IQ_CORR_Q_Q_COFF);
    eval 'sub AR5K_AR5212_PHY_IQ_CORR_Q_I_COFF () {0x7e0;}' unless defined(&AR5K_AR5212_PHY_IQ_CORR_Q_I_COFF);
    eval 'sub AR5K_AR5212_PHY_IQ_CORR_Q_I_COFF_S () {5;}' unless defined(&AR5K_AR5212_PHY_IQ_CORR_Q_I_COFF_S);
    eval 'sub AR5K_AR5212_PHY_IQ_CORR_ENABLE () {0x800;}' unless defined(&AR5K_AR5212_PHY_IQ_CORR_ENABLE);
    eval 'sub AR5K_AR5212_PHY_IQ_CAL_NUM_LOG_MAX () {0xf000;}' unless defined(&AR5K_AR5212_PHY_IQ_CAL_NUM_LOG_MAX);
    eval 'sub AR5K_AR5212_PHY_IQ_CAL_NUM_LOG_MAX_S () {12;}' unless defined(&AR5K_AR5212_PHY_IQ_CAL_NUM_LOG_MAX_S);
    eval 'sub AR5K_AR5212_PHY_IQ_RUN () {0x10000;}' unless defined(&AR5K_AR5212_PHY_IQ_RUN);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE () {0x9930;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE_TXPOWER () {0x7e00;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE_TXPOWER);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE_TXPOWER_S () {9;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE_TXPOWER_S);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE_TX_NEXT () {0x8000;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE_TX_NEXT);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE_TYPE () {0x1800000;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE_TYPE);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE_TYPE_S () {23;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE_TYPE_S);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE_TYPE_OFDM () {0;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE_TYPE_OFDM);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE_TYPE_XR () {1;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE_TYPE_XR);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE_TYPE_CCK () {2;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE_TYPE_CCK);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE_GAINF () {0xfe000000;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE_GAINF);
    eval 'sub AR5K_AR5212_PHY_PAPD_PROBE_GAINF_S () {25;}' unless defined(&AR5K_AR5212_PHY_PAPD_PROBE_GAINF_S);
    eval 'sub AR5K_AR5212_PHY_TXPOWER_RATE1 () {0x9934;}' unless defined(&AR5K_AR5212_PHY_TXPOWER_RATE1);
    eval 'sub AR5K_AR5212_PHY_TXPOWER_RATE2 () {0x9938;}' unless defined(&AR5K_AR5212_PHY_TXPOWER_RATE2);
    eval 'sub AR5K_AR5212_PHY_TXPOWER_RATE_MAX () {0x993c;}' unless defined(&AR5K_AR5212_PHY_TXPOWER_RATE_MAX);
    eval 'sub AR5K_AR5212_PHY_TXPOWER_RATE_MAX_TPC_ENABLE () {0x40;}' unless defined(&AR5K_AR5212_PHY_TXPOWER_RATE_MAX_TPC_ENABLE);
    eval 'sub AR5K_AR5212_PHY_TXPOWER_RATE3 () {0xa234;}' unless defined(&AR5K_AR5212_PHY_TXPOWER_RATE3);
    eval 'sub AR5K_AR5212_PHY_TXPOWER_RATE4 () {0xa238;}' unless defined(&AR5K_AR5212_PHY_TXPOWER_RATE4);
    eval 'sub AR5K_AR5212_PHY_FC () {0x9944;}' unless defined(&AR5K_AR5212_PHY_FC);
    eval 'sub AR5K_AR5212_PHY_FC_TX_CLIP () {0x38;}' unless defined(&AR5K_AR5212_PHY_FC_TX_CLIP);
    eval 'sub AR5K_AR5212_PHY_FC_TX_CLIP_S () {3;}' unless defined(&AR5K_AR5212_PHY_FC_TX_CLIP_S);
    eval 'sub AR5K_AR5212_PHY_RADAR () {0x9954;}' unless defined(&AR5K_AR5212_PHY_RADAR);
    eval 'sub AR5K_AR5212_PHY_RADAR_DISABLE () {0x;}' unless defined(&AR5K_AR5212_PHY_RADAR_DISABLE);
    eval 'sub AR5K_AR5212_PHY_RADAR_ENABLE () {0x1;}' unless defined(&AR5K_AR5212_PHY_RADAR_ENABLE);
    eval 'sub AR5K_AR5212_PHY_ANT_SWITCH_TABLE_0 () {0x9960;}' unless defined(&AR5K_AR5212_PHY_ANT_SWITCH_TABLE_0);
    eval 'sub AR5K_AR5212_PHY_ANT_SWITCH_TABLE_1 () {0x9964;}' unless defined(&AR5K_AR5212_PHY_ANT_SWITCH_TABLE_1);
    eval 'sub AR5K_AR5212_PHY_SCLOCK () {0x99f0;}' unless defined(&AR5K_AR5212_PHY_SCLOCK);
    eval 'sub AR5K_AR5212_PHY_SCLOCK_32MHZ () {0xc;}' unless defined(&AR5K_AR5212_PHY_SCLOCK_32MHZ);
    eval 'sub AR5K_AR5212_PHY_SDELAY () {0x99f4;}' unless defined(&AR5K_AR5212_PHY_SDELAY);
    eval 'sub AR5K_AR5212_PHY_SDELAY_32MHZ () {0xff;}' unless defined(&AR5K_AR5212_PHY_SDELAY_32MHZ);
    eval 'sub AR5K_AR5212_PHY_SPENDING () {0x99f8;}' unless defined(&AR5K_AR5212_PHY_SPENDING);
    eval 'sub AR5K_AR5212_PHY_SPENDING_AR5111 () {0x18;}' unless defined(&AR5K_AR5212_PHY_SPENDING_AR5111);
    eval 'sub AR5K_AR5212_PHY_SPENDING_AR5112 () {0x14;}' unless defined(&AR5K_AR5212_PHY_SPENDING_AR5112);
    eval 'sub AR5K_AR5212_PHY_IQRES_CAL_PWR_I () {0x9c10;}' unless defined(&AR5K_AR5212_PHY_IQRES_CAL_PWR_I);
    eval 'sub AR5K_AR5212_PHY_IQRES_CAL_PWR_Q () {0x9c14;}' unless defined(&AR5K_AR5212_PHY_IQRES_CAL_PWR_Q);
    eval 'sub AR5K_AR5212_PHY_IQRES_CAL_CORR () {0x9c18;}' unless defined(&AR5K_AR5212_PHY_IQRES_CAL_CORR);
    eval 'sub AR5K_AR5212_PHY_CURRENT_RSSI () {0x9c1c;}' unless defined(&AR5K_AR5212_PHY_CURRENT_RSSI);
    eval 'sub AR5K_AR5212_PHY_PCDAC_TXPOWER {
        my($_n) = @_;
	    eval q((0xa180 + (($_n) << 2)));
    }' unless defined(&AR5K_AR5212_PHY_PCDAC_TXPOWER);
    eval 'sub AR5K_AR5212_PHY_MODE () {0xa200;}' unless defined(&AR5K_AR5212_PHY_MODE);
    eval 'sub AR5K_AR5212_PHY_MODE_MOD () {0x1;}' unless defined(&AR5K_AR5212_PHY_MODE_MOD);
    eval 'sub AR5K_AR5212_PHY_MODE_MOD_OFDM () {0;}' unless defined(&AR5K_AR5212_PHY_MODE_MOD_OFDM);
    eval 'sub AR5K_AR5212_PHY_MODE_MOD_CCK () {1;}' unless defined(&AR5K_AR5212_PHY_MODE_MOD_CCK);
    eval 'sub AR5K_AR5212_PHY_MODE_FREQ () {0x2;}' unless defined(&AR5K_AR5212_PHY_MODE_FREQ);
    eval 'sub AR5K_AR5212_PHY_MODE_FREQ_5GHZ () {0;}' unless defined(&AR5K_AR5212_PHY_MODE_FREQ_5GHZ);
    eval 'sub AR5K_AR5212_PHY_MODE_FREQ_2GHZ () {2;}' unless defined(&AR5K_AR5212_PHY_MODE_FREQ_2GHZ);
    eval 'sub AR5K_AR5212_PHY_MODE_MOD_DYN () {0x4;}' unless defined(&AR5K_AR5212_PHY_MODE_MOD_DYN);
    eval 'sub AR5K_AR5212_PHY_MODE_RAD () {0x8;}' unless defined(&AR5K_AR5212_PHY_MODE_RAD);
    eval 'sub AR5K_AR5212_PHY_MODE_RAD_AR5111 () {0;}' unless defined(&AR5K_AR5212_PHY_MODE_RAD_AR5111);
    eval 'sub AR5K_AR5212_PHY_MODE_RAD_AR5112 () {8;}' unless defined(&AR5K_AR5212_PHY_MODE_RAD_AR5112);
    eval 'sub AR5K_AR5212_PHY_MODE_XR () {0x10;}' unless defined(&AR5K_AR5212_PHY_MODE_XR);
    eval 'sub AR5K_AR5212_PHY_CCKTXCTL () {0xa204;}' unless defined(&AR5K_AR5212_PHY_CCKTXCTL);
    eval 'sub AR5K_AR5212_PHY_CCKTXCTL_WORLD () {0x;}' unless defined(&AR5K_AR5212_PHY_CCKTXCTL_WORLD);
    eval 'sub AR5K_AR5212_PHY_CCKTXCTL_JAPAN () {0x10;}' unless defined(&AR5K_AR5212_PHY_CCKTXCTL_JAPAN);
    eval 'sub AR5K_AR5212_PHY_GAIN_2GHZ () {0xa20c;}' unless defined(&AR5K_AR5212_PHY_GAIN_2GHZ);
    eval 'sub AR5K_AR5212_PHY_GAIN_2GHZ_MARGIN_TXRX () {0xfc0000;}' unless defined(&AR5K_AR5212_PHY_GAIN_2GHZ_MARGIN_TXRX);
    eval 'sub AR5K_AR5212_PHY_GAIN_2GHZ_MARGIN_TXRX_S () {18;}' unless defined(&AR5K_AR5212_PHY_GAIN_2GHZ_MARGIN_TXRX_S);
}
1;
