require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_ISA_IF_ECREG_H_)) {
    eval 'sub _DEV_ISA_IF_ECREG_H_ () {1;}' unless defined(&_DEV_ISA_IF_ECREG_H_);
    eval 'sub ELINK2_NIC_OFFSET () {0;}' unless defined(&ELINK2_NIC_OFFSET);
    eval 'sub ELINK2_ASIC_OFFSET () {0x400;}' unless defined(&ELINK2_ASIC_OFFSET);
    eval 'sub ELINK2_NIC_PORTS () {16;}' unless defined(&ELINK2_NIC_PORTS);
    eval 'sub ELINK2_ASIC_PORTS () {16;}' unless defined(&ELINK2_ASIC_PORTS);
    eval 'sub ELINK2_TX_PAGE_OFFSET_8BIT () {0x20;}' unless defined(&ELINK2_TX_PAGE_OFFSET_8BIT);
    eval 'sub ELINK2_TX_PAGE_OFFSET_16BIT () {0x;}' unless defined(&ELINK2_TX_PAGE_OFFSET_16BIT);
    eval 'sub ELINK2_RX_PAGE_OFFSET_16BIT () {0x20;}' unless defined(&ELINK2_RX_PAGE_OFFSET_16BIT);
    eval 'sub ELINK2_PSTR () {0;}' unless defined(&ELINK2_PSTR);
    eval 'sub ELINK2_PSPR () {1;}' unless defined(&ELINK2_PSPR);
    eval 'sub ELINK2_DQTR () {2;}' unless defined(&ELINK2_DQTR);
    eval 'sub ELINK2_BCFR () {3;}' unless defined(&ELINK2_BCFR);
    eval 'sub ELINK2_PCFR () {4;}' unless defined(&ELINK2_PCFR);
    eval 'sub ELINK2_GACFR () {5;}' unless defined(&ELINK2_GACFR);
    eval 'sub ELINK2_GACFR_MBS0 () {0x1;}' unless defined(&ELINK2_GACFR_MBS0);
    eval 'sub ELINK2_GACFR_MBS1 () {0x2;}' unless defined(&ELINK2_GACFR_MBS1);
    eval 'sub ELINK2_GACFR_MBS2 () {0x4;}' unless defined(&ELINK2_GACFR_MBS2);
    eval 'sub ELINK2_GACFR_RSEL () {0x8;}' unless defined(&ELINK2_GACFR_RSEL);
    eval 'sub ELINK2_GACFR_TEST () {0x10;}' unless defined(&ELINK2_GACFR_TEST);
    eval 'sub ELINK2_GACFR_OWS () {0x20;}' unless defined(&ELINK2_GACFR_OWS);
    eval 'sub ELINK2_GACFR_TCM () {0x40;}' unless defined(&ELINK2_GACFR_TCM);
    eval 'sub ELINK2_GACFR_NIM () {0x80;}' unless defined(&ELINK2_GACFR_NIM);
    eval 'sub ELINK2_CR () {6;}' unless defined(&ELINK2_CR);
    eval 'sub ELINK2_CR_RST () {0x1;}' unless defined(&ELINK2_CR_RST);
    eval 'sub ELINK2_CR_XSEL () {0x2;}' unless defined(&ELINK2_CR_XSEL);
    eval 'sub ELINK2_CR_EALO () {0x4;}' unless defined(&ELINK2_CR_EALO);
    eval 'sub ELINK2_CR_EAHI () {0x8;}' unless defined(&ELINK2_CR_EAHI);
    eval 'sub ELINK2_CR_SHARE () {0x10;}' unless defined(&ELINK2_CR_SHARE);
    eval 'sub ELINK2_CR_DBSEL () {0x20;}' unless defined(&ELINK2_CR_DBSEL);
    eval 'sub ELINK2_CR_DDIR () {0x40;}' unless defined(&ELINK2_CR_DDIR);
    eval 'sub ELINK2_CR_START () {0x80;}' unless defined(&ELINK2_CR_START);
    eval 'sub ELINK2_STREG () {7;}' unless defined(&ELINK2_STREG);
    eval 'sub ELINK2_STREG_REV () {0x7;}' unless defined(&ELINK2_STREG_REV);
    eval 'sub ELINK2_STREG_DIP () {0x8;}' unless defined(&ELINK2_STREG_DIP);
    eval 'sub ELINK2_STREG_DTC () {0x10;}' unless defined(&ELINK2_STREG_DTC);
    eval 'sub ELINK2_STREG_OFLW () {0x20;}' unless defined(&ELINK2_STREG_OFLW);
    eval 'sub ELINK2_STREG_UFLW () {0x40;}' unless defined(&ELINK2_STREG_UFLW);
    eval 'sub ELINK2_STREG_DPRDY () {0x80;}' unless defined(&ELINK2_STREG_DPRDY);
    eval 'sub ELINK2_IDCFR () {8;}' unless defined(&ELINK2_IDCFR);
    eval 'sub ELINK2_IDCFR_DRQ () {0x7;}' unless defined(&ELINK2_IDCFR_DRQ);
    eval 'sub ELINK2_IDCFR_UNUSED () {0x8;}' unless defined(&ELINK2_IDCFR_UNUSED);
    if(0) {
	eval 'sub ELINK2_IDCFR_IRQ () {0xf0;}' unless defined(&ELINK2_IDCFR_IRQ);
    } else {
	eval 'sub ELINK2_IDCFR_IRQ2 () {0x10;}' unless defined(&ELINK2_IDCFR_IRQ2);
	eval 'sub ELINK2_IDCFR_IRQ3 () {0x20;}' unless defined(&ELINK2_IDCFR_IRQ3);
	eval 'sub ELINK2_IDCFR_IRQ4 () {0x40;}' unless defined(&ELINK2_IDCFR_IRQ4);
	eval 'sub ELINK2_IDCFR_IRQ5 () {0x80;}' unless defined(&ELINK2_IDCFR_IRQ5);
    }
    eval 'sub ELINK2_DAMSB () {9;}' unless defined(&ELINK2_DAMSB);
    eval 'sub ELINK2_DALSB () {0xa;}' unless defined(&ELINK2_DALSB);
    eval 'sub ELINK2_VPTR2 () {0xb;}' unless defined(&ELINK2_VPTR2);
    eval 'sub ELINK2_VPTR1 () {0xc;}' unless defined(&ELINK2_VPTR1);
    eval 'sub ELINK2_VPTR0 () {0xd;}' unless defined(&ELINK2_VPTR0);
    eval 'sub ELINK2_RFMSB () {0xe;}' unless defined(&ELINK2_RFMSB);
    eval 'sub ELINK2_RFLSB () {0xf;}' unless defined(&ELINK2_RFLSB);
}
1;
