require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&LEMINSIZE)) {
    sub LEMINSIZE () {	60;}
}
if((defined(&BYTE_ORDER) ? &BYTE_ORDER : 0) == (defined(&BIG_ENDIAN) ? &BIG_ENDIAN : 0)) {
} else {
}
if((defined(&BYTE_ORDER) ? &BYTE_ORDER : 0) == (defined(&BIG_ENDIAN) ? &BIG_ENDIAN : 0)) {
} else {
}
unless(defined(&LE_INITADDR)) {
    sub LE_INITADDR {
	my($sc) = @_;
	eval q(( ($sc->{sc_initaddr})));
    }
}
unless(defined(&LE_RMDADDR)) {
    sub LE_RMDADDR {
	my($sc, $bix) = @_;
	eval q(( ($sc->{sc_rmdaddr}) + $sizeof{'struct lermd'} * ($bix)));
    }
}
unless(defined(&LE_TMDADDR)) {
    sub LE_TMDADDR {
	my($sc, $bix) = @_;
	eval q(( ($sc->{sc_tmdaddr}) + $sizeof{'struct letmd'} * ($bix)));
    }
}
unless(defined(&LE_RBUFADDR)) {
    sub LE_RBUFADDR {
	my($sc, $bix) = @_;
	eval q(( ($sc->{sc_rbufaddr}) +  &ETHER_MAX_DIX_LEN * ($bix)));
    }
}
unless(defined(&LE_TBUFADDR)) {
    sub LE_TBUFADDR {
	my($sc, $bix) = @_;
	eval q(( ($sc->{sc_tbufaddr}) +  &ETHER_MAX_DIX_LEN * ($bix)));
    }
}
unless(defined(&LE_CSR0)) {
    sub LE_CSR0 () {	0x;}
}
unless(defined(&LE_CSR1)) {
    sub LE_CSR1 () {	0x1;}
}
unless(defined(&LE_CSR2)) {
    sub LE_CSR2 () {	0x2;}
}
unless(defined(&LE_CSR3)) {
    sub LE_CSR3 () {	0x3;}
}
unless(defined(&LE_C0_ERR)) {
    sub LE_C0_ERR () {	0x8000;}
}
unless(defined(&LE_C0_BABL)) {
    sub LE_C0_BABL () {	0x4000;}
}
unless(defined(&LE_C0_CERR)) {
    sub LE_C0_CERR () {	0x2000;}
}
unless(defined(&LE_C0_MISS)) {
    sub LE_C0_MISS () {	0x1000;}
}
unless(defined(&LE_C0_MERR)) {
    sub LE_C0_MERR () {	0x800;}
}
unless(defined(&LE_C0_RINT)) {
    sub LE_C0_RINT () {	0x400;}
}
unless(defined(&LE_C0_TINT)) {
    sub LE_C0_TINT () {	0x200;}
}
unless(defined(&LE_C0_IDON)) {
    sub LE_C0_IDON () {	0x100;}
}
unless(defined(&LE_C0_INTR)) {
    sub LE_C0_INTR () {	0x80;}
}
unless(defined(&LE_C0_INEA)) {
    sub LE_C0_INEA () {	0x40;}
}
unless(defined(&LE_C0_RXON)) {
    sub LE_C0_RXON () {	0x20;}
}
unless(defined(&LE_C0_TXON)) {
    sub LE_C0_TXON () {	0x10;}
}
unless(defined(&LE_C0_TDMD)) {
    sub LE_C0_TDMD () {	0x8;}
}
unless(defined(&LE_C0_STOP)) {
    sub LE_C0_STOP () {	0x4;}
}
unless(defined(&LE_C0_STRT)) {
    sub LE_C0_STRT () {	0x2;}
}
unless(defined(&LE_C0_INIT)) {
    sub LE_C0_INIT () {	0x1;}
}
unless(defined(&LE_C0_BITS)) {
    sub LE_C0_BITS () {	"\20\20ERR\17BABL\16CERR\15MISS\14MERR\13RINT\12TINT\11IDON\10INTR\07INEA\06RXON\05TXON\04TDMD\03STOP\02STRT\01INIT";}
}
unless(defined(&LE_C3_BSWP)) {
    sub LE_C3_BSWP () {	0x4;}
}
unless(defined(&LE_C3_ACON)) {
    sub LE_C3_ACON () {	0x2;}
}
unless(defined(&LE_C3_BCON)) {
    sub LE_C3_BCON () {	0x1;}
}
unless(defined(&LE_MODE_PROM)) {
    sub LE_MODE_PROM () {	0x8000;}
}
unless(defined(&LE_MODE_INTL)) {
    sub LE_MODE_INTL () {	0x40;}
}
unless(defined(&LE_MODE_DRTY)) {
    sub LE_MODE_DRTY () {	0x20;}
}
unless(defined(&LE_MODE_COLL)) {
    sub LE_MODE_COLL () {	0x10;}
}
unless(defined(&LE_MODE_DTCR)) {
    sub LE_MODE_DTCR () {	0x8;}
}
unless(defined(&LE_MODE_LOOP)) {
    sub LE_MODE_LOOP () {	0x4;}
}
unless(defined(&LE_MODE_DTX)) {
    sub LE_MODE_DTX () {	0x2;}
}
unless(defined(&LE_MODE_DRX)) {
    sub LE_MODE_DRX () {	0x1;}
}
unless(defined(&LE_MODE_NORMAL)) {
    sub LE_MODE_NORMAL () {	0;}
}
unless(defined(&LE_R1_OWN)) {
    sub LE_R1_OWN () {	0x80;}
}
unless(defined(&LE_R1_ERR)) {
    sub LE_R1_ERR () {	0x40;}
}
unless(defined(&LE_R1_FRAM)) {
    sub LE_R1_FRAM () {	0x20;}
}
unless(defined(&LE_R1_OFLO)) {
    sub LE_R1_OFLO () {	0x10;}
}
unless(defined(&LE_R1_CRC)) {
    sub LE_R1_CRC () {	0x8;}
}
unless(defined(&LE_R1_BUFF)) {
    sub LE_R1_BUFF () {	0x4;}
}
unless(defined(&LE_R1_STP)) {
    sub LE_R1_STP () {	0x2;}
}
unless(defined(&LE_R1_ENP)) {
    sub LE_R1_ENP () {	0x1;}
}
unless(defined(&LE_R1_BITS)) {
    sub LE_R1_BITS () {	"\20\10OWN\7ERR\6FRAM\5OFLO\4CRC\3BUFF\2STP\1ENP";}
}
unless(defined(&LE_T1_OWN)) {
    sub LE_T1_OWN () {	0x80;}
}
unless(defined(&LE_T1_ERR)) {
    sub LE_T1_ERR () {	0x40;}
}
unless(defined(&LE_T1_MORE)) {
    sub LE_T1_MORE () {	0x10;}
}
unless(defined(&LE_T1_ONE)) {
    sub LE_T1_ONE () {	0x8;}
}
unless(defined(&LE_T1_DEF)) {
    sub LE_T1_DEF () {	0x4;}
}
unless(defined(&LE_T1_STP)) {
    sub LE_T1_STP () {	0x2;}
}
unless(defined(&LE_T1_ENP)) {
    sub LE_T1_ENP () {	0x1;}
}
unless(defined(&LE_T1_BITS)) {
    sub LE_T1_BITS () {	"\20\10OWN\7ERR\6RES\5MORE\4ONE\3DEF\2STP\1ENP";}
}
unless(defined(&LE_T3_BUFF)) {
    sub LE_T3_BUFF () {	0x8000;}
}
unless(defined(&LE_T3_UFLO)) {
    sub LE_T3_UFLO () {	0x4000;}
}
unless(defined(&LE_T3_LCOL)) {
    sub LE_T3_LCOL () {	0x1000;}
}
unless(defined(&LE_T3_LCAR)) {
    sub LE_T3_LCAR () {	0x800;}
}
unless(defined(&LE_T3_RTRY)) {
    sub LE_T3_RTRY () {	0x400;}
}
unless(defined(&LE_T3_TDR_MASK)) {
    sub LE_T3_TDR_MASK () {	0x3ff;}
}
unless(defined(&LE_XMD2_ONES)) {
    sub LE_XMD2_ONES () {	0xf000;}
}
unless(defined(&LE_T3_BITS)) {
    sub LE_T3_BITS () {	"\20\20BUFF\17UFLO\16RES\15LCOL\14LCAR\13RTRY";}
}
1;
