require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_AR5K_AR5210_REG_H)) {
    eval 'sub _AR5K_AR5210_REG_H () {1;}' unless defined(&_AR5K_AR5210_REG_H);
    eval 'sub AR5K_AR5210_TXDP0 () {0x;}' unless defined(&AR5K_AR5210_TXDP0);
    eval 'sub AR5K_AR5210_TXDP1 () {0x4;}' unless defined(&AR5K_AR5210_TXDP1);
    eval 'sub AR5K_AR5210_CR () {0x8;}' unless defined(&AR5K_AR5210_CR);
    eval 'sub AR5K_AR5210_CR_TXE0 () {0x1;}' unless defined(&AR5K_AR5210_CR_TXE0);
    eval 'sub AR5K_AR5210_CR_TXE1 () {0x2;}' unless defined(&AR5K_AR5210_CR_TXE1);
    eval 'sub AR5K_AR5210_CR_RXE () {0x4;}' unless defined(&AR5K_AR5210_CR_RXE);
    eval 'sub AR5K_AR5210_CR_TXD0 () {0x8;}' unless defined(&AR5K_AR5210_CR_TXD0);
    eval 'sub AR5K_AR5210_CR_TXD1 () {0x10;}' unless defined(&AR5K_AR5210_CR_TXD1);
    eval 'sub AR5K_AR5210_CR_RXD () {0x20;}' unless defined(&AR5K_AR5210_CR_RXD);
    eval 'sub AR5K_AR5210_CR_SWI () {0x40;}' unless defined(&AR5K_AR5210_CR_SWI);
    eval 'sub AR5K_AR5210_RXDP () {0xc;}' unless defined(&AR5K_AR5210_RXDP);
    eval 'sub AR5K_AR5210_CFG () {0x14;}' unless defined(&AR5K_AR5210_CFG);
    eval 'sub AR5K_AR5210_CFG_SWTD () {0x1;}' unless defined(&AR5K_AR5210_CFG_SWTD);
    eval 'sub AR5K_AR5210_CFG_SWTB () {0x2;}' unless defined(&AR5K_AR5210_CFG_SWTB);
    eval 'sub AR5K_AR5210_CFG_SWRD () {0x4;}' unless defined(&AR5K_AR5210_CFG_SWRD);
    eval 'sub AR5K_AR5210_CFG_SWRB () {0x8;}' unless defined(&AR5K_AR5210_CFG_SWRB);
    eval 'sub AR5K_AR5210_CFG_SWRG () {0x10;}' unless defined(&AR5K_AR5210_CFG_SWRG);
    eval 'sub AR5K_AR5210_CFG_EEBS () {0x200;}' unless defined(&AR5K_AR5210_CFG_EEBS);
    eval 'sub AR5K_AR5210_CFG_TXCNT () {0x7800;}' unless defined(&AR5K_AR5210_CFG_TXCNT);
    eval 'sub AR5K_AR5210_CFG_TXCNT_S () {11;}' unless defined(&AR5K_AR5210_CFG_TXCNT_S);
    eval 'sub AR5K_AR5210_CFG_TXFSTAT () {0x8000;}' unless defined(&AR5K_AR5210_CFG_TXFSTAT);
    eval 'sub AR5K_AR5210_CFG_TXFSTRT () {0x10000;}' unless defined(&AR5K_AR5210_CFG_TXFSTRT);
    eval 'sub AR5K_AR5210_ISR () {0x1c;}' unless defined(&AR5K_AR5210_ISR);
    eval 'sub AR5K_AR5210_ISR_RXOK () {0x1;}' unless defined(&AR5K_AR5210_ISR_RXOK);
    eval 'sub AR5K_AR5210_ISR_RXDESC () {0x2;}' unless defined(&AR5K_AR5210_ISR_RXDESC);
    eval 'sub AR5K_AR5210_ISR_RXERR () {0x4;}' unless defined(&AR5K_AR5210_ISR_RXERR);
    eval 'sub AR5K_AR5210_ISR_RXNOFRM () {0x8;}' unless defined(&AR5K_AR5210_ISR_RXNOFRM);
    eval 'sub AR5K_AR5210_ISR_RXEOL () {0x10;}' unless defined(&AR5K_AR5210_ISR_RXEOL);
    eval 'sub AR5K_AR5210_ISR_RXORN () {0x20;}' unless defined(&AR5K_AR5210_ISR_RXORN);
    eval 'sub AR5K_AR5210_ISR_TXOK () {0x40;}' unless defined(&AR5K_AR5210_ISR_TXOK);
    eval 'sub AR5K_AR5210_ISR_TXDESC () {0x80;}' unless defined(&AR5K_AR5210_ISR_TXDESC);
    eval 'sub AR5K_AR5210_ISR_TXERR () {0x100;}' unless defined(&AR5K_AR5210_ISR_TXERR);
    eval 'sub AR5K_AR5210_ISR_TXNOFRM () {0x200;}' unless defined(&AR5K_AR5210_ISR_TXNOFRM);
    eval 'sub AR5K_AR5210_ISR_TXEOL () {0x400;}' unless defined(&AR5K_AR5210_ISR_TXEOL);
    eval 'sub AR5K_AR5210_ISR_TXURN () {0x800;}' unless defined(&AR5K_AR5210_ISR_TXURN);
    eval 'sub AR5K_AR5210_ISR_MIB () {0x1000;}' unless defined(&AR5K_AR5210_ISR_MIB);
    eval 'sub AR5K_AR5210_ISR_SWI () {0x2000;}' unless defined(&AR5K_AR5210_ISR_SWI);
    eval 'sub AR5K_AR5210_ISR_RXPHY () {0x4000;}' unless defined(&AR5K_AR5210_ISR_RXPHY);
    eval 'sub AR5K_AR5210_ISR_RXKCM () {0x8000;}' unless defined(&AR5K_AR5210_ISR_RXKCM);
    eval 'sub AR5K_AR5210_ISR_SWBA () {0x10000;}' unless defined(&AR5K_AR5210_ISR_SWBA);
    eval 'sub AR5K_AR5210_ISR_BRSSI () {0x20000;}' unless defined(&AR5K_AR5210_ISR_BRSSI);
    eval 'sub AR5K_AR5210_ISR_BMISS () {0x40000;}' unless defined(&AR5K_AR5210_ISR_BMISS);
    eval 'sub AR5K_AR5210_ISR_MCABT () {0x100000;}' unless defined(&AR5K_AR5210_ISR_MCABT);
    eval 'sub AR5K_AR5210_ISR_SSERR () {0x200000;}' unless defined(&AR5K_AR5210_ISR_SSERR);
    eval 'sub AR5K_AR5210_ISR_DPERR () {0x400000;}' unless defined(&AR5K_AR5210_ISR_DPERR);
    eval 'sub AR5K_AR5210_ISR_GPIO () {0x1000000;}' unless defined(&AR5K_AR5210_ISR_GPIO);
    eval 'sub AR5K_AR5210_ISR_FATAL () {(  &AR5K_AR5210_ISR_MCABT |  &AR5K_AR5210_ISR_SSERR |  &AR5K_AR5210_ISR_DPERR |  &AR5K_AR5210_ISR_RXORN );}' unless defined(&AR5K_AR5210_ISR_FATAL);
    eval 'sub AR5K_AR5210_IMR () {0x20;}' unless defined(&AR5K_AR5210_IMR);
    eval 'sub AR5K_AR5210_IMR_RXOK () {0x1;}' unless defined(&AR5K_AR5210_IMR_RXOK);
    eval 'sub AR5K_AR5210_IMR_RXDESC () {0x2;}' unless defined(&AR5K_AR5210_IMR_RXDESC);
    eval 'sub AR5K_AR5210_IMR_RXERR () {0x4;}' unless defined(&AR5K_AR5210_IMR_RXERR);
    eval 'sub AR5K_AR5210_IMR_RXNOFRM () {0x8;}' unless defined(&AR5K_AR5210_IMR_RXNOFRM);
    eval 'sub AR5K_AR5210_IMR_RXEOL () {0x10;}' unless defined(&AR5K_AR5210_IMR_RXEOL);
    eval 'sub AR5K_AR5210_IMR_RXORN () {0x20;}' unless defined(&AR5K_AR5210_IMR_RXORN);
    eval 'sub AR5K_AR5210_IMR_TXOK () {0x40;}' unless defined(&AR5K_AR5210_IMR_TXOK);
    eval 'sub AR5K_AR5210_IMR_TXDESC () {0x80;}' unless defined(&AR5K_AR5210_IMR_TXDESC);
    eval 'sub AR5K_AR5210_IMR_TXERR () {0x100;}' unless defined(&AR5K_AR5210_IMR_TXERR);
    eval 'sub AR5K_AR5210_IMR_TXNOFRM () {0x200;}' unless defined(&AR5K_AR5210_IMR_TXNOFRM);
    eval 'sub AR5K_AR5210_IMR_TXEOL () {0x400;}' unless defined(&AR5K_AR5210_IMR_TXEOL);
    eval 'sub AR5K_AR5210_IMR_TXURN () {0x800;}' unless defined(&AR5K_AR5210_IMR_TXURN);
    eval 'sub AR5K_AR5210_IMR_MIB () {0x1000;}' unless defined(&AR5K_AR5210_IMR_MIB);
    eval 'sub AR5K_AR5210_IMR_SWI () {0x2000;}' unless defined(&AR5K_AR5210_IMR_SWI);
    eval 'sub AR5K_AR5210_IMR_RXPHY () {0x4000;}' unless defined(&AR5K_AR5210_IMR_RXPHY);
    eval 'sub AR5K_AR5210_IMR_RXKCM () {0x8000;}' unless defined(&AR5K_AR5210_IMR_RXKCM);
    eval 'sub AR5K_AR5210_IMR_SWBA () {0x10000;}' unless defined(&AR5K_AR5210_IMR_SWBA);
    eval 'sub AR5K_AR5210_IMR_BRSSI () {0x20000;}' unless defined(&AR5K_AR5210_IMR_BRSSI);
    eval 'sub AR5K_AR5210_IMR_BMISS () {0x40000;}' unless defined(&AR5K_AR5210_IMR_BMISS);
    eval 'sub AR5K_AR5210_IMR_MCABT () {0x100000;}' unless defined(&AR5K_AR5210_IMR_MCABT);
    eval 'sub AR5K_AR5210_IMR_SSERR () {0x200000;}' unless defined(&AR5K_AR5210_IMR_SSERR);
    eval 'sub AR5K_AR5210_IMR_DPERR () {0x400000;}' unless defined(&AR5K_AR5210_IMR_DPERR);
    eval 'sub AR5K_AR5210_IMR_GPIO () {0x1000000;}' unless defined(&AR5K_AR5210_IMR_GPIO);
    eval 'sub AR5K_AR5210_IER () {0x24;}' unless defined(&AR5K_AR5210_IER);
    eval 'sub AR5K_AR5210_IER_DISABLE () {0x;}' unless defined(&AR5K_AR5210_IER_DISABLE);
    eval 'sub AR5K_AR5210_IER_ENABLE () {0x1;}' unless defined(&AR5K_AR5210_IER_ENABLE);
    eval 'sub AR5K_AR5210_BCR () {0x28;}' unless defined(&AR5K_AR5210_BCR);
    eval 'sub AR5K_AR5210_BCR_AP () {0x;}' unless defined(&AR5K_AR5210_BCR_AP);
    eval 'sub AR5K_AR5210_BCR_ADHOC () {0x1;}' unless defined(&AR5K_AR5210_BCR_ADHOC);
    eval 'sub AR5K_AR5210_BCR_BDMAE () {0x2;}' unless defined(&AR5K_AR5210_BCR_BDMAE);
    eval 'sub AR5K_AR5210_BCR_TQ1FV () {0x4;}' unless defined(&AR5K_AR5210_BCR_TQ1FV);
    eval 'sub AR5K_AR5210_BCR_TQ1V () {0x8;}' unless defined(&AR5K_AR5210_BCR_TQ1V);
    eval 'sub AR5K_AR5210_BCR_BCGET () {0x10;}' unless defined(&AR5K_AR5210_BCR_BCGET);
    eval 'sub AR5K_AR5210_BSR () {0x2c;}' unless defined(&AR5K_AR5210_BSR);
    eval 'sub AR5K_AR5210_BSR_BDLYSW () {0x1;}' unless defined(&AR5K_AR5210_BSR_BDLYSW);
    eval 'sub AR5K_AR5210_BSR_BDLYDMA () {0x2;}' unless defined(&AR5K_AR5210_BSR_BDLYDMA);
    eval 'sub AR5K_AR5210_BSR_TXQ1F () {0x4;}' unless defined(&AR5K_AR5210_BSR_TXQ1F);
    eval 'sub AR5K_AR5210_BSR_ATIMDLY () {0x8;}' unless defined(&AR5K_AR5210_BSR_ATIMDLY);
    eval 'sub AR5K_AR5210_BSR_SNPBCMD () {0x100;}' unless defined(&AR5K_AR5210_BSR_SNPBCMD);
    eval 'sub AR5K_AR5210_BSR_SNPBDMAE () {0x200;}' unless defined(&AR5K_AR5210_BSR_SNPBDMAE);
    eval 'sub AR5K_AR5210_BSR_SNPTQ1FV () {0x400;}' unless defined(&AR5K_AR5210_BSR_SNPTQ1FV);
    eval 'sub AR5K_AR5210_BSR_SNPTQ1V () {0x800;}' unless defined(&AR5K_AR5210_BSR_SNPTQ1V);
    eval 'sub AR5K_AR5210_BSR_SNAPPEDBCRVALID () {0x1000;}' unless defined(&AR5K_AR5210_BSR_SNAPPEDBCRVALID);
    eval 'sub AR5K_AR5210_BSR_SWBA_CNT () {0xff0000;}' unless defined(&AR5K_AR5210_BSR_SWBA_CNT);
    eval("sub AR5K_AR5210_DMASIZE_4B () { 0; }") unless defined(&AR5K_AR5210_DMASIZE_4B);
    eval("sub AR5K_AR5210_DMASIZE_8B () { 1; }") unless defined(&AR5K_AR5210_DMASIZE_8B);
    eval("sub AR5K_AR5210_DMASIZE_16B () { 2; }") unless defined(&AR5K_AR5210_DMASIZE_16B);
    eval("sub AR5K_AR5210_DMASIZE_32B () { 3; }") unless defined(&AR5K_AR5210_DMASIZE_32B);
    eval("sub AR5K_AR5210_DMASIZE_64B () { 4; }") unless defined(&AR5K_AR5210_DMASIZE_64B);
    eval("sub AR5K_AR5210_DMASIZE_128B () { 5; }") unless defined(&AR5K_AR5210_DMASIZE_128B);
    eval("sub AR5K_AR5210_DMASIZE_256B () { 6; }") unless defined(&AR5K_AR5210_DMASIZE_256B);
    eval("sub AR5K_AR5210_DMASIZE_512B () { 7; }") unless defined(&AR5K_AR5210_DMASIZE_512B);
    eval 'sub AR5K_AR5210_TXCFG () {0x30;}' unless defined(&AR5K_AR5210_TXCFG);
    eval 'sub AR5K_AR5210_TXCFG_SDMAMR () {0x7;}' unless defined(&AR5K_AR5210_TXCFG_SDMAMR);
    eval 'sub AR5K_AR5210_TXCFG_TXFSTP () {0x8;}' unless defined(&AR5K_AR5210_TXCFG_TXFSTP);
    eval 'sub AR5K_AR5210_TXCFG_TXFULL () {0x70;}' unless defined(&AR5K_AR5210_TXCFG_TXFULL);
    eval 'sub AR5K_AR5210_TXCFG_TXCONT_EN () {0x80;}' unless defined(&AR5K_AR5210_TXCFG_TXCONT_EN);
    eval 'sub AR5K_AR5210_RXCFG () {0x34;}' unless defined(&AR5K_AR5210_RXCFG);
    eval 'sub AR5K_AR5210_RXCFG_SDMAMW () {0x7;}' unless defined(&AR5K_AR5210_RXCFG_SDMAMW);
    eval 'sub AR5K_AR5210_RXCFG_ZLFDMA () {0x10;}' unless defined(&AR5K_AR5210_RXCFG_ZLFDMA);
    eval 'sub AR5K_AR5210_MIBC () {0x40;}' unless defined(&AR5K_AR5210_MIBC);
    eval 'sub AR5K_AR5210_MIBC_COW () {0x1;}' unless defined(&AR5K_AR5210_MIBC_COW);
    eval 'sub AR5K_AR5210_MIBC_FMC () {0x2;}' unless defined(&AR5K_AR5210_MIBC_FMC);
    eval 'sub AR5K_AR5210_MIBC_CMC () {0x4;}' unless defined(&AR5K_AR5210_MIBC_CMC);
    eval 'sub AR5K_AR5210_MIBC_MCS () {0x8;}' unless defined(&AR5K_AR5210_MIBC_MCS);
    eval 'sub AR5K_AR5210_TOPS () {0x44;}' unless defined(&AR5K_AR5210_TOPS);
    eval 'sub AR5K_AR5210_RXNOFRM () {0x48;}' unless defined(&AR5K_AR5210_RXNOFRM);
    eval 'sub AR5K_AR5210_TXNOFRM () {0x4c;}' unless defined(&AR5K_AR5210_TXNOFRM);
    eval 'sub AR5K_AR5210_RPGTO () {0x50;}' unless defined(&AR5K_AR5210_RPGTO);
    eval 'sub AR5K_AR5210_RFCNT () {0x54;}' unless defined(&AR5K_AR5210_RFCNT);
    eval 'sub AR5K_AR5210_RFCNT_RFCL () {0xf;}' unless defined(&AR5K_AR5210_RFCNT_RFCL);
    eval 'sub AR5K_AR5210_MISC () {0x58;}' unless defined(&AR5K_AR5210_MISC);
    eval 'sub AR5K_AR5210_MISC_LED_DECAY () {0x1c0000;}' unless defined(&AR5K_AR5210_MISC_LED_DECAY);
    eval 'sub AR5K_AR5210_MISC_LED_BLINK () {0xe00000;}' unless defined(&AR5K_AR5210_MISC_LED_BLINK);
    eval 'sub AR5K_AR5210_RC () {0x4000;}' unless defined(&AR5K_AR5210_RC);
    eval 'sub AR5K_AR5210_RC_PCU () {0x1;}' unless defined(&AR5K_AR5210_RC_PCU);
    eval 'sub AR5K_AR5210_RC_DMA () {0x2;}' unless defined(&AR5K_AR5210_RC_DMA);
    eval 'sub AR5K_AR5210_RC_MAC () {0x4;}' unless defined(&AR5K_AR5210_RC_MAC);
    eval 'sub AR5K_AR5210_RC_PHY () {0x8;}' unless defined(&AR5K_AR5210_RC_PHY);
    eval 'sub AR5K_AR5210_RC_PCI () {0x10;}' unless defined(&AR5K_AR5210_RC_PCI);
    eval 'sub AR5K_AR5210_RC_CHIP () {(  &AR5K_AR5210_RC_PCU |  &AR5K_AR5210_RC_DMA |  &AR5K_AR5210_RC_MAC |  &AR5K_AR5210_RC_PHY );}' unless defined(&AR5K_AR5210_RC_CHIP);
    eval 'sub AR5K_AR5210_SCR () {0x4004;}' unless defined(&AR5K_AR5210_SCR);
    eval 'sub AR5K_AR5210_SCR_SLDUR () {0xffff;}' unless defined(&AR5K_AR5210_SCR_SLDUR);
    eval 'sub AR5K_AR5210_SCR_SLE () {0x30000;}' unless defined(&AR5K_AR5210_SCR_SLE);
    eval 'sub AR5K_AR5210_SCR_SLE_WAKE () {0x;}' unless defined(&AR5K_AR5210_SCR_SLE_WAKE);
    eval 'sub AR5K_AR5210_SCR_SLE_SLP () {0x10000;}' unless defined(&AR5K_AR5210_SCR_SLE_SLP);
    eval 'sub AR5K_AR5210_SCR_SLE_ALLOW () {0x20000;}' unless defined(&AR5K_AR5210_SCR_SLE_ALLOW);
    eval 'sub AR5K_AR5210_INTPEND () {0x4008;}' unless defined(&AR5K_AR5210_INTPEND);
    eval 'sub AR5K_AR5210_INTPEND_IP () {0x1;}' unless defined(&AR5K_AR5210_INTPEND_IP);
    eval 'sub AR5K_AR5210_SFR () {0x400c;}' unless defined(&AR5K_AR5210_SFR);
    eval 'sub AR5K_AR5210_SFR_SF () {0x1;}' unless defined(&AR5K_AR5210_SFR_SF);
    eval 'sub AR5K_AR5210_PCICFG () {0x4010;}' unless defined(&AR5K_AR5210_PCICFG);
    eval 'sub AR5K_AR5210_PCICFG_EEAE () {0x1;}' unless defined(&AR5K_AR5210_PCICFG_EEAE);
    eval 'sub AR5K_AR5210_PCICFG_CLKRUNEN () {0x4;}' unless defined(&AR5K_AR5210_PCICFG_CLKRUNEN);
    eval 'sub AR5K_AR5210_PCICFG_LED_PEND () {0x20;}' unless defined(&AR5K_AR5210_PCICFG_LED_PEND);
    eval 'sub AR5K_AR5210_PCICFG_LED_ACT () {0x40;}' unless defined(&AR5K_AR5210_PCICFG_LED_ACT);
    eval 'sub AR5K_AR5210_PCICFG_SL_INTEN () {0x800;}' unless defined(&AR5K_AR5210_PCICFG_SL_INTEN);
    eval 'sub AR5K_AR5210_PCICFG_LED_BCTL () {0x1000;}' unless defined(&AR5K_AR5210_PCICFG_LED_BCTL);
    eval 'sub AR5K_AR5210_PCICFG_SL_INPEN () {0x2800;}' unless defined(&AR5K_AR5210_PCICFG_SL_INPEN);
    eval 'sub AR5K_AR5210_PCICFG_SPWR_DN () {0x10000;}' unless defined(&AR5K_AR5210_PCICFG_SPWR_DN);
    eval 'sub AR5K_AR5210_GPIOCR () {0x4014;}' unless defined(&AR5K_AR5210_GPIOCR);
    eval 'sub AR5K_AR5210_GPIOCR_INT_ENA () {0x8000;}' unless defined(&AR5K_AR5210_GPIOCR_INT_ENA);
    eval 'sub AR5K_AR5210_GPIOCR_INT_SELL () {0x;}' unless defined(&AR5K_AR5210_GPIOCR_INT_SELL);
    eval 'sub AR5K_AR5210_GPIOCR_INT_SELH () {0x10000;}' unless defined(&AR5K_AR5210_GPIOCR_INT_SELH);
    eval 'sub AR5K_AR5210_GPIOCR_IN {
        my($n) = @_;
	    eval q((0<< (($n) * 2)));
    }' unless defined(&AR5K_AR5210_GPIOCR_IN);
    eval 'sub AR5K_AR5210_GPIOCR_OUT0 {
        my($n) = @_;
	    eval q((1<< (($n) * 2)));
    }' unless defined(&AR5K_AR5210_GPIOCR_OUT0);
    eval 'sub AR5K_AR5210_GPIOCR_OUT1 {
        my($n) = @_;
	    eval q((2<< (($n) * 2)));
    }' unless defined(&AR5K_AR5210_GPIOCR_OUT1);
    eval 'sub AR5K_AR5210_GPIOCR_OUT {
        my($n) = @_;
	    eval q((3<< (($n) * 2)));
    }' unless defined(&AR5K_AR5210_GPIOCR_OUT);
    eval 'sub AR5K_AR5210_GPIOCR_ALL {
        my($n) = @_;
	    eval q((3<< (($n) * 2)));
    }' unless defined(&AR5K_AR5210_GPIOCR_ALL);
    eval 'sub AR5K_AR5210_GPIOCR_INT_SEL {
        my($n) = @_;
	    eval q((($n) << 12));
    }' unless defined(&AR5K_AR5210_GPIOCR_INT_SEL);
    eval 'sub AR5K_AR5210_NUM_GPIO () {6;}' unless defined(&AR5K_AR5210_NUM_GPIO);
    eval 'sub AR5K_AR5210_GPIODO () {0x4018;}' unless defined(&AR5K_AR5210_GPIODO);
    eval 'sub AR5K_AR5210_GPIODI () {0x401c;}' unless defined(&AR5K_AR5210_GPIODI);
    eval 'sub AR5K_AR5210_GPIOD_MASK () {0x2f;}' unless defined(&AR5K_AR5210_GPIOD_MASK);
    eval 'sub AR5K_AR5210_SREV () {0x4020;}' unless defined(&AR5K_AR5210_SREV);
    eval 'sub AR5K_AR5210_SREV_REV () {0xf;}' unless defined(&AR5K_AR5210_SREV_REV);
    eval 'sub AR5K_AR5210_SREV_REV_S () {0;}' unless defined(&AR5K_AR5210_SREV_REV_S);
    eval 'sub AR5K_AR5210_SREV_VER () {0xff;}' unless defined(&AR5K_AR5210_SREV_VER);
    eval 'sub AR5K_AR5210_SREV_VER_S () {4;}' unless defined(&AR5K_AR5210_SREV_VER_S);
    eval 'sub AR5K_AR5210_EEPROM_BASE () {0x6000;}' unless defined(&AR5K_AR5210_EEPROM_BASE);
    eval 'sub AR5K_AR5210_EEPROM_RDATA () {0x6800;}' unless defined(&AR5K_AR5210_EEPROM_RDATA);
    eval 'sub AR5K_AR5210_EEPROM_STATUS () {0x6c00;}' unless defined(&AR5K_AR5210_EEPROM_STATUS);
    eval 'sub AR5K_AR5210_EEPROM_STAT_RDERR () {0x1;}' unless defined(&AR5K_AR5210_EEPROM_STAT_RDERR);
    eval 'sub AR5K_AR5210_EEPROM_STAT_RDDONE () {0x2;}' unless defined(&AR5K_AR5210_EEPROM_STAT_RDDONE);
    eval 'sub AR5K_AR5210_EEPROM_STAT_WRERR () {0x4;}' unless defined(&AR5K_AR5210_EEPROM_STAT_WRERR);
    eval 'sub AR5K_AR5210_EEPROM_STAT_WRDONE () {0x8;}' unless defined(&AR5K_AR5210_EEPROM_STAT_WRDONE);
    eval 'sub AR5K_AR5210_PCU_MIN () {0x8000;}' unless defined(&AR5K_AR5210_PCU_MIN);
    eval 'sub AR5K_AR5210_PCU_MAX () {0x8fff;}' unless defined(&AR5K_AR5210_PCU_MAX);
    eval 'sub AR5K_AR5210_STA_ID0 () {0x8000;}' unless defined(&AR5K_AR5210_STA_ID0);
    eval 'sub AR5K_AR5210_STA_ID1 () {0x8004;}' unless defined(&AR5K_AR5210_STA_ID1);
    eval 'sub AR5K_AR5210_STA_ID1_AP () {0x10000;}' unless defined(&AR5K_AR5210_STA_ID1_AP);
    eval 'sub AR5K_AR5210_STA_ID1_ADHOC () {0x20000;}' unless defined(&AR5K_AR5210_STA_ID1_ADHOC);
    eval 'sub AR5K_AR5210_STA_ID1_PWR_SV () {0x40000;}' unless defined(&AR5K_AR5210_STA_ID1_PWR_SV);
    eval 'sub AR5K_AR5210_STA_ID1_NO_KEYSRCH () {0x80000;}' unless defined(&AR5K_AR5210_STA_ID1_NO_KEYSRCH);
    eval 'sub AR5K_AR5210_STA_ID1_NO_PSPOLL () {0x100000;}' unless defined(&AR5K_AR5210_STA_ID1_NO_PSPOLL);
    eval 'sub AR5K_AR5210_STA_ID1_PCF () {0x200000;}' unless defined(&AR5K_AR5210_STA_ID1_PCF);
    eval 'sub AR5K_AR5210_STA_ID1_DESC_ANTENNA () {0x400000;}' unless defined(&AR5K_AR5210_STA_ID1_DESC_ANTENNA);
    eval 'sub AR5K_AR5210_STA_ID1_DEFAULT_ANTENNA () {0x800000;}' unless defined(&AR5K_AR5210_STA_ID1_DEFAULT_ANTENNA);
    eval 'sub AR5K_AR5210_STA_ID1_ACKCTS_6MB () {0x1000000;}' unless defined(&AR5K_AR5210_STA_ID1_ACKCTS_6MB);
    eval 'sub AR5K_AR5210_BSS_ID0 () {0x8008;}' unless defined(&AR5K_AR5210_BSS_ID0);
    eval 'sub AR5K_AR5210_BSS_ID1 () {0x800c;}' unless defined(&AR5K_AR5210_BSS_ID1);
    eval 'sub AR5K_AR5210_BSS_ID1_AID () {0xffff0000;}' unless defined(&AR5K_AR5210_BSS_ID1_AID);
    eval 'sub AR5K_AR5210_BSS_ID1_AID_S () {16;}' unless defined(&AR5K_AR5210_BSS_ID1_AID_S);
    eval 'sub AR5K_AR5210_SLOT_TIME () {0x8010;}' unless defined(&AR5K_AR5210_SLOT_TIME);
    eval 'sub AR5K_AR5210_TIME_OUT () {0x8014;}' unless defined(&AR5K_AR5210_TIME_OUT);
    eval 'sub AR5K_AR5210_TIME_OUT_ACK () {0x1fff;}' unless defined(&AR5K_AR5210_TIME_OUT_ACK);
    eval 'sub AR5K_AR5210_TIME_OUT_ACK_S () {0;}' unless defined(&AR5K_AR5210_TIME_OUT_ACK_S);
    eval 'sub AR5K_AR5210_TIME_OUT_CTS () {0x1fff0000;}' unless defined(&AR5K_AR5210_TIME_OUT_CTS);
    eval 'sub AR5K_AR5210_TIME_OUT_CTS_S () {16;}' unless defined(&AR5K_AR5210_TIME_OUT_CTS_S);
    eval 'sub AR5K_AR5210_RSSI_THR () {0x8018;}' unless defined(&AR5K_AR5210_RSSI_THR);
    eval 'sub AR5K_AR5210_RSSI_THR_BM_THR () {0x700;}' unless defined(&AR5K_AR5210_RSSI_THR_BM_THR);
    eval 'sub AR5K_AR5210_RSSI_THR_BM_THR_S () {8;}' unless defined(&AR5K_AR5210_RSSI_THR_BM_THR_S);
    eval 'sub AR5K_AR5210_RETRY_LMT () {0x801c;}' unless defined(&AR5K_AR5210_RETRY_LMT);
    eval 'sub AR5K_AR5210_RETRY_LMT_SH_RETRY () {0xf;}' unless defined(&AR5K_AR5210_RETRY_LMT_SH_RETRY);
    eval 'sub AR5K_AR5210_RETRY_LMT_SH_RETRY_S () {0;}' unless defined(&AR5K_AR5210_RETRY_LMT_SH_RETRY_S);
    eval 'sub AR5K_AR5210_RETRY_LMT_LG_RETRY () {0xf0;}' unless defined(&AR5K_AR5210_RETRY_LMT_LG_RETRY);
    eval 'sub AR5K_AR5210_RETRY_LMT_LG_RETRY_S () {4;}' unless defined(&AR5K_AR5210_RETRY_LMT_LG_RETRY_S);
    eval 'sub AR5K_AR5210_RETRY_LMT_SSH_RETRY () {0x3f00;}' unless defined(&AR5K_AR5210_RETRY_LMT_SSH_RETRY);
    eval 'sub AR5K_AR5210_RETRY_LMT_SSH_RETRY_S () {8;}' unless defined(&AR5K_AR5210_RETRY_LMT_SSH_RETRY_S);
    eval 'sub AR5K_AR5210_RETRY_LMT_SLG_RETRY () {0xfc000;}' unless defined(&AR5K_AR5210_RETRY_LMT_SLG_RETRY);
    eval 'sub AR5K_AR5210_RETRY_LMT_SLG_RETRY_S () {14;}' unless defined(&AR5K_AR5210_RETRY_LMT_SLG_RETRY_S);
    eval 'sub AR5K_AR5210_RETRY_LMT_CW_MIN () {0x3ff00000;}' unless defined(&AR5K_AR5210_RETRY_LMT_CW_MIN);
    eval 'sub AR5K_AR5210_RETRY_LMT_CW_MIN_S () {20;}' unless defined(&AR5K_AR5210_RETRY_LMT_CW_MIN_S);
    eval 'sub AR5K_AR5210_USEC () {0x8020;}' unless defined(&AR5K_AR5210_USEC);
    eval 'sub AR5K_AR5210_USEC_1 () {0x7f;}' unless defined(&AR5K_AR5210_USEC_1);
    eval 'sub AR5K_AR5210_USEC_1_S () {0;}' unless defined(&AR5K_AR5210_USEC_1_S);
    eval 'sub AR5K_AR5210_USEC_32 () {0x3f80;}' unless defined(&AR5K_AR5210_USEC_32);
    eval 'sub AR5K_AR5210_USEC_32_S () {7;}' unless defined(&AR5K_AR5210_USEC_32_S);
    eval 'sub AR5K_AR5210_USEC_TX_LATENCY () {0xfc000;}' unless defined(&AR5K_AR5210_USEC_TX_LATENCY);
    eval 'sub AR5K_AR5210_USEC_TX_LATENCY_S () {14;}' unless defined(&AR5K_AR5210_USEC_TX_LATENCY_S);
    eval 'sub AR5K_AR5210_USEC_RX_LATENCY () {0x3f00000;}' unless defined(&AR5K_AR5210_USEC_RX_LATENCY);
    eval 'sub AR5K_AR5210_USEC_RX_LATENCY_S () {20;}' unless defined(&AR5K_AR5210_USEC_RX_LATENCY_S);
    eval 'sub AR5K_AR5210_BEACON () {0x8024;}' unless defined(&AR5K_AR5210_BEACON);
    eval 'sub AR5K_AR5210_BEACON_PERIOD () {0xffff;}' unless defined(&AR5K_AR5210_BEACON_PERIOD);
    eval 'sub AR5K_AR5210_BEACON_PERIOD_S () {0;}' unless defined(&AR5K_AR5210_BEACON_PERIOD_S);
    eval 'sub AR5K_AR5210_BEACON_TIM () {0x7f0000;}' unless defined(&AR5K_AR5210_BEACON_TIM);
    eval 'sub AR5K_AR5210_BEACON_TIM_S () {16;}' unless defined(&AR5K_AR5210_BEACON_TIM_S);
    eval 'sub AR5K_AR5210_BEACON_EN () {0x800000;}' unless defined(&AR5K_AR5210_BEACON_EN);
    eval 'sub AR5K_AR5210_BEACON_RESET_TSF () {0x1000000;}' unless defined(&AR5K_AR5210_BEACON_RESET_TSF);
    eval 'sub AR5K_AR5210_CFP_PERIOD () {0x8028;}' unless defined(&AR5K_AR5210_CFP_PERIOD);
    eval 'sub AR5K_AR5210_TIMER0 () {0x802c;}' unless defined(&AR5K_AR5210_TIMER0);
    eval 'sub AR5K_AR5210_TIMER1 () {0x8030;}' unless defined(&AR5K_AR5210_TIMER1);
    eval 'sub AR5K_AR5210_TIMER2 () {0x8034;}' unless defined(&AR5K_AR5210_TIMER2);
    eval 'sub AR5K_AR5210_TIMER3 () {0x8038;}' unless defined(&AR5K_AR5210_TIMER3);
    eval 'sub AR5K_AR5210_IFS0 () {0x8040;}' unless defined(&AR5K_AR5210_IFS0);
    eval 'sub AR5K_AR5210_IFS0_SIFS () {0x7ff;}' unless defined(&AR5K_AR5210_IFS0_SIFS);
    eval 'sub AR5K_AR5210_IFS0_SIFS_S () {0;}' unless defined(&AR5K_AR5210_IFS0_SIFS_S);
    eval 'sub AR5K_AR5210_IFS0_DIFS () {0x7ff800;}' unless defined(&AR5K_AR5210_IFS0_DIFS);
    eval 'sub AR5K_AR5210_IFS0_DIFS_S () {11;}' unless defined(&AR5K_AR5210_IFS0_DIFS_S);
    eval 'sub AR5K_AR5210_IFS1 () {0x8044;}' unless defined(&AR5K_AR5210_IFS1);
    eval 'sub AR5K_AR5210_IFS1_PIFS () {0xfff;}' unless defined(&AR5K_AR5210_IFS1_PIFS);
    eval 'sub AR5K_AR5210_IFS1_PIFS_S () {0;}' unless defined(&AR5K_AR5210_IFS1_PIFS_S);
    eval 'sub AR5K_AR5210_IFS1_EIFS () {0x3fff000;}' unless defined(&AR5K_AR5210_IFS1_EIFS);
    eval 'sub AR5K_AR5210_IFS1_EIFS_S () {12;}' unless defined(&AR5K_AR5210_IFS1_EIFS_S);
    eval 'sub AR5K_AR5210_IFS1_CS_EN () {0x4000000;}' unless defined(&AR5K_AR5210_IFS1_CS_EN);
    eval 'sub AR5K_AR5210_CFP_DUR () {0x8048;}' unless defined(&AR5K_AR5210_CFP_DUR);
    eval 'sub AR5K_AR5210_RX_FILTER () {0x804c;}' unless defined(&AR5K_AR5210_RX_FILTER);
    eval 'sub AR5K_AR5210_RX_FILTER_UNICAST () {0x1;}' unless defined(&AR5K_AR5210_RX_FILTER_UNICAST);
    eval 'sub AR5K_AR5210_RX_FILTER_MULTICAST () {0x2;}' unless defined(&AR5K_AR5210_RX_FILTER_MULTICAST);
    eval 'sub AR5K_AR5210_RX_FILTER_BROADCAST () {0x4;}' unless defined(&AR5K_AR5210_RX_FILTER_BROADCAST);
    eval 'sub AR5K_AR5210_RX_FILTER_CONTROL () {0x8;}' unless defined(&AR5K_AR5210_RX_FILTER_CONTROL);
    eval 'sub AR5K_AR5210_RX_FILTER_BEACON () {0x10;}' unless defined(&AR5K_AR5210_RX_FILTER_BEACON);
    eval 'sub AR5K_AR5210_RX_FILTER_PROMISC () {0x20;}' unless defined(&AR5K_AR5210_RX_FILTER_PROMISC);
    eval 'sub AR5K_AR5210_MCAST_FIL0 () {0x8050;}' unless defined(&AR5K_AR5210_MCAST_FIL0);
    eval 'sub AR5K_AR5210_MCAST_FIL1 () {0x8054;}' unless defined(&AR5K_AR5210_MCAST_FIL1);
    eval 'sub AR5K_AR5210_TX_MASK0 () {0x8058;}' unless defined(&AR5K_AR5210_TX_MASK0);
    eval 'sub AR5K_AR5210_TX_MASK1 () {0x805c;}' unless defined(&AR5K_AR5210_TX_MASK1);
    eval 'sub AR5K_AR5210_CLR_TMASK () {0x8060;}' unless defined(&AR5K_AR5210_CLR_TMASK);
    eval 'sub AR5K_AR5210_TRIG_LVL () {0x8064;}' unless defined(&AR5K_AR5210_TRIG_LVL);
    eval 'sub AR5K_AR5210_DIAG_SW () {0x8068;}' unless defined(&AR5K_AR5210_DIAG_SW);
    eval 'sub AR5K_AR5210_DIAG_SW_DIS_WEP_ACK () {0x1;}' unless defined(&AR5K_AR5210_DIAG_SW_DIS_WEP_ACK);
    eval 'sub AR5K_AR5210_DIAG_SW_DIS_ACK () {0x2;}' unless defined(&AR5K_AR5210_DIAG_SW_DIS_ACK);
    eval 'sub AR5K_AR5210_DIAG_SW_DIS_CTS () {0x4;}' unless defined(&AR5K_AR5210_DIAG_SW_DIS_CTS);
    eval 'sub AR5K_AR5210_DIAG_SW_DIS_ENC () {0x8;}' unless defined(&AR5K_AR5210_DIAG_SW_DIS_ENC);
    eval 'sub AR5K_AR5210_DIAG_SW_DIS_DEC () {0x10;}' unless defined(&AR5K_AR5210_DIAG_SW_DIS_DEC);
    eval 'sub AR5K_AR5210_DIAG_SW_DIS_TX () {0x20;}' unless defined(&AR5K_AR5210_DIAG_SW_DIS_TX);
    eval 'sub AR5K_AR5210_DIAG_SW_DIS_RX () {0x40;}' unless defined(&AR5K_AR5210_DIAG_SW_DIS_RX);
    eval 'sub AR5K_AR5210_DIAG_SW_LOOP_BACK () {0x80;}' unless defined(&AR5K_AR5210_DIAG_SW_LOOP_BACK);
    eval 'sub AR5K_AR5210_DIAG_SW_CORR_FCS () {0x100;}' unless defined(&AR5K_AR5210_DIAG_SW_CORR_FCS);
    eval 'sub AR5K_AR5210_DIAG_SW_CHAN_INFO () {0x200;}' unless defined(&AR5K_AR5210_DIAG_SW_CHAN_INFO);
    eval 'sub AR5K_AR5210_DIAG_SW_EN_SCRAM_SEED () {0x400;}' unless defined(&AR5K_AR5210_DIAG_SW_EN_SCRAM_SEED);
    eval 'sub AR5K_AR5210_DIAG_SW_SCVRAM_SEED () {0x3f800;}' unless defined(&AR5K_AR5210_DIAG_SW_SCVRAM_SEED);
    eval 'sub AR5K_AR5210_DIAG_SW_DIS_SEQ_INC () {0x40000;}' unless defined(&AR5K_AR5210_DIAG_SW_DIS_SEQ_INC);
    eval 'sub AR5K_AR5210_DIAG_SW_FRAME_NV0 () {0x80000;}' unless defined(&AR5K_AR5210_DIAG_SW_FRAME_NV0);
    eval 'sub AR5K_AR5210_TSF_L32 () {0x806c;}' unless defined(&AR5K_AR5210_TSF_L32);
    eval 'sub AR5K_AR5210_TSF_U32 () {0x8070;}' unless defined(&AR5K_AR5210_TSF_U32);
    eval 'sub AR5K_AR5210_LAST_TSTP () {0x8080;}' unless defined(&AR5K_AR5210_LAST_TSTP);
    eval 'sub AR5K_AR5210_RETRY_CNT () {0x8084;}' unless defined(&AR5K_AR5210_RETRY_CNT);
    eval 'sub AR5K_AR5210_RETRY_CNT_SSH () {0x3f;}' unless defined(&AR5K_AR5210_RETRY_CNT_SSH);
    eval 'sub AR5K_AR5210_RETRY_CNT_SLG () {0xfc0;}' unless defined(&AR5K_AR5210_RETRY_CNT_SLG);
    eval 'sub AR5K_AR5210_BACKOFF () {0x8088;}' unless defined(&AR5K_AR5210_BACKOFF);
    eval 'sub AR5K_AR5210_BACKOFF_CW () {0x3ff;}' unless defined(&AR5K_AR5210_BACKOFF_CW);
    eval 'sub AR5K_AR5210_BACKOFF_CNT () {0x3ff0000;}' unless defined(&AR5K_AR5210_BACKOFF_CNT);
    eval 'sub AR5K_AR5210_NAV () {0x808c;}' unless defined(&AR5K_AR5210_NAV);
    eval 'sub AR5K_AR5210_RTS_OK () {0x8090;}' unless defined(&AR5K_AR5210_RTS_OK);
    eval 'sub AR5K_AR5210_RTS_FAIL () {0x8094;}' unless defined(&AR5K_AR5210_RTS_FAIL);
    eval 'sub AR5K_AR5210_ACK_FAIL () {0x8098;}' unless defined(&AR5K_AR5210_ACK_FAIL);
    eval 'sub AR5K_AR5210_FCS_FAIL () {0x809c;}' unless defined(&AR5K_AR5210_FCS_FAIL);
    eval 'sub AR5K_AR5210_BEACON_CNT () {0x80a0;}' unless defined(&AR5K_AR5210_BEACON_CNT);
    eval 'sub AR5K_AR5210_KEYTABLE_0 () {0x9000;}' unless defined(&AR5K_AR5210_KEYTABLE_0);
    eval 'sub AR5K_AR5210_KEYTABLE {
        my($n) = @_;
	    eval q(( &AR5K_AR5210_KEYTABLE_0 + (($n) << 5)));
    }' unless defined(&AR5K_AR5210_KEYTABLE);
    eval 'sub AR5K_AR5210_KEYTABLE_OFF {
        my($_n, $x) = @_;
	    eval q(( &AR5K_AR5210_KEYTABLE($_n) + ($x << 2)));
    }' unless defined(&AR5K_AR5210_KEYTABLE_OFF);
    eval 'sub AR5K_AR5210_KEYTABLE_TYPE {
        my($_n) = @_;
	    eval q( &AR5K_AR5210_KEYTABLE_OFF($_n, 5));
    }' unless defined(&AR5K_AR5210_KEYTABLE_TYPE);
    eval 'sub AR5K_AR5210_KEYTABLE_TYPE_40 () {0x;}' unless defined(&AR5K_AR5210_KEYTABLE_TYPE_40);
    eval 'sub AR5K_AR5210_KEYTABLE_TYPE_104 () {0x1;}' unless defined(&AR5K_AR5210_KEYTABLE_TYPE_104);
    eval 'sub AR5K_AR5210_KEYTABLE_TYPE_128 () {0x3;}' unless defined(&AR5K_AR5210_KEYTABLE_TYPE_128);
    eval 'sub AR5K_AR5210_KEYTABLE_MAC0 {
        my($_n) = @_;
	    eval q( &AR5K_AR5210_KEYTABLE_OFF($_n, 6));
    }' unless defined(&AR5K_AR5210_KEYTABLE_MAC0);
    eval 'sub AR5K_AR5210_KEYTABLE_MAC1 {
        my($_n) = @_;
	    eval q( &AR5K_AR5210_KEYTABLE_OFF($_n, 7));
    }' unless defined(&AR5K_AR5210_KEYTABLE_MAC1);
    eval 'sub AR5K_AR5210_KEYTABLE_VALID () {0x8000;}' unless defined(&AR5K_AR5210_KEYTABLE_VALID);
    eval 'sub AR5K_AR5210_KEYTABLE_SIZE () {64;}' unless defined(&AR5K_AR5210_KEYTABLE_SIZE);
    eval 'sub AR5K_AR5210_KEYCACHE_SIZE () {8;}' unless defined(&AR5K_AR5210_KEYCACHE_SIZE);
    eval 'sub AR5K_AR5210_PHY {
        my($_n) = @_;
	    eval q((0x9800 + (($_n) << 2)));
    }' unless defined(&AR5K_AR5210_PHY);
    eval 'sub AR5K_AR5210_PHY_FC () {0x9804;}' unless defined(&AR5K_AR5210_PHY_FC);
    eval 'sub AR5K_AR5210_PHY_FC_TURBO_MODE () {0x1;}' unless defined(&AR5K_AR5210_PHY_FC_TURBO_MODE);
    eval 'sub AR5K_AR5210_PHY_FC_TURBO_SHORT () {0x2;}' unless defined(&AR5K_AR5210_PHY_FC_TURBO_SHORT);
    eval 'sub AR5K_AR5210_PHY_FC_TIMING_ERR () {0x1000000;}' unless defined(&AR5K_AR5210_PHY_FC_TIMING_ERR);
    eval 'sub AR5K_AR5210_PHY_FC_PARITY_ERR () {0x2000000;}' unless defined(&AR5K_AR5210_PHY_FC_PARITY_ERR);
    eval 'sub AR5K_AR5210_PHY_FC_ILLRATE_ERR () {0x4000000;}' unless defined(&AR5K_AR5210_PHY_FC_ILLRATE_ERR);
    eval 'sub AR5K_AR5210_PHY_FC_ILLLEN_ERR () {0x8000000;}' unless defined(&AR5K_AR5210_PHY_FC_ILLLEN_ERR);
    eval 'sub AR5K_AR5210_PHY_FC_SERVICE_ERR () {0x20000000;}' unless defined(&AR5K_AR5210_PHY_FC_SERVICE_ERR);
    eval 'sub AR5K_AR5210_PHY_FC_TXURN_ERR () {0x40000000;}' unless defined(&AR5K_AR5210_PHY_FC_TXURN_ERR);
    eval 'sub AR5K_AR5210_PHY_AGC () {0x9808;}' unless defined(&AR5K_AR5210_PHY_AGC);
    eval 'sub AR5K_AR5210_PHY_AGC_DISABLE () {0x8000000;}' unless defined(&AR5K_AR5210_PHY_AGC_DISABLE);
    eval 'sub AR5K_AR5210_PHY_CHIP_ID () {0x9818;}' unless defined(&AR5K_AR5210_PHY_CHIP_ID);
    eval 'sub AR5K_AR5210_PHY_ACTIVE () {0x981c;}' unless defined(&AR5K_AR5210_PHY_ACTIVE);
    eval 'sub AR5K_AR5210_PHY_ENABLE () {0x1;}' unless defined(&AR5K_AR5210_PHY_ENABLE);
    eval 'sub AR5K_AR5210_PHY_DISABLE () {0x2;}' unless defined(&AR5K_AR5210_PHY_DISABLE);
    eval 'sub AR5K_AR5210_PHY_SIG () {0x9858;}' unless defined(&AR5K_AR5210_PHY_SIG);
    eval 'sub AR5K_AR5210_PHY_SIG_FIRSTEP () {0x3f000;}' unless defined(&AR5K_AR5210_PHY_SIG_FIRSTEP);
    eval 'sub AR5K_AR5210_PHY_SIG_FIRSTEP_S () {12;}' unless defined(&AR5K_AR5210_PHY_SIG_FIRSTEP_S);
    eval 'sub AR5K_AR5210_PHY_SIG_FIRPWR () {0x3fc0000;}' unless defined(&AR5K_AR5210_PHY_SIG_FIRPWR);
    eval 'sub AR5K_AR5210_PHY_SIG_FIRPWR_S () {18;}' unless defined(&AR5K_AR5210_PHY_SIG_FIRPWR_S);
    eval 'sub AR5K_AR5210_PHY_AGCCOARSE () {0x985c;}' unless defined(&AR5K_AR5210_PHY_AGCCOARSE);
    eval 'sub AR5K_AR5210_PHY_AGCCOARSE_LO () {0x7f80;}' unless defined(&AR5K_AR5210_PHY_AGCCOARSE_LO);
    eval 'sub AR5K_AR5210_PHY_AGCCOARSE_LO_S () {7;}' unless defined(&AR5K_AR5210_PHY_AGCCOARSE_LO_S);
    eval 'sub AR5K_AR5210_PHY_AGCCOARSE_HI () {0x3f8000;}' unless defined(&AR5K_AR5210_PHY_AGCCOARSE_HI);
    eval 'sub AR5K_AR5210_PHY_AGCCOARSE_HI_S () {15;}' unless defined(&AR5K_AR5210_PHY_AGCCOARSE_HI_S);
    eval 'sub AR5K_AR5210_PHY_AGCCTL () {0x9860;}' unless defined(&AR5K_AR5210_PHY_AGCCTL);
    eval 'sub AR5K_AR5210_PHY_AGCCTL_CAL () {0x1;}' unless defined(&AR5K_AR5210_PHY_AGCCTL_CAL);
    eval 'sub AR5K_AR5210_PHY_AGCCTL_NF () {0x2;}' unless defined(&AR5K_AR5210_PHY_AGCCTL_NF);
    eval 'sub AR5K_AR5210_PHY_NF () {0x9864;}' unless defined(&AR5K_AR5210_PHY_NF);
    eval 'sub AR5K_AR5210_PHY_NF_M () {0x1ff;}' unless defined(&AR5K_AR5210_PHY_NF_M);
    eval 'sub AR5K_AR5210_PHY_NF_ACTIVE () {0x100;}' unless defined(&AR5K_AR5210_PHY_NF_ACTIVE);
    eval 'sub AR5K_AR5210_PHY_NF_RVAL {
        my($_n) = @_;
	    eval q(((($_n) >> 19) &  &AR5K_AR5210_PHY_NF_M));
    }' unless defined(&AR5K_AR5210_PHY_NF_RVAL);
    eval 'sub AR5K_AR5210_PHY_NF_AVAL {
        my($_n) = @_;
	    eval q((-(($_n) ^  &AR5K_AR5210_PHY_NF_M) + 1));
    }' unless defined(&AR5K_AR5210_PHY_NF_AVAL);
    eval 'sub AR5K_AR5210_PHY_ADCSAT () {0x9868;}' unless defined(&AR5K_AR5210_PHY_ADCSAT);
    eval 'sub AR5K_AR5210_PHY_ADCSAT_ICNT () {0x1f800;}' unless defined(&AR5K_AR5210_PHY_ADCSAT_ICNT);
    eval 'sub AR5K_AR5210_PHY_ADCSAT_ICNT_S () {11;}' unless defined(&AR5K_AR5210_PHY_ADCSAT_ICNT_S);
    eval 'sub AR5K_AR5210_PHY_ADCSAT_THR () {0x7e0;}' unless defined(&AR5K_AR5210_PHY_ADCSAT_THR);
    eval 'sub AR5K_AR5210_PHY_ADCSAT_THR_S () {5;}' unless defined(&AR5K_AR5210_PHY_ADCSAT_THR_S);
    eval 'sub AR5K_AR5210_PHY_RFSTG () {0x98d4;}' unless defined(&AR5K_AR5210_PHY_RFSTG);
    eval 'sub AR5K_AR5210_PHY_RFSTG_DISABLE () {0x21;}' unless defined(&AR5K_AR5210_PHY_RFSTG_DISABLE);
    eval 'sub AR5K_AR5210_BB_GAIN {
        my($_n) = @_;
	    eval q((0x9b00 + (($_n) << 2)));
    }' unless defined(&AR5K_AR5210_BB_GAIN);
    eval 'sub AR5K_AR5210_RF_GAIN {
        my($_n) = @_;
	    eval q((0x9a00 + (($_n) << 2)));
    }' unless defined(&AR5K_AR5210_RF_GAIN);
}
1;
