require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_LEMAC_H_)) {
    eval 'sub _LEMAC_H_ () {1;}' unless defined(&_LEMAC_H_);
    eval 'sub LEMAC_IOBASE_LOW () {0x200;}' unless defined(&LEMAC_IOBASE_LOW);
    eval 'sub LEMAC_IOBASE_HIGH () {0x400;}' unless defined(&LEMAC_IOBASE_HIGH);
    eval 'sub LEMAC_REG_CS () {0x;}' unless defined(&LEMAC_REG_CS);
    eval 'sub LEMAC_REG_CTL () {0x1;}' unless defined(&LEMAC_REG_CTL);
    eval 'sub LEMAC_REG_IC () {0x2;}' unless defined(&LEMAC_REG_IC);
    eval 'sub LEMAC_REG_TS () {0x3;}' unless defined(&LEMAC_REG_TS);
    eval 'sub LEMAC_REG_RSVD1 () {0x4;}' unless defined(&LEMAC_REG_RSVD1);
    eval 'sub LEMAC_REG_RSVD2 () {0x5;}' unless defined(&LEMAC_REG_RSVD2);
    eval 'sub LEMAC_REG_FMQ () {0x6;}' unless defined(&LEMAC_REG_FMQ);
    eval 'sub LEMAC_REG_FMC () {0x7;}' unless defined(&LEMAC_REG_FMC);
    eval 'sub LEMAC_REG_RQ () {0x8;}' unless defined(&LEMAC_REG_RQ);
    eval 'sub LEMAC_REG_RQC () {0x9;}' unless defined(&LEMAC_REG_RQC);
    eval 'sub LEMAC_REG_TQ () {0xa;}' unless defined(&LEMAC_REG_TQ);
    eval 'sub LEMAC_REG_TQC () {0xb;}' unless defined(&LEMAC_REG_TQC);
    eval 'sub LEMAC_REG_TDQ () {0xc;}' unless defined(&LEMAC_REG_TDQ);
    eval 'sub LEMAC_REG_TDC () {0xd;}' unless defined(&LEMAC_REG_TDC);
    eval 'sub LEMAC_REG_PI1 () {0xe;}' unless defined(&LEMAC_REG_PI1);
    eval 'sub LEMAC_REG_PI2 () {0xf;}' unless defined(&LEMAC_REG_PI2);
    eval 'sub LEMAC_REG_DAT () {0x10;}' unless defined(&LEMAC_REG_DAT);
    eval 'sub LEMAC_REG_IOP () {0x11;}' unless defined(&LEMAC_REG_IOP);
    eval 'sub LEMAC_REG_IOB () {0x12;}' unless defined(&LEMAC_REG_IOB);
    eval 'sub LEMAC_REG_MPN () {0x13;}' unless defined(&LEMAC_REG_MPN);
    eval 'sub LEMAC_REG_MBR () {0x14;}' unless defined(&LEMAC_REG_MBR);
    eval 'sub LEMAC_REG_APD () {0x15;}' unless defined(&LEMAC_REG_APD);
    eval 'sub LEMAC_REG_EE1 () {0x16;}' unless defined(&LEMAC_REG_EE1);
    eval 'sub LEMAC_REG_EE2 () {0x17;}' unless defined(&LEMAC_REG_EE2);
    eval 'sub LEMAC_REG_PA0 () {0x18;}' unless defined(&LEMAC_REG_PA0);
    eval 'sub LEMAC_REG_PA1 () {0x19;}' unless defined(&LEMAC_REG_PA1);
    eval 'sub LEMAC_REG_PA2 () {0x1a;}' unless defined(&LEMAC_REG_PA2);
    eval 'sub LEMAC_REG_PA3 () {0x1b;}' unless defined(&LEMAC_REG_PA3);
    eval 'sub LEMAC_REG_PA4 () {0x1c;}' unless defined(&LEMAC_REG_PA4);
    eval 'sub LEMAC_REG_PA5 () {0x1d;}' unless defined(&LEMAC_REG_PA5);
    eval 'sub LEMAC_REG_CNF () {0x1e;}' unless defined(&LEMAC_REG_CNF);
    eval 'sub LEMAC_IOSIZE () {0x20;}' unless defined(&LEMAC_IOSIZE);
    eval 'sub LEMAC_REG_EID0 () {0x80;}' unless defined(&LEMAC_REG_EID0);
    eval 'sub LEMAC_REG_EID1 () {0x81;}' unless defined(&LEMAC_REG_EID1);
    eval 'sub LEMAC_REG_EID2 () {0x82;}' unless defined(&LEMAC_REG_EID2);
    eval 'sub LEMAC_REG_EID3 () {0x83;}' unless defined(&LEMAC_REG_EID3);
    eval 'sub LEMAC_REG_EIC () {0x84;}' unless defined(&LEMAC_REG_EIC);
    eval 'sub LEMAC_MCTBL_BITS () {9;}' unless defined(&LEMAC_MCTBL_BITS);
    eval 'sub LEMAC_MCTBL_OFF () {512;}' unless defined(&LEMAC_MCTBL_OFF);
    eval 'sub LEMAC_MCTBL_SIZE () {(1<< ( &LEMAC_MCTBL_BITS - 3));}' unless defined(&LEMAC_MCTBL_SIZE);
    eval 'sub LEMAC_CRC32_POLY () {0xedb88320;}' unless defined(&LEMAC_CRC32_POLY);
    eval 'sub LEMAC_EEP_CKSUM () {0;}' unless defined(&LEMAC_EEP_CKSUM);
    eval 'sub LEMAC_EEP_SIZE () {32;}' unless defined(&LEMAC_EEP_SIZE);
    eval 'sub LEMAC_EEP_DELAY () {2000;}' unless defined(&LEMAC_EEP_DELAY);
    eval 'sub LEMAC_EEP_PRDNM () {8;}' unless defined(&LEMAC_EEP_PRDNM);
    eval 'sub LEMAC_EEP_PRDNMSZ () {8;}' unless defined(&LEMAC_EEP_PRDNMSZ);
    eval 'sub LEMAC_EEP_SWFLAGS () {16;}' unless defined(&LEMAC_EEP_SWFLAGS);
    eval 'sub LEMAC_EEP_SETUP () {23;}' unless defined(&LEMAC_EEP_SETUP);
    eval 'sub LEMAC_EEP_SW_SQE () {0x10;}' unless defined(&LEMAC_EEP_SW_SQE);
    eval 'sub LEMAC_EEP_SW_LAB () {0x8;}' unless defined(&LEMAC_EEP_SW_LAB);
    eval 'sub LEMAC_EEP_ST_DRAM () {0x2;}' unless defined(&LEMAC_EEP_ST_DRAM);
    eval 'sub LEMAC_ADP_ROMSZ () {32;}' unless defined(&LEMAC_ADP_ROMSZ);
    eval 'sub LEMAC_RX_PLL () {0x1;}' unless defined(&LEMAC_RX_PLL);
    eval 'sub LEMAC_RX_CRC () {0x2;}' unless defined(&LEMAC_RX_CRC);
    eval 'sub LEMAC_RX_DBE () {0x4;}' unless defined(&LEMAC_RX_DBE);
    eval 'sub LEMAC_RX_MCM () {0x8;}' unless defined(&LEMAC_RX_MCM);
    eval 'sub LEMAC_RX_IAM () {0x10;}' unless defined(&LEMAC_RX_IAM);
    eval 'sub LEMAC_RX_OK () {0x80;}' unless defined(&LEMAC_RX_OK);
    eval 'sub LEMAC_TS_RTRYMSK () {0xf;}' unless defined(&LEMAC_TS_RTRYMSK);
    eval 'sub LEMAC_TS_ECL () {0x10;}' unless defined(&LEMAC_TS_ECL);
    eval 'sub LEMAC_TS_LCL () {0x20;}' unless defined(&LEMAC_TS_LCL);
    eval 'sub LEMAC_TS_ID () {0x40;}' unless defined(&LEMAC_TS_ID);
    eval 'sub LEMAC_TS_NCL () {0x8;}' unless defined(&LEMAC_TS_NCL);
    eval 'sub LEMAC_TX_ISA () {0x1;}' unless defined(&LEMAC_TX_ISA);
    eval 'sub LEMAC_TX_IFC () {0x2;}' unless defined(&LEMAC_TX_IFC);
    eval 'sub LEMAC_TX_PAD () {0x4;}' unless defined(&LEMAC_TX_PAD);
    eval 'sub LEMAC_TX_LAB () {0x8;}' unless defined(&LEMAC_TX_LAB);
    eval 'sub LEMAC_TX_QMD () {0x10;}' unless defined(&LEMAC_TX_QMD);
    eval 'sub LEMAC_TX_STP () {0x20;}' unless defined(&LEMAC_TX_STP);
    eval 'sub LEMAC_TX_SQE () {0x40;}' unless defined(&LEMAC_TX_SQE);
    eval 'sub LEMAC_TX_FLAGS () {( &LEMAC_TX_IFC| &LEMAC_TX_PAD| &LEMAC_TX_QMD|  &LEMAC_TX_SQE);}' unless defined(&LEMAC_TX_FLAGS);
    eval 'sub LEMAC_TX_HDRSZ () {4;}' unless defined(&LEMAC_TX_HDRSZ);
    eval 'sub LEMAC_TDQ_COL () {0x3;}' unless defined(&LEMAC_TDQ_COL);
    eval 'sub LEMAC_TDQ_NOCOL () {0x;}' unless defined(&LEMAC_TDQ_NOCOL);
    eval 'sub LEMAC_TDQ_ONECOL () {0x1;}' unless defined(&LEMAC_TDQ_ONECOL);
    eval 'sub LEMAC_TDQ_MULCOL () {0x2;}' unless defined(&LEMAC_TDQ_MULCOL);
    eval 'sub LEMAC_TDQ_EXCCOL () {0x3;}' unless defined(&LEMAC_TDQ_EXCCOL);
    eval 'sub LEMAC_TDQ_ID () {0x4;}' unless defined(&LEMAC_TDQ_ID);
    eval 'sub LEMAC_TDQ_LCL () {0x8;}' unless defined(&LEMAC_TDQ_LCL);
    eval 'sub LEMAC_TDQ_NCL () {0x10;}' unless defined(&LEMAC_TDQ_NCL);
    eval 'sub LEMAC_TDQ_SQE () {0x20;}' unless defined(&LEMAC_TDQ_SQE);
    eval 'sub LEMAC_CS_RXD () {0x1;}' unless defined(&LEMAC_CS_RXD);
    eval 'sub LEMAC_CS_TXD () {0x2;}' unless defined(&LEMAC_CS_TXD);
    eval 'sub LEMAC_CS_RNE () {0x4;}' unless defined(&LEMAC_CS_RNE);
    eval 'sub LEMAC_CS_TNE () {0x8;}' unless defined(&LEMAC_CS_TNE);
    eval 'sub LEMAC_CS_MBZ4 () {0x10;}' unless defined(&LEMAC_CS_MBZ4);
    eval 'sub LEMAC_CS_MCE () {0x20;}' unless defined(&LEMAC_CS_MCE);
    eval 'sub LEMAC_CS_PME () {0x40;}' unless defined(&LEMAC_CS_PME);
    eval 'sub LEMAC_CS_RA () {0x80;}' unless defined(&LEMAC_CS_RA);
    eval 'sub LEMAC_CTL_LED () {0x2;}' unless defined(&LEMAC_CTL_LED);
    eval 'sub LEMAC_CTL_PSL () {0x40;}' unless defined(&LEMAC_CTL_PSL);
    eval 'sub LEMAC_CTL_APD () {0x80;}' unless defined(&LEMAC_CTL_APD);
    eval 'sub LEMAC_IC_RXD () {0x1;}' unless defined(&LEMAC_IC_RXD);
    eval 'sub LEMAC_IC_TXD () {0x2;}' unless defined(&LEMAC_IC_TXD);
    eval 'sub LEMAC_IC_RNE () {0x4;}' unless defined(&LEMAC_IC_RNE);
    eval 'sub LEMAC_IC_TNE () {0x8;}' unless defined(&LEMAC_IC_TNE);
    eval 'sub LEMAC_IC_ALL () {0xf;}' unless defined(&LEMAC_IC_ALL);
    eval 'sub LEMAC_IC_IRQMSK () {0x60;}' unless defined(&LEMAC_IC_IRQMSK);
    eval 'sub LEMAC_IC_IRQ5 () {0x;}' unless defined(&LEMAC_IC_IRQ5);
    eval 'sub LEMAC_IC_IRQ10 () {0x20;}' unless defined(&LEMAC_IC_IRQ10);
    eval 'sub LEMAC_IC_IRQ11 () {0x40;}' unless defined(&LEMAC_IC_IRQ11);
    eval 'sub LEMAC_IC_IRQ15 () {0x60;}' unless defined(&LEMAC_IC_IRQ15);
    eval 'sub LEMAC_IC_IE () {0x80;}' unless defined(&LEMAC_IC_IE);
    eval 'sub LEMAC_IOP_EEINIT () {0xc0;}' unless defined(&LEMAC_IOP_EEINIT);
    eval 'sub LEMAC_IOP_EEREAD () {0xe0;}' unless defined(&LEMAC_IOP_EEREAD);
    eval 'sub LEMAC_CNF_DRAM () {0x2;}' unless defined(&LEMAC_CNF_DRAM);
    eval 'sub LEMAC_CNF_NOLINK () {0x20;}' unless defined(&LEMAC_CNF_NOLINK);
}
1;
