require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__HIFN_H__)) {
    eval 'sub __HIFN_H__ () {1;}' unless defined(&__HIFN_H__);
    require 'machine/endian.ph';
    eval 'sub HIFN_BAR0 () {( &PCI_MAPREG_START + 0);}' unless defined(&HIFN_BAR0);
    eval 'sub HIFN_BAR1 () {( &PCI_MAPREG_START + 4);}' unless defined(&HIFN_BAR1);
    eval 'sub HIFN_RETRY_TIMEOUT () {0x41;}' unless defined(&HIFN_RETRY_TIMEOUT);
    eval 'sub HIFN_TRDY_TIMEOUT () {0x40;}' unless defined(&HIFN_TRDY_TIMEOUT);
    eval 'sub HIFN_MAX_COMMAND () {(8+ 8+ 8+ 64+ 260);}' unless defined(&HIFN_MAX_COMMAND);
    eval 'sub HIFN_MAX_RESULT () {(8+ 4+ 4+ 20+ 4);}' unless defined(&HIFN_MAX_RESULT);
    eval 'sub HIFN_D_LENGTH () {0xffff;}' unless defined(&HIFN_D_LENGTH);
    eval 'sub HIFN_D_MASKDONEIRQ () {0x2000000;}' unless defined(&HIFN_D_MASKDONEIRQ);
    eval 'sub HIFN_D_DESTOVER () {0x4000000;}' unless defined(&HIFN_D_DESTOVER);
    eval 'sub HIFN_D_OVER () {0x8000000;}' unless defined(&HIFN_D_OVER);
    eval 'sub HIFN_D_LAST () {0x20000000;}' unless defined(&HIFN_D_LAST);
    eval 'sub HIFN_D_JUMP () {0x40000000;}' unless defined(&HIFN_D_JUMP);
    eval 'sub HIFN_D_VALID () {0x80000000;}' unless defined(&HIFN_D_VALID);
    eval 'sub HIFN_0_PUDATA () {0x;}' unless defined(&HIFN_0_PUDATA);
    eval 'sub HIFN_0_PUCTRL () {0x4;}' unless defined(&HIFN_0_PUCTRL);
    eval 'sub HIFN_0_PUISR () {0x8;}' unless defined(&HIFN_0_PUISR);
    eval 'sub HIFN_0_PUCNFG () {0xc;}' unless defined(&HIFN_0_PUCNFG);
    eval 'sub HIFN_0_PUIER () {0x10;}' unless defined(&HIFN_0_PUIER);
    eval 'sub HIFN_0_PUSTAT () {0x14;}' unless defined(&HIFN_0_PUSTAT);
    eval 'sub HIFN_0_FIFOSTAT () {0x18;}' unless defined(&HIFN_0_FIFOSTAT);
    eval 'sub HIFN_0_FIFOCNFG () {0x1c;}' unless defined(&HIFN_0_FIFOCNFG);
    eval 'sub HIFN_0_SPACESIZE () {0x20;}' unless defined(&HIFN_0_SPACESIZE);
    eval 'sub HIFN_PUCTRL_CLRSRCFIFO () {0x10;}' unless defined(&HIFN_PUCTRL_CLRSRCFIFO);
    eval 'sub HIFN_PUCTRL_STOP () {0x8;}' unless defined(&HIFN_PUCTRL_STOP);
    eval 'sub HIFN_PUCTRL_LOCKRAM () {0x4;}' unless defined(&HIFN_PUCTRL_LOCKRAM);
    eval 'sub HIFN_PUCTRL_DMAENA () {0x2;}' unless defined(&HIFN_PUCTRL_DMAENA);
    eval 'sub HIFN_PUCTRL_RESET () {0x1;}' unless defined(&HIFN_PUCTRL_RESET);
    eval 'sub HIFN_PUISR_CMDINVAL () {0x8000;}' unless defined(&HIFN_PUISR_CMDINVAL);
    eval 'sub HIFN_PUISR_DATAERR () {0x4000;}' unless defined(&HIFN_PUISR_DATAERR);
    eval 'sub HIFN_PUISR_SRCFIFO () {0x2000;}' unless defined(&HIFN_PUISR_SRCFIFO);
    eval 'sub HIFN_PUISR_DSTFIFO () {0x1000;}' unless defined(&HIFN_PUISR_DSTFIFO);
    eval 'sub HIFN_PUISR_DSTOVER () {0x200;}' unless defined(&HIFN_PUISR_DSTOVER);
    eval 'sub HIFN_PUISR_SRCCMD () {0x80;}' unless defined(&HIFN_PUISR_SRCCMD);
    eval 'sub HIFN_PUISR_SRCCTX () {0x40;}' unless defined(&HIFN_PUISR_SRCCTX);
    eval 'sub HIFN_PUISR_SRCDATA () {0x20;}' unless defined(&HIFN_PUISR_SRCDATA);
    eval 'sub HIFN_PUISR_DSTDATA () {0x10;}' unless defined(&HIFN_PUISR_DSTDATA);
    eval 'sub HIFN_PUISR_DSTRESULT () {0x4;}' unless defined(&HIFN_PUISR_DSTRESULT);
    eval 'sub HIFN_PUCNFG_DRAMMASK () {0xe000;}' unless defined(&HIFN_PUCNFG_DRAMMASK);
    eval 'sub HIFN_PUCNFG_DSZ_256K () {0x;}' unless defined(&HIFN_PUCNFG_DSZ_256K);
    eval 'sub HIFN_PUCNFG_DSZ_512K () {0x2000;}' unless defined(&HIFN_PUCNFG_DSZ_512K);
    eval 'sub HIFN_PUCNFG_DSZ_1M () {0x4000;}' unless defined(&HIFN_PUCNFG_DSZ_1M);
    eval 'sub HIFN_PUCNFG_DSZ_2M () {0x6000;}' unless defined(&HIFN_PUCNFG_DSZ_2M);
    eval 'sub HIFN_PUCNFG_DSZ_4M () {0x8000;}' unless defined(&HIFN_PUCNFG_DSZ_4M);
    eval 'sub HIFN_PUCNFG_DSZ_8M () {0xa000;}' unless defined(&HIFN_PUCNFG_DSZ_8M);
    eval 'sub HIFN_PUNCFG_DSZ_16M () {0xc000;}' unless defined(&HIFN_PUNCFG_DSZ_16M);
    eval 'sub HIFN_PUCNFG_DSZ_32M () {0xe000;}' unless defined(&HIFN_PUCNFG_DSZ_32M);
    eval 'sub HIFN_PUCNFG_DRAMREFRESH () {0x1800;}' unless defined(&HIFN_PUCNFG_DRAMREFRESH);
    eval 'sub HIFN_PUCNFG_DRFR_512 () {0x;}' unless defined(&HIFN_PUCNFG_DRFR_512);
    eval 'sub HIFN_PUCNFG_DRFR_256 () {0x800;}' unless defined(&HIFN_PUCNFG_DRFR_256);
    eval 'sub HIFN_PUCNFG_DRFR_128 () {0x1000;}' unless defined(&HIFN_PUCNFG_DRFR_128);
    eval 'sub HIFN_PUCNFG_TCALLPHASES () {0x200;}' unless defined(&HIFN_PUCNFG_TCALLPHASES);
    eval 'sub HIFN_PUCNFG_TCDRVTOTEM () {0x100;}' unless defined(&HIFN_PUCNFG_TCDRVTOTEM);
    eval 'sub HIFN_PUCNFG_BIGENDIAN () {0x80;}' unless defined(&HIFN_PUCNFG_BIGENDIAN);
    eval 'sub HIFN_PUCNFG_BUS32 () {0x40;}' unless defined(&HIFN_PUCNFG_BUS32);
    eval 'sub HIFN_PUCNFG_BUS16 () {0x;}' unless defined(&HIFN_PUCNFG_BUS16);
    eval 'sub HIFN_PUCNFG_CHIPID () {0x20;}' unless defined(&HIFN_PUCNFG_CHIPID);
    eval 'sub HIFN_PUCNFG_DRAM () {0x10;}' unless defined(&HIFN_PUCNFG_DRAM);
    eval 'sub HIFN_PUCNFG_SRAM () {0x;}' unless defined(&HIFN_PUCNFG_SRAM);
    eval 'sub HIFN_PUCNFG_COMPSING () {0x4;}' unless defined(&HIFN_PUCNFG_COMPSING);
    eval 'sub HIFN_PUCNFG_ENCCNFG () {0x2;}' unless defined(&HIFN_PUCNFG_ENCCNFG);
    eval 'sub HIFN_PUIER_CMDINVAL () {0x8000;}' unless defined(&HIFN_PUIER_CMDINVAL);
    eval 'sub HIFN_PUIER_DATAERR () {0x4000;}' unless defined(&HIFN_PUIER_DATAERR);
    eval 'sub HIFN_PUIER_SRCFIFO () {0x2000;}' unless defined(&HIFN_PUIER_SRCFIFO);
    eval 'sub HIFN_PUIER_DSTFIFO () {0x1000;}' unless defined(&HIFN_PUIER_DSTFIFO);
    eval 'sub HIFN_PUIER_DSTOVER () {0x200;}' unless defined(&HIFN_PUIER_DSTOVER);
    eval 'sub HIFN_PUIER_SRCCMD () {0x80;}' unless defined(&HIFN_PUIER_SRCCMD);
    eval 'sub HIFN_PUIER_SRCCTX () {0x40;}' unless defined(&HIFN_PUIER_SRCCTX);
    eval 'sub HIFN_PUIER_SRCDATA () {0x20;}' unless defined(&HIFN_PUIER_SRCDATA);
    eval 'sub HIFN_PUIER_DSTDATA () {0x10;}' unless defined(&HIFN_PUIER_DSTDATA);
    eval 'sub HIFN_PUIER_DSTRESULT () {0x4;}' unless defined(&HIFN_PUIER_DSTRESULT);
    eval 'sub HIFN_PUSTAT_CMDINVAL () {0x8000;}' unless defined(&HIFN_PUSTAT_CMDINVAL);
    eval 'sub HIFN_PUSTAT_DATAERR () {0x4000;}' unless defined(&HIFN_PUSTAT_DATAERR);
    eval 'sub HIFN_PUSTAT_SRCFIFO () {0x2000;}' unless defined(&HIFN_PUSTAT_SRCFIFO);
    eval 'sub HIFN_PUSTAT_DSTFIFO () {0x1000;}' unless defined(&HIFN_PUSTAT_DSTFIFO);
    eval 'sub HIFN_PUSTAT_DSTOVER () {0x200;}' unless defined(&HIFN_PUSTAT_DSTOVER);
    eval 'sub HIFN_PUSTAT_SRCCMD () {0x80;}' unless defined(&HIFN_PUSTAT_SRCCMD);
    eval 'sub HIFN_PUSTAT_SRCCTX () {0x40;}' unless defined(&HIFN_PUSTAT_SRCCTX);
    eval 'sub HIFN_PUSTAT_SRCDATA () {0x20;}' unless defined(&HIFN_PUSTAT_SRCDATA);
    eval 'sub HIFN_PUSTAT_DSTDATA () {0x10;}' unless defined(&HIFN_PUSTAT_DSTDATA);
    eval 'sub HIFN_PUSTAT_DSTRESULT () {0x4;}' unless defined(&HIFN_PUSTAT_DSTRESULT);
    eval 'sub HIFN_PUSTAT_CHIPREV () {0xff;}' unless defined(&HIFN_PUSTAT_CHIPREV);
    eval 'sub HIFN_PUSTAT_CHIPENA () {0xff00;}' unless defined(&HIFN_PUSTAT_CHIPENA);
    eval 'sub HIFN_PUSTAT_ENA_2 () {0x1100;}' unless defined(&HIFN_PUSTAT_ENA_2);
    eval 'sub HIFN_PUSTAT_ENA_1 () {0x1000;}' unless defined(&HIFN_PUSTAT_ENA_1);
    eval 'sub HIFN_PUSTAT_ENA_0 () {0x3000;}' unless defined(&HIFN_PUSTAT_ENA_0);
    eval 'sub HIFN_PUSTAT_REV_2 () {0x20;}' unless defined(&HIFN_PUSTAT_REV_2);
    eval 'sub HIFN_PUSTAT_REV_3 () {0x30;}' unless defined(&HIFN_PUSTAT_REV_3);
    eval 'sub HIFN_FIFOSTAT_SRC () {0x7f00;}' unless defined(&HIFN_FIFOSTAT_SRC);
    eval 'sub HIFN_FIFOSTAT_DST () {0x7f;}' unless defined(&HIFN_FIFOSTAT_DST);
    eval 'sub HIFN_FIFOCNFG_THRESHOLD () {0x400;}' unless defined(&HIFN_FIFOCNFG_THRESHOLD);
    eval 'sub HIFN_1_DMA_CRAR () {0xc;}' unless defined(&HIFN_1_DMA_CRAR);
    eval 'sub HIFN_1_DMA_SRAR () {0x1c;}' unless defined(&HIFN_1_DMA_SRAR);
    eval 'sub HIFN_1_DMA_RRAR () {0x2c;}' unless defined(&HIFN_1_DMA_RRAR);
    eval 'sub HIFN_1_DMA_DRAR () {0x3c;}' unless defined(&HIFN_1_DMA_DRAR);
    eval 'sub HIFN_1_DMA_CSR () {0x40;}' unless defined(&HIFN_1_DMA_CSR);
    eval 'sub HIFN_1_DMA_IER () {0x44;}' unless defined(&HIFN_1_DMA_IER);
    eval 'sub HIFN_1_DMA_CNFG () {0x48;}' unless defined(&HIFN_1_DMA_CNFG);
    eval 'sub HIFN_1_PLL () {0x4c;}' unless defined(&HIFN_1_PLL);
    eval 'sub HIFN_1_7811_RNGENA () {0x60;}' unless defined(&HIFN_1_7811_RNGENA);
    eval 'sub HIFN_1_7811_RNGCFG () {0x64;}' unless defined(&HIFN_1_7811_RNGCFG);
    eval 'sub HIFN_1_7811_RNGDAT () {0x68;}' unless defined(&HIFN_1_7811_RNGDAT);
    eval 'sub HIFN_1_7811_RNGSTS () {0x6c;}' unless defined(&HIFN_1_7811_RNGSTS);
    eval 'sub HIFN_1_7811_MIPSRST () {0x94;}' unless defined(&HIFN_1_7811_MIPSRST);
    eval 'sub HIFN_1_REVID () {0x98;}' unless defined(&HIFN_1_REVID);
    eval 'sub HIFN_1_UNLOCK_SECRET1 () {0xf4;}' unless defined(&HIFN_1_UNLOCK_SECRET1);
    eval 'sub HIFN_1_UNLOCK_SECRET2 () {0xfc;}' unless defined(&HIFN_1_UNLOCK_SECRET2);
    eval 'sub HIFN_1_PUB_RESET () {0x204;}' unless defined(&HIFN_1_PUB_RESET);
    eval 'sub HIFN_1_PUB_BASE () {0x300;}' unless defined(&HIFN_1_PUB_BASE);
    eval 'sub HIFN_1_PUB_OPLEN () {0x304;}' unless defined(&HIFN_1_PUB_OPLEN);
    eval 'sub HIFN_1_PUB_OP () {0x308;}' unless defined(&HIFN_1_PUB_OP);
    eval 'sub HIFN_1_PUB_STATUS () {0x30c;}' unless defined(&HIFN_1_PUB_STATUS);
    eval 'sub HIFN_1_PUB_IEN () {0x310;}' unless defined(&HIFN_1_PUB_IEN);
    eval 'sub HIFN_1_RNG_CONFIG () {0x314;}' unless defined(&HIFN_1_RNG_CONFIG);
    eval 'sub HIFN_1_RNG_DATA () {0x318;}' unless defined(&HIFN_1_RNG_DATA);
    eval 'sub HIFN_1_PUB_MEM () {0x400;}' unless defined(&HIFN_1_PUB_MEM);
    eval 'sub HIFN_1_PUB_MEMEND () {0xbff;}' unless defined(&HIFN_1_PUB_MEMEND);
    eval 'sub HIFN_DMACSR_D_CTRLMASK () {0xc0000000;}' unless defined(&HIFN_DMACSR_D_CTRLMASK);
    eval 'sub HIFN_DMACSR_D_CTRL_NOP () {0x;}' unless defined(&HIFN_DMACSR_D_CTRL_NOP);
    eval 'sub HIFN_DMACSR_D_CTRL_DIS () {0x40000000;}' unless defined(&HIFN_DMACSR_D_CTRL_DIS);
    eval 'sub HIFN_DMACSR_D_CTRL_ENA () {0x80000000;}' unless defined(&HIFN_DMACSR_D_CTRL_ENA);
    eval 'sub HIFN_DMACSR_D_ABORT () {0x20000000;}' unless defined(&HIFN_DMACSR_D_ABORT);
    eval 'sub HIFN_DMACSR_D_DONE () {0x10000000;}' unless defined(&HIFN_DMACSR_D_DONE);
    eval 'sub HIFN_DMACSR_D_LAST () {0x8000000;}' unless defined(&HIFN_DMACSR_D_LAST);
    eval 'sub HIFN_DMACSR_D_WAIT () {0x4000000;}' unless defined(&HIFN_DMACSR_D_WAIT);
    eval 'sub HIFN_DMACSR_D_OVER () {0x2000000;}' unless defined(&HIFN_DMACSR_D_OVER);
    eval 'sub HIFN_DMACSR_R_CTRL () {0xc00000;}' unless defined(&HIFN_DMACSR_R_CTRL);
    eval 'sub HIFN_DMACSR_R_CTRL_NOP () {0x;}' unless defined(&HIFN_DMACSR_R_CTRL_NOP);
    eval 'sub HIFN_DMACSR_R_CTRL_DIS () {0x400000;}' unless defined(&HIFN_DMACSR_R_CTRL_DIS);
    eval 'sub HIFN_DMACSR_R_CTRL_ENA () {0x800000;}' unless defined(&HIFN_DMACSR_R_CTRL_ENA);
    eval 'sub HIFN_DMACSR_R_ABORT () {0x200000;}' unless defined(&HIFN_DMACSR_R_ABORT);
    eval 'sub HIFN_DMACSR_R_DONE () {0x100000;}' unless defined(&HIFN_DMACSR_R_DONE);
    eval 'sub HIFN_DMACSR_R_LAST () {0x80000;}' unless defined(&HIFN_DMACSR_R_LAST);
    eval 'sub HIFN_DMACSR_R_WAIT () {0x40000;}' unless defined(&HIFN_DMACSR_R_WAIT);
    eval 'sub HIFN_DMACSR_R_OVER () {0x20000;}' unless defined(&HIFN_DMACSR_R_OVER);
    eval 'sub HIFN_DMACSR_S_CTRL () {0xc000;}' unless defined(&HIFN_DMACSR_S_CTRL);
    eval 'sub HIFN_DMACSR_S_CTRL_NOP () {0x;}' unless defined(&HIFN_DMACSR_S_CTRL_NOP);
    eval 'sub HIFN_DMACSR_S_CTRL_DIS () {0x4000;}' unless defined(&HIFN_DMACSR_S_CTRL_DIS);
    eval 'sub HIFN_DMACSR_S_CTRL_ENA () {0x8000;}' unless defined(&HIFN_DMACSR_S_CTRL_ENA);
    eval 'sub HIFN_DMACSR_S_ABORT () {0x2000;}' unless defined(&HIFN_DMACSR_S_ABORT);
    eval 'sub HIFN_DMACSR_S_DONE () {0x1000;}' unless defined(&HIFN_DMACSR_S_DONE);
    eval 'sub HIFN_DMACSR_S_LAST () {0x800;}' unless defined(&HIFN_DMACSR_S_LAST);
    eval 'sub HIFN_DMACSR_S_WAIT () {0x400;}' unless defined(&HIFN_DMACSR_S_WAIT);
    eval 'sub HIFN_DMACSR_ILLW () {0x200;}' unless defined(&HIFN_DMACSR_ILLW);
    eval 'sub HIFN_DMACSR_ILLR () {0x100;}' unless defined(&HIFN_DMACSR_ILLR);
    eval 'sub HIFN_DMACSR_C_CTRL () {0xc0;}' unless defined(&HIFN_DMACSR_C_CTRL);
    eval 'sub HIFN_DMACSR_C_CTRL_NOP () {0x;}' unless defined(&HIFN_DMACSR_C_CTRL_NOP);
    eval 'sub HIFN_DMACSR_C_CTRL_DIS () {0x40;}' unless defined(&HIFN_DMACSR_C_CTRL_DIS);
    eval 'sub HIFN_DMACSR_C_CTRL_ENA () {0x80;}' unless defined(&HIFN_DMACSR_C_CTRL_ENA);
    eval 'sub HIFN_DMACSR_C_ABORT () {0x20;}' unless defined(&HIFN_DMACSR_C_ABORT);
    eval 'sub HIFN_DMACSR_C_DONE () {0x10;}' unless defined(&HIFN_DMACSR_C_DONE);
    eval 'sub HIFN_DMACSR_C_LAST () {0x8;}' unless defined(&HIFN_DMACSR_C_LAST);
    eval 'sub HIFN_DMACSR_C_WAIT () {0x4;}' unless defined(&HIFN_DMACSR_C_WAIT);
    eval 'sub HIFN_DMACSR_PUBDONE () {0x2;}' unless defined(&HIFN_DMACSR_PUBDONE);
    eval 'sub HIFN_DMACSR_ENGINE () {0x1;}' unless defined(&HIFN_DMACSR_ENGINE);
    eval 'sub HIFN_DMAIER_D_ABORT () {0x20000000;}' unless defined(&HIFN_DMAIER_D_ABORT);
    eval 'sub HIFN_DMAIER_D_DONE () {0x10000000;}' unless defined(&HIFN_DMAIER_D_DONE);
    eval 'sub HIFN_DMAIER_D_LAST () {0x8000000;}' unless defined(&HIFN_DMAIER_D_LAST);
    eval 'sub HIFN_DMAIER_D_WAIT () {0x4000000;}' unless defined(&HIFN_DMAIER_D_WAIT);
    eval 'sub HIFN_DMAIER_D_OVER () {0x2000000;}' unless defined(&HIFN_DMAIER_D_OVER);
    eval 'sub HIFN_DMAIER_R_ABORT () {0x200000;}' unless defined(&HIFN_DMAIER_R_ABORT);
    eval 'sub HIFN_DMAIER_R_DONE () {0x100000;}' unless defined(&HIFN_DMAIER_R_DONE);
    eval 'sub HIFN_DMAIER_R_LAST () {0x80000;}' unless defined(&HIFN_DMAIER_R_LAST);
    eval 'sub HIFN_DMAIER_R_WAIT () {0x40000;}' unless defined(&HIFN_DMAIER_R_WAIT);
    eval 'sub HIFN_DMAIER_R_OVER () {0x20000;}' unless defined(&HIFN_DMAIER_R_OVER);
    eval 'sub HIFN_DMAIER_S_ABORT () {0x2000;}' unless defined(&HIFN_DMAIER_S_ABORT);
    eval 'sub HIFN_DMAIER_S_DONE () {0x1000;}' unless defined(&HIFN_DMAIER_S_DONE);
    eval 'sub HIFN_DMAIER_S_LAST () {0x800;}' unless defined(&HIFN_DMAIER_S_LAST);
    eval 'sub HIFN_DMAIER_S_WAIT () {0x400;}' unless defined(&HIFN_DMAIER_S_WAIT);
    eval 'sub HIFN_DMAIER_ILLW () {0x200;}' unless defined(&HIFN_DMAIER_ILLW);
    eval 'sub HIFN_DMAIER_ILLR () {0x100;}' unless defined(&HIFN_DMAIER_ILLR);
    eval 'sub HIFN_DMAIER_C_ABORT () {0x20;}' unless defined(&HIFN_DMAIER_C_ABORT);
    eval 'sub HIFN_DMAIER_C_DONE () {0x10;}' unless defined(&HIFN_DMAIER_C_DONE);
    eval 'sub HIFN_DMAIER_C_LAST () {0x8;}' unless defined(&HIFN_DMAIER_C_LAST);
    eval 'sub HIFN_DMAIER_C_WAIT () {0x4;}' unless defined(&HIFN_DMAIER_C_WAIT);
    eval 'sub HIFN_DMAIER_PUBDONE () {0x2;}' unless defined(&HIFN_DMAIER_PUBDONE);
    eval 'sub HIFN_DMAIER_ENGINE () {0x1;}' unless defined(&HIFN_DMAIER_ENGINE);
    eval 'sub HIFN_DMACNFG_BIGENDIAN () {0x10000000;}' unless defined(&HIFN_DMACNFG_BIGENDIAN);
    eval 'sub HIFN_DMACNFG_POLLFREQ () {0xff0000;}' unless defined(&HIFN_DMACNFG_POLLFREQ);
    eval 'sub HIFN_DMACNFG_UNLOCK () {0x800;}' unless defined(&HIFN_DMACNFG_UNLOCK);
    eval 'sub HIFN_DMACNFG_POLLINVAL () {0x700;}' unless defined(&HIFN_DMACNFG_POLLINVAL);
    eval 'sub HIFN_DMACNFG_LAST () {0x10;}' unless defined(&HIFN_DMACNFG_LAST);
    eval 'sub HIFN_DMACNFG_MODE () {0x4;}' unless defined(&HIFN_DMACNFG_MODE);
    eval 'sub HIFN_DMACNFG_DMARESET () {0x2;}' unless defined(&HIFN_DMACNFG_DMARESET);
    eval 'sub HIFN_DMACNFG_MSTRESET () {0x1;}' unless defined(&HIFN_DMACNFG_MSTRESET);
    eval 'sub HIFN_7811_RNGENA_ENA () {0x1;}' unless defined(&HIFN_7811_RNGENA_ENA);
    eval 'sub HIFN_7811_RNGCFG_PRE1 () {0xf00;}' unless defined(&HIFN_7811_RNGCFG_PRE1);
    eval 'sub HIFN_7811_RNGCFG_OPRE () {0x80;}' unless defined(&HIFN_7811_RNGCFG_OPRE);
    eval 'sub HIFN_7811_RNGCFG_DEFL () {0xf80;}' unless defined(&HIFN_7811_RNGCFG_DEFL);
    eval 'sub HIFN_7811_RNGSTS_RDY () {0x4000;}' unless defined(&HIFN_7811_RNGSTS_RDY);
    eval 'sub HIFN_7811_RNGSTS_UFL () {0x1000;}' unless defined(&HIFN_7811_RNGSTS_UFL);
    eval 'sub HIFN_MIPSRST_BAR2SIZE () {0xffff0000;}' unless defined(&HIFN_MIPSRST_BAR2SIZE);
    eval 'sub HIFN_MIPSRST_GPRAMINIT () {0x8000;}' unless defined(&HIFN_MIPSRST_GPRAMINIT);
    eval 'sub HIFN_MIPSRST_CRAMINIT () {0x4000;}' unless defined(&HIFN_MIPSRST_CRAMINIT);
    eval 'sub HIFN_MIPSRST_LED2 () {0x400;}' unless defined(&HIFN_MIPSRST_LED2);
    eval 'sub HIFN_MIPSRST_LED1 () {0x200;}' unless defined(&HIFN_MIPSRST_LED1);
    eval 'sub HIFN_MIPSRST_LED0 () {0x100;}' unless defined(&HIFN_MIPSRST_LED0);
    eval 'sub HIFN_MIPSRST_MIPSDIS () {0x4;}' unless defined(&HIFN_MIPSRST_MIPSDIS);
    eval 'sub HIFN_MIPSRST_MIPSRST () {0x2;}' unless defined(&HIFN_MIPSRST_MIPSRST);
    eval 'sub HIFN_MIPSRST_MIPSCOLD () {0x1;}' unless defined(&HIFN_MIPSRST_MIPSCOLD);
    eval 'sub HIFN_PLL_7956 () {0x1d18;}' unless defined(&HIFN_PLL_7956);
    eval 'sub HIFN_REVID_7811_PB3_2 () {0x2;}' unless defined(&HIFN_REVID_7811_PB3_2);
    eval 'sub HIFN_PUBRST_RESET () {0x1;}' unless defined(&HIFN_PUBRST_RESET);
    eval 'sub HIFN_PUBBASE_ADDR () {0x3fff;}' unless defined(&HIFN_PUBBASE_ADDR);
    eval 'sub HIFN_PUBOPLEN_MOD_M () {0x7f;}' unless defined(&HIFN_PUBOPLEN_MOD_M);
    eval 'sub HIFN_PUBOPLEN_MOD_S () {0;}' unless defined(&HIFN_PUBOPLEN_MOD_S);
    eval 'sub HIFN_PUBOPLEN_EXP_M () {0x3ff80;}' unless defined(&HIFN_PUBOPLEN_EXP_M);
    eval 'sub HIFN_PUBOPLEN_EXP_S () {7;}' unless defined(&HIFN_PUBOPLEN_EXP_S);
    eval 'sub HIFN_PUBOPLEN_RED_M () {0x3c0000;}' unless defined(&HIFN_PUBOPLEN_RED_M);
    eval 'sub HIFN_PUBOPLEN_RED_S () {18;}' unless defined(&HIFN_PUBOPLEN_RED_S);
    eval 'sub HIFN_PUBOP_AOFFSET_M () {0x7f;}' unless defined(&HIFN_PUBOP_AOFFSET_M);
    eval 'sub HIFN_PUBOP_AOFFSET_S () {0;}' unless defined(&HIFN_PUBOP_AOFFSET_S);
    eval 'sub HIFN_PUBOP_BOFFSET_M () {0xf80;}' unless defined(&HIFN_PUBOP_BOFFSET_M);
    eval 'sub HIFN_PUBOP_BOFFSET_S () {7;}' unless defined(&HIFN_PUBOP_BOFFSET_S);
    eval 'sub HIFN_PUBOP_MOFFSET_M () {0x3f000;}' unless defined(&HIFN_PUBOP_MOFFSET_M);
    eval 'sub HIFN_PUBOP_MOFFSET_S () {12;}' unless defined(&HIFN_PUBOP_MOFFSET_S);
    eval 'sub HIFN_PUBOP_OP_MASK () {0x3c0000;}' unless defined(&HIFN_PUBOP_OP_MASK);
    eval 'sub HIFN_PUBOP_OP_NOP () {0x;}' unless defined(&HIFN_PUBOP_OP_NOP);
    eval 'sub HIFN_PUBOP_OP_ADD () {0x40000;}' unless defined(&HIFN_PUBOP_OP_ADD);
    eval 'sub HIFN_PUBOP_OP_ADDC () {0x80000;}' unless defined(&HIFN_PUBOP_OP_ADDC);
    eval 'sub HIFN_PUBOP_OP_SUB () {0xc0000;}' unless defined(&HIFN_PUBOP_OP_SUB);
    eval 'sub HIFN_PUBOP_OP_SUBC () {0x100000;}' unless defined(&HIFN_PUBOP_OP_SUBC);
    eval 'sub HIFN_PUBOP_OP_MODADD () {0x140000;}' unless defined(&HIFN_PUBOP_OP_MODADD);
    eval 'sub HIFN_PUBOP_OP_MODSUB () {0x180000;}' unless defined(&HIFN_PUBOP_OP_MODSUB);
    eval 'sub HIFN_PUBOP_OP_INCA () {0x1c0000;}' unless defined(&HIFN_PUBOP_OP_INCA);
    eval 'sub HIFN_PUBOP_OP_DECA () {0x200000;}' unless defined(&HIFN_PUBOP_OP_DECA);
    eval 'sub HIFN_PUBOP_OP_MULT () {0x240000;}' unless defined(&HIFN_PUBOP_OP_MULT);
    eval 'sub HIFN_PUBOP_OP_MODMULT () {0x280000;}' unless defined(&HIFN_PUBOP_OP_MODMULT);
    eval 'sub HIFN_PUBOP_OP_MODRED () {0x2c0000;}' unless defined(&HIFN_PUBOP_OP_MODRED);
    eval 'sub HIFN_PUBOP_OP_MODEXP () {0x300000;}' unless defined(&HIFN_PUBOP_OP_MODEXP);
    eval 'sub HIFN_PUBSTS_DONE () {0x1;}' unless defined(&HIFN_PUBSTS_DONE);
    eval 'sub HIFN_PUBSTS_CARRY () {0x2;}' unless defined(&HIFN_PUBSTS_CARRY);
    eval 'sub HIFN_PUBIEN_DONE () {0x1;}' unless defined(&HIFN_PUBIEN_DONE);
    eval 'sub HIFN_RNGCFG_ENA () {0x1;}' unless defined(&HIFN_RNGCFG_ENA);
    eval 'sub HIFN_BASE_CMD_COMP () {0x100;}' unless defined(&HIFN_BASE_CMD_COMP);
    eval 'sub HIFN_BASE_CMD_PAD () {0x200;}' unless defined(&HIFN_BASE_CMD_PAD);
    eval 'sub HIFN_BASE_CMD_MAC () {0x400;}' unless defined(&HIFN_BASE_CMD_MAC);
    eval 'sub HIFN_BASE_CMD_CRYPT () {0x800;}' unless defined(&HIFN_BASE_CMD_CRYPT);
    eval 'sub HIFN_BASE_CMD_DECODE () {0x2000;}' unless defined(&HIFN_BASE_CMD_DECODE);
    eval 'sub HIFN_BASE_CMD_SRCLEN_M () {0xc000;}' unless defined(&HIFN_BASE_CMD_SRCLEN_M);
    eval 'sub HIFN_BASE_CMD_SRCLEN_S () {14;}' unless defined(&HIFN_BASE_CMD_SRCLEN_S);
    eval 'sub HIFN_BASE_CMD_DSTLEN_M () {0x3000;}' unless defined(&HIFN_BASE_CMD_DSTLEN_M);
    eval 'sub HIFN_BASE_CMD_DSTLEN_S () {12;}' unless defined(&HIFN_BASE_CMD_DSTLEN_S);
    eval 'sub HIFN_BASE_CMD_LENMASK_HI () {0x30000;}' unless defined(&HIFN_BASE_CMD_LENMASK_HI);
    eval 'sub HIFN_BASE_CMD_LENMASK_LO () {0xffff;}' unless defined(&HIFN_BASE_CMD_LENMASK_LO);
    eval 'sub HIFN_CRYPT_CMD_ALG_MASK () {0x3;}' unless defined(&HIFN_CRYPT_CMD_ALG_MASK);
    eval 'sub HIFN_CRYPT_CMD_ALG_DES () {0x;}' unless defined(&HIFN_CRYPT_CMD_ALG_DES);
    eval 'sub HIFN_CRYPT_CMD_ALG_3DES () {0x1;}' unless defined(&HIFN_CRYPT_CMD_ALG_3DES);
    eval 'sub HIFN_CRYPT_CMD_ALG_RC4 () {0x2;}' unless defined(&HIFN_CRYPT_CMD_ALG_RC4);
    eval 'sub HIFN_CRYPT_CMD_ALG_AES () {0x3;}' unless defined(&HIFN_CRYPT_CMD_ALG_AES);
    eval 'sub HIFN_CRYPT_CMD_MODE_MASK () {0x18;}' unless defined(&HIFN_CRYPT_CMD_MODE_MASK);
    eval 'sub HIFN_CRYPT_CMD_MODE_ECB () {0x;}' unless defined(&HIFN_CRYPT_CMD_MODE_ECB);
    eval 'sub HIFN_CRYPT_CMD_MODE_CBC () {0x8;}' unless defined(&HIFN_CRYPT_CMD_MODE_CBC);
    eval 'sub HIFN_CRYPT_CMD_MODE_CFB () {0x10;}' unless defined(&HIFN_CRYPT_CMD_MODE_CFB);
    eval 'sub HIFN_CRYPT_CMD_MODE_OFB () {0x18;}' unless defined(&HIFN_CRYPT_CMD_MODE_OFB);
    eval 'sub HIFN_CRYPT_CMD_CLR_CTX () {0x40;}' unless defined(&HIFN_CRYPT_CMD_CLR_CTX);
    eval 'sub HIFN_CRYPT_CMD_KSZ_MASK () {0x600;}' unless defined(&HIFN_CRYPT_CMD_KSZ_MASK);
    eval 'sub HIFN_CRYPT_CMD_KSZ_128 () {0x;}' unless defined(&HIFN_CRYPT_CMD_KSZ_128);
    eval 'sub HIFN_CRYPT_CMD_KSZ_192 () {0x200;}' unless defined(&HIFN_CRYPT_CMD_KSZ_192);
    eval 'sub HIFN_CRYPT_CMD_KSZ_256 () {0x400;}' unless defined(&HIFN_CRYPT_CMD_KSZ_256);
    eval 'sub HIFN_CRYPT_CMD_NEW_KEY () {0x800;}' unless defined(&HIFN_CRYPT_CMD_NEW_KEY);
    eval 'sub HIFN_CRYPT_CMD_NEW_IV () {0x1000;}' unless defined(&HIFN_CRYPT_CMD_NEW_IV);
    eval 'sub HIFN_CRYPT_CMD_SRCLEN_M () {0xc000;}' unless defined(&HIFN_CRYPT_CMD_SRCLEN_M);
    eval 'sub HIFN_CRYPT_CMD_SRCLEN_S () {14;}' unless defined(&HIFN_CRYPT_CMD_SRCLEN_S);
    eval 'sub HIFN_MAC_CMD_ALG_MASK () {0x1;}' unless defined(&HIFN_MAC_CMD_ALG_MASK);
    eval 'sub HIFN_MAC_CMD_ALG_SHA1 () {0x;}' unless defined(&HIFN_MAC_CMD_ALG_SHA1);
    eval 'sub HIFN_MAC_CMD_ALG_MD5 () {0x1;}' unless defined(&HIFN_MAC_CMD_ALG_MD5);
    eval 'sub HIFN_MAC_CMD_MODE_MASK () {0xc;}' unless defined(&HIFN_MAC_CMD_MODE_MASK);
    eval 'sub HIFN_MAC_CMD_MODE_HMAC () {0x;}' unless defined(&HIFN_MAC_CMD_MODE_HMAC);
    eval 'sub HIFN_MAC_CMD_MODE_SSL_MAC () {0x4;}' unless defined(&HIFN_MAC_CMD_MODE_SSL_MAC);
    eval 'sub HIFN_MAC_CMD_MODE_HASH () {0x8;}' unless defined(&HIFN_MAC_CMD_MODE_HASH);
    eval 'sub HIFN_MAC_CMD_MODE_FULL () {0x4;}' unless defined(&HIFN_MAC_CMD_MODE_FULL);
    eval 'sub HIFN_MAC_CMD_TRUNC () {0x10;}' unless defined(&HIFN_MAC_CMD_TRUNC);
    eval 'sub HIFN_MAC_CMD_RESULT () {0x20;}' unless defined(&HIFN_MAC_CMD_RESULT);
    eval 'sub HIFN_MAC_CMD_APPEND () {0x40;}' unless defined(&HIFN_MAC_CMD_APPEND);
    eval 'sub HIFN_MAC_CMD_SRCLEN_M () {0xc000;}' unless defined(&HIFN_MAC_CMD_SRCLEN_M);
    eval 'sub HIFN_MAC_CMD_SRCLEN_S () {14;}' unless defined(&HIFN_MAC_CMD_SRCLEN_S);
    eval 'sub HIFN_MAC_CMD_POS_IPSEC () {0x200;}' unless defined(&HIFN_MAC_CMD_POS_IPSEC);
    eval 'sub HIFN_MAC_CMD_NEW_KEY () {0x800;}' unless defined(&HIFN_MAC_CMD_NEW_KEY);
    eval 'sub HIFN_COMP_CMD_SRCLEN_M () {0xc000;}' unless defined(&HIFN_COMP_CMD_SRCLEN_M);
    eval 'sub HIFN_COMP_CMD_SRCLEN_S () {14;}' unless defined(&HIFN_COMP_CMD_SRCLEN_S);
    eval 'sub HIFN_COMP_CMD_ONE () {0x100;}' unless defined(&HIFN_COMP_CMD_ONE);
    eval 'sub HIFN_COMP_CMD_CLEARHIST () {0x10;}' unless defined(&HIFN_COMP_CMD_CLEARHIST);
    eval 'sub HIFN_COMP_CMD_UPDATEHIST () {0x8;}' unless defined(&HIFN_COMP_CMD_UPDATEHIST);
    eval 'sub HIFN_COMP_CMD_LZS_STRIP0 () {0x4;}' unless defined(&HIFN_COMP_CMD_LZS_STRIP0);
    eval 'sub HIFN_COMP_CMD_MPPC_RESTART () {0x4;}' unless defined(&HIFN_COMP_CMD_MPPC_RESTART);
    eval 'sub HIFN_COMP_CMD_ALG_MASK () {0x1;}' unless defined(&HIFN_COMP_CMD_ALG_MASK);
    eval 'sub HIFN_COMP_CMD_ALG_MPPC () {0x1;}' unless defined(&HIFN_COMP_CMD_ALG_MPPC);
    eval 'sub HIFN_COMP_CMD_ALG_LZS () {0x;}' unless defined(&HIFN_COMP_CMD_ALG_LZS);
    eval 'sub HIFN_BASE_RES_DSTOVERRUN () {0x200;}' unless defined(&HIFN_BASE_RES_DSTOVERRUN);
    eval 'sub HIFN_BASE_RES_SRCLEN_M () {0xc000;}' unless defined(&HIFN_BASE_RES_SRCLEN_M);
    eval 'sub HIFN_BASE_RES_SRCLEN_S () {14;}' unless defined(&HIFN_BASE_RES_SRCLEN_S);
    eval 'sub HIFN_BASE_RES_DSTLEN_M () {0x3000;}' unless defined(&HIFN_BASE_RES_DSTLEN_M);
    eval 'sub HIFN_BASE_RES_DSTLEN_S () {12;}' unless defined(&HIFN_BASE_RES_DSTLEN_S);
    eval 'sub HIFN_COMP_RES_LCB_M () {0xff00;}' unless defined(&HIFN_COMP_RES_LCB_M);
    eval 'sub HIFN_COMP_RES_LCB_S () {8;}' unless defined(&HIFN_COMP_RES_LCB_S);
    eval 'sub HIFN_COMP_RES_RESTART () {0x4;}' unless defined(&HIFN_COMP_RES_RESTART);
    eval 'sub HIFN_COMP_RES_ENDMARKER () {0x2;}' unless defined(&HIFN_COMP_RES_ENDMARKER);
    eval 'sub HIFN_COMP_RES_SRC_NOTZERO () {0x1;}' unless defined(&HIFN_COMP_RES_SRC_NOTZERO);
    eval 'sub HIFN_MAC_RES_MISCOMPARE () {0x2;}' unless defined(&HIFN_MAC_RES_MISCOMPARE);
    eval 'sub HIFN_MAC_RES_SRC_NOTZERO () {0x1;}' unless defined(&HIFN_MAC_RES_SRC_NOTZERO);
    eval 'sub HIFN_CRYPT_RES_SRC_NOTZERO () {0x1;}' unless defined(&HIFN_CRYPT_RES_SRC_NOTZERO);
    unless(defined(&HIFN_POLL_FREQUENCY)) {
	eval 'sub HIFN_POLL_FREQUENCY () {0x1;}' unless defined(&HIFN_POLL_FREQUENCY);
    }
    unless(defined(&HIFN_POLL_SCALAR)) {
	eval 'sub HIFN_POLL_SCALAR () {0x;}' unless defined(&HIFN_POLL_SCALAR);
    }
    eval 'sub HIFN_MAX_SEGLEN () {0xffff;}' unless defined(&HIFN_MAX_SEGLEN);
    eval 'sub HIFN_MAX_DMALEN () {0x3ffff;}' unless defined(&HIFN_MAX_DMALEN);
}
1;
