require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&TL_MAXFRAGS)) {
    sub TL_MAXFRAGS () {	10;}
}
unless(defined(&TL_RX_LIST_CNT)) {
    sub TL_RX_LIST_CNT () {	20;}
}
unless(defined(&TL_TX_LIST_CNT)) {
    sub TL_TX_LIST_CNT () {	64;}
}
unless(defined(&TL_MIN_FRAMELEN)) {
    sub TL_MIN_FRAMELEN () {	128;}
}
unless(defined(&TX_THR)) {
    sub TX_THR () {	0x4;}
}
unless(defined(&TI_VENDORID)) {
    sub TI_VENDORID () {	0x104c;}
}
unless(defined(&TI_DEVICEID_THUNDERLAN)) {
    sub TI_DEVICEID_THUNDERLAN () {	0x500;}
}
unless(defined(&COMPAQ_VENDORID)) {
    sub COMPAQ_VENDORID () {	0xe11;}
}
unless(defined(&COMPAQ_DEVICEID_NETEL_10_100)) {
    sub COMPAQ_DEVICEID_NETEL_10_100 () {	0xae32;}
}
unless(defined(&COMPAQ_DEVICEID_NETEL_UNKNOWN)) {
    sub COMPAQ_DEVICEID_NETEL_UNKNOWN () {	0xae33;}
}
unless(defined(&COMPAQ_DEVICEID_NETEL_10)) {
    sub COMPAQ_DEVICEID_NETEL_10 () {	0xae34;}
}
unless(defined(&COMPAQ_DEVICEID_NETFLEX_3P_INTEGRATED)) {
    sub COMPAQ_DEVICEID_NETFLEX_3P_INTEGRATED () {	0xae35;}
}
unless(defined(&COMPAQ_DEVICEID_NETEL_10_100_DUAL)) {
    sub COMPAQ_DEVICEID_NETEL_10_100_DUAL () {	0xae40;}
}
unless(defined(&COMPAQ_DEVICEID_NETEL_10_100_PROLIANT)) {
    sub COMPAQ_DEVICEID_NETEL_10_100_PROLIANT () {	0xae43;}
}
unless(defined(&COMPAQ_DEVICEID_NETEL_10_100_EMBEDDED)) {
    sub COMPAQ_DEVICEID_NETEL_10_100_EMBEDDED () {	0xb011;}
}
unless(defined(&COMPAQ_DEVICEID_NETEL_10_T2_UTP_COAX)) {
    sub COMPAQ_DEVICEID_NETEL_10_T2_UTP_COAX () {	0xb012;}
}
unless(defined(&COMPAQ_DEVICEID_NETEL_10_100_TX_UTP)) {
    sub COMPAQ_DEVICEID_NETEL_10_100_TX_UTP () {	0xb030;}
}
unless(defined(&COMPAQ_DEVICEID_NETFLEX_3P)) {
    sub COMPAQ_DEVICEID_NETFLEX_3P () {	0xf130;}
}
unless(defined(&COMPAQ_DEVICEID_NETFLEX_3P_BNC)) {
    sub COMPAQ_DEVICEID_NETFLEX_3P_BNC () {	0xf150;}
}
unless(defined(&OLICOM_VENDORID)) {
    sub OLICOM_VENDORID () {	0x108d;}
}
unless(defined(&OLICOM_DEVICEID_OC2183)) {
    sub OLICOM_DEVICEID_OC2183 () {	0x13;}
}
unless(defined(&OLICOM_DEVICEID_OC2325)) {
    sub OLICOM_DEVICEID_OC2325 () {	0x12;}
}
unless(defined(&OLICOM_DEVICEID_OC2326)) {
    sub OLICOM_DEVICEID_OC2326 () {	0x14;}
}
unless(defined(&TL_PCI_LOIO)) {
    sub TL_PCI_LOIO () {	0x10;}
}
unless(defined(&TL_PCI_LOMEM)) {
    sub TL_PCI_LOMEM () {	0x14;}
}
unless(defined(&TL_PCI_LATENCY_TIMER)) {
    sub TL_PCI_LATENCY_TIMER () {	0xc;}
}
unless(defined(&TL_DIO_ADDR_INC)) {
    sub TL_DIO_ADDR_INC () {	0x8000;}
}
unless(defined(&TL_DIO_RAM_SEL)) {
    sub TL_DIO_RAM_SEL () {	0x4000;}
}
unless(defined(&TL_DIO_ADDR_MASK)) {
    sub TL_DIO_ADDR_MASK () {	0x3fff;}
}
unless(defined(&TL_INTR_INVALID)) {
    sub TL_INTR_INVALID () {	0x;}
}
unless(defined(&TL_INTR_TXEOF)) {
    sub TL_INTR_TXEOF () {	0x1;}
}
unless(defined(&TL_INTR_STATOFLOW)) {
    sub TL_INTR_STATOFLOW () {	0x2;}
}
unless(defined(&TL_INTR_RXEOF)) {
    sub TL_INTR_RXEOF () {	0x3;}
}
unless(defined(&TL_INTR_DUMMY)) {
    sub TL_INTR_DUMMY () {	0x4;}
}
unless(defined(&TL_INTR_TXEOC)) {
    sub TL_INTR_TXEOC () {	0x5;}
}
unless(defined(&TL_INTR_ADCHK)) {
    sub TL_INTR_ADCHK () {	0x6;}
}
unless(defined(&TL_INTR_RXEOC)) {
    sub TL_INTR_RXEOC () {	0x7;}
}
unless(defined(&TL_INT_MASK)) {
    sub TL_INT_MASK () {	0x1c;}
}
unless(defined(&TL_VEC_MASK)) {
    sub TL_VEC_MASK () {	0x1fe0;}
}
unless(defined(&TL_CMD_GO)) {
    sub TL_CMD_GO () {	0x80000000;}
}
unless(defined(&TL_CMD_STOP)) {
    sub TL_CMD_STOP () {	0x40000000;}
}
unless(defined(&TL_CMD_ACK)) {
    sub TL_CMD_ACK () {	0x20000000;}
}
unless(defined(&TL_CMD_CHSEL7)) {
    sub TL_CMD_CHSEL7 () {	0x10000000;}
}
unless(defined(&TL_CMD_CHSEL6)) {
    sub TL_CMD_CHSEL6 () {	0x8000000;}
}
unless(defined(&TL_CMD_CHSEL5)) {
    sub TL_CMD_CHSEL5 () {	0x4000000;}
}
unless(defined(&TL_CMD_CHSEL4)) {
    sub TL_CMD_CHSEL4 () {	0x2000000;}
}
unless(defined(&TL_CMD_CHSEL3)) {
    sub TL_CMD_CHSEL3 () {	0x1000000;}
}
unless(defined(&TL_CMD_CHSEL2)) {
    sub TL_CMD_CHSEL2 () {	0x800000;}
}
unless(defined(&TL_CMD_CHSEL1)) {
    sub TL_CMD_CHSEL1 () {	0x400000;}
}
unless(defined(&TL_CMD_CHSEL0)) {
    sub TL_CMD_CHSEL0 () {	0x200000;}
}
unless(defined(&TL_CMD_EOC)) {
    sub TL_CMD_EOC () {	0x100000;}
}
unless(defined(&TL_CMD_RT)) {
    sub TL_CMD_RT () {	0x80000;}
}
unless(defined(&TL_CMD_NES)) {
    sub TL_CMD_NES () {	0x40000;}
}
unless(defined(&TL_CMD_ZERO0)) {
    sub TL_CMD_ZERO0 () {	0x20000;}
}
unless(defined(&TL_CMD_ZERO1)) {
    sub TL_CMD_ZERO1 () {	0x10000;}
}
unless(defined(&TL_CMD_ADRST)) {
    sub TL_CMD_ADRST () {	0x8000;}
}
unless(defined(&TL_CMD_LDTMR)) {
    sub TL_CMD_LDTMR () {	0x4000;}
}
unless(defined(&TL_CMD_LDTHR)) {
    sub TL_CMD_LDTHR () {	0x2000;}
}
unless(defined(&TL_CMD_REQINT)) {
    sub TL_CMD_REQINT () {	0x1000;}
}
unless(defined(&TL_CMD_INTSOFF)) {
    sub TL_CMD_INTSOFF () {	0x800;}
}
unless(defined(&TL_CMD_INTSON)) {
    sub TL_CMD_INTSON () {	0x400;}
}
unless(defined(&TL_CMD_RSVD0)) {
    sub TL_CMD_RSVD0 () {	0x200;}
}
unless(defined(&TL_CMD_RSVD1)) {
    sub TL_CMD_RSVD1 () {	0x100;}
}
unless(defined(&TL_CMD_ACK7)) {
    sub TL_CMD_ACK7 () {	0x80;}
}
unless(defined(&TL_CMD_ACK6)) {
    sub TL_CMD_ACK6 () {	0x40;}
}
unless(defined(&TL_CMD_ACK5)) {
    sub TL_CMD_ACK5 () {	0x20;}
}
unless(defined(&TL_CMD_ACK4)) {
    sub TL_CMD_ACK4 () {	0x10;}
}
unless(defined(&TL_CMD_ACK3)) {
    sub TL_CMD_ACK3 () {	0x8;}
}
unless(defined(&TL_CMD_ACK2)) {
    sub TL_CMD_ACK2 () {	0x4;}
}
unless(defined(&TL_CMD_ACK1)) {
    sub TL_CMD_ACK1 () {	0x2;}
}
unless(defined(&TL_CMD_ACK0)) {
    sub TL_CMD_ACK0 () {	0x1;}
}
unless(defined(&TL_CMD_CHSEL_MASK)) {
    sub TL_CMD_CHSEL_MASK () {	0x1fe0000;}
}
unless(defined(&TL_CMD_ACK_MASK)) {
    sub TL_CMD_ACK_MASK () {	0xff;}
}
unless(defined(&TL_EEPROM_EADDR)) {
    sub TL_EEPROM_EADDR () {	0x83;}
}
unless(defined(&TL_EEPROM_EADDR2)) {
    sub TL_EEPROM_EADDR2 () {	0x99;}
}
unless(defined(&TL_EEPROM_EADDR3)) {
    sub TL_EEPROM_EADDR3 () {	0xaf;}
}
unless(defined(&TL_EEPROM_EADDR_OC)) {
    sub TL_EEPROM_EADDR_OC () {	0xf8;}
}
unless(defined(&TL_HOSTCMD)) {
    sub TL_HOSTCMD () {	0x;}
}
unless(defined(&TL_CH_PARM)) {
    sub TL_CH_PARM () {	0x4;}
}
unless(defined(&TL_DIO_ADDR)) {
    sub TL_DIO_ADDR () {	0x8;}
}
unless(defined(&TL_HOST_INT)) {
    sub TL_HOST_INT () {	0xa;}
}
unless(defined(&TL_DIO_DATA)) {
    sub TL_DIO_DATA () {	0xc;}
}
unless(defined(&TL_NETCMD)) {
    sub TL_NETCMD () {	0x;}
}
unless(defined(&TL_NETSIO)) {
    sub TL_NETSIO () {	0x1;}
}
unless(defined(&TL_NETSTS)) {
    sub TL_NETSTS () {	0x2;}
}
unless(defined(&TL_NETMASK)) {
    sub TL_NETMASK () {	0x3;}
}
unless(defined(&TL_NETCONFIG)) {
    sub TL_NETCONFIG () {	0x4;}
}
unless(defined(&TL_MANTEST)) {
    sub TL_MANTEST () {	0x6;}
}
unless(defined(&TL_VENID_LSB)) {
    sub TL_VENID_LSB () {	0x8;}
}
unless(defined(&TL_VENID_MSB)) {
    sub TL_VENID_MSB () {	0x9;}
}
unless(defined(&TL_DEVID_LSB)) {
    sub TL_DEVID_LSB () {	0xa;}
}
unless(defined(&TL_DEVID_MSB)) {
    sub TL_DEVID_MSB () {	0xb;}
}
unless(defined(&TL_REVISION)) {
    sub TL_REVISION () {	0xc;}
}
unless(defined(&TL_SUBCLASS)) {
    sub TL_SUBCLASS () {	0xd;}
}
unless(defined(&TL_MINLAT)) {
    sub TL_MINLAT () {	0xe;}
}
unless(defined(&TL_MAXLAT)) {
    sub TL_MAXLAT () {	0xf;}
}
unless(defined(&TL_AREG0_B5)) {
    sub TL_AREG0_B5 () {	0x10;}
}
unless(defined(&TL_AREG0_B4)) {
    sub TL_AREG0_B4 () {	0x11;}
}
unless(defined(&TL_AREG0_B3)) {
    sub TL_AREG0_B3 () {	0x12;}
}
unless(defined(&TL_AREG0_B2)) {
    sub TL_AREG0_B2 () {	0x13;}
}
unless(defined(&TL_AREG0_B1)) {
    sub TL_AREG0_B1 () {	0x14;}
}
unless(defined(&TL_AREG0_B0)) {
    sub TL_AREG0_B0 () {	0x15;}
}
unless(defined(&TL_AREG1_B5)) {
    sub TL_AREG1_B5 () {	0x16;}
}
unless(defined(&TL_AREG1_B4)) {
    sub TL_AREG1_B4 () {	0x17;}
}
unless(defined(&TL_AREG1_B3)) {
    sub TL_AREG1_B3 () {	0x18;}
}
unless(defined(&TL_AREG1_B2)) {
    sub TL_AREG1_B2 () {	0x19;}
}
unless(defined(&TL_AREG1_B1)) {
    sub TL_AREG1_B1 () {	0x1a;}
}
unless(defined(&TL_AREG1_B0)) {
    sub TL_AREG1_B0 () {	0x1b;}
}
unless(defined(&TL_AREG2_B5)) {
    sub TL_AREG2_B5 () {	0x1c;}
}
unless(defined(&TL_AREG2_B4)) {
    sub TL_AREG2_B4 () {	0x1d;}
}
unless(defined(&TL_AREG2_B3)) {
    sub TL_AREG2_B3 () {	0x1e;}
}
unless(defined(&TL_AREG2_B2)) {
    sub TL_AREG2_B2 () {	0x1f;}
}
unless(defined(&TL_AREG2_B1)) {
    sub TL_AREG2_B1 () {	0x20;}
}
unless(defined(&TL_AREG2_B0)) {
    sub TL_AREG2_B0 () {	0x21;}
}
unless(defined(&TL_AREG3_B5)) {
    sub TL_AREG3_B5 () {	0x22;}
}
unless(defined(&TL_AREG3_B4)) {
    sub TL_AREG3_B4 () {	0x23;}
}
unless(defined(&TL_AREG3_B3)) {
    sub TL_AREG3_B3 () {	0x24;}
}
unless(defined(&TL_AREG3_B2)) {
    sub TL_AREG3_B2 () {	0x25;}
}
unless(defined(&TL_AREG3_B1)) {
    sub TL_AREG3_B1 () {	0x26;}
}
unless(defined(&TL_AREG3_B0)) {
    sub TL_AREG3_B0 () {	0x27;}
}
unless(defined(&TL_HASH1)) {
    sub TL_HASH1 () {	0x28;}
}
unless(defined(&TL_HASH2)) {
    sub TL_HASH2 () {	0x2c;}
}
unless(defined(&TL_TXGOODFRAMES)) {
    sub TL_TXGOODFRAMES () {	0x30;}
}
unless(defined(&TL_TXUNDERRUN)) {
    sub TL_TXUNDERRUN () {	0x33;}
}
unless(defined(&TL_RXGOODFRAMES)) {
    sub TL_RXGOODFRAMES () {	0x34;}
}
unless(defined(&TL_RXOVERRUN)) {
    sub TL_RXOVERRUN () {	0x37;}
}
unless(defined(&TL_DEFEREDTX)) {
    sub TL_DEFEREDTX () {	0x38;}
}
unless(defined(&TL_CRCERROR)) {
    sub TL_CRCERROR () {	0x3a;}
}
unless(defined(&TL_CODEERROR)) {
    sub TL_CODEERROR () {	0x3b;}
}
unless(defined(&TL_MULTICOLTX)) {
    sub TL_MULTICOLTX () {	0x3c;}
}
unless(defined(&TL_SINGLECOLTX)) {
    sub TL_SINGLECOLTX () {	0x3e;}
}
unless(defined(&TL_EXCESSIVECOL)) {
    sub TL_EXCESSIVECOL () {	0x40;}
}
unless(defined(&TL_LATECOL)) {
    sub TL_LATECOL () {	0x41;}
}
unless(defined(&TL_CARRIERLOSS)) {
    sub TL_CARRIERLOSS () {	0x42;}
}
unless(defined(&TL_ACOMMIT)) {
    sub TL_ACOMMIT () {	0x43;}
}
unless(defined(&TL_LDREG)) {
    sub TL_LDREG () {	0x44;}
}
unless(defined(&TL_BSIZEREG)) {
    sub TL_BSIZEREG () {	0x45;}
}
unless(defined(&TL_MAXRX)) {
    sub TL_MAXRX () {	0x46;}
}
unless(defined(&TL_SIO_MINTEN)) {
    sub TL_SIO_MINTEN () {	0x80;}
}
unless(defined(&TL_SIO_ECLOK)) {
    sub TL_SIO_ECLOK () {	0x40;}
}
unless(defined(&TL_SIO_ETXEN)) {
    sub TL_SIO_ETXEN () {	0x20;}
}
unless(defined(&TL_SIO_EDATA)) {
    sub TL_SIO_EDATA () {	0x10;}
}
unless(defined(&TL_SIO_NMRST)) {
    sub TL_SIO_NMRST () {	0x8;}
}
unless(defined(&TL_SIO_MCLK)) {
    sub TL_SIO_MCLK () {	0x4;}
}
unless(defined(&TL_SIO_MTXEN)) {
    sub TL_SIO_MTXEN () {	0x2;}
}
unless(defined(&TL_SIO_MDATA)) {
    sub TL_SIO_MDATA () {	0x1;}
}
unless(defined(&TL_CFG_RCLKTEST)) {
    sub TL_CFG_RCLKTEST () {	0x8000;}
}
unless(defined(&TL_CFG_TCLKTEST)) {
    sub TL_CFG_TCLKTEST () {	0x4000;}
}
unless(defined(&TL_CFG_BITRATE)) {
    sub TL_CFG_BITRATE () {	0x2000;}
}
unless(defined(&TL_CFG_RXCRC)) {
    sub TL_CFG_RXCRC () {	0x1000;}
}
unless(defined(&TL_CFG_PEF)) {
    sub TL_CFG_PEF () {	0x800;}
}
unless(defined(&TL_CFG_ONEFRAG)) {
    sub TL_CFG_ONEFRAG () {	0x400;}
}
unless(defined(&TL_CFG_ONECHAN)) {
    sub TL_CFG_ONECHAN () {	0x200;}
}
unless(defined(&TL_CFG_MTEST)) {
    sub TL_CFG_MTEST () {	0x100;}
}
unless(defined(&TL_CFG_PHYEN)) {
    sub TL_CFG_PHYEN () {	0x80;}
}
unless(defined(&TL_CFG_MACSEL6)) {
    sub TL_CFG_MACSEL6 () {	0x40;}
}
unless(defined(&TL_CFG_MACSEL5)) {
    sub TL_CFG_MACSEL5 () {	0x20;}
}
unless(defined(&TL_CFG_MACSEL4)) {
    sub TL_CFG_MACSEL4 () {	0x10;}
}
unless(defined(&TL_CFG_MACSEL3)) {
    sub TL_CFG_MACSEL3 () {	0x8;}
}
unless(defined(&TL_CFG_MACSEL2)) {
    sub TL_CFG_MACSEL2 () {	0x4;}
}
unless(defined(&TL_CFG_MACSEL1)) {
    sub TL_CFG_MACSEL1 () {	0x2;}
}
unless(defined(&TL_CFG_MACSEL0)) {
    sub TL_CFG_MACSEL0 () {	0x1;}
}
unless(defined(&TL_STS_MIRQ)) {
    sub TL_STS_MIRQ () {	0x80;}
}
unless(defined(&TL_STS_HBEAT)) {
    sub TL_STS_HBEAT () {	0x40;}
}
unless(defined(&TL_STS_TXSTOP)) {
    sub TL_STS_TXSTOP () {	0x20;}
}
unless(defined(&TL_STS_RXSTOP)) {
    sub TL_STS_RXSTOP () {	0x10;}
}
unless(defined(&TL_CMD_NRESET)) {
    sub TL_CMD_NRESET () {	0x80;}
}
unless(defined(&TL_CMD_NWRAP)) {
    sub TL_CMD_NWRAP () {	0x40;}
}
unless(defined(&TL_CMD_CSF)) {
    sub TL_CMD_CSF () {	0x20;}
}
unless(defined(&TL_CMD_CAF)) {
    sub TL_CMD_CAF () {	0x10;}
}
unless(defined(&TL_CMD_NOBRX)) {
    sub TL_CMD_NOBRX () {	0x8;}
}
unless(defined(&TL_CMD_DUPLEX)) {
    sub TL_CMD_DUPLEX () {	0x4;}
}
unless(defined(&TL_CMD_TRFRAM)) {
    sub TL_CMD_TRFRAM () {	0x2;}
}
unless(defined(&TL_CMD_TXPACE)) {
    sub TL_CMD_TXPACE () {	0x1;}
}
unless(defined(&TL_MASK_MASK7)) {
    sub TL_MASK_MASK7 () {	0x80;}
}
unless(defined(&TL_MASK_MASK6)) {
    sub TL_MASK_MASK6 () {	0x40;}
}
unless(defined(&TL_MASK_MASK5)) {
    sub TL_MASK_MASK5 () {	0x20;}
}
unless(defined(&TL_MASK_MASK4)) {
    sub TL_MASK_MASK4 () {	0x10;}
}
if(defined(&ANSI_DOESNT_ALLOW_BITFIELDS)) {
} else {
}
unless(defined(&TL_MII_STARTDELIM)) {
    sub TL_MII_STARTDELIM () {	0x1;}
}
unless(defined(&TL_MII_READOP)) {
    sub TL_MII_READOP () {	0x2;}
}
unless(defined(&TL_MII_WRITEOP)) {
    sub TL_MII_WRITEOP () {	0x1;}
}
unless(defined(&TL_MII_TURNAROUND)) {
    sub TL_MII_TURNAROUND () {	0x2;}
}
unless(defined(&TL_LAST_FRAG)) {
    sub TL_LAST_FRAG () {	0x80000000;}
}
unless(defined(&TL_CSTAT_UNUSED)) {
    sub TL_CSTAT_UNUSED () {	0x8000;}
}
unless(defined(&TL_CSTAT_FRAMECMP)) {
    sub TL_CSTAT_FRAMECMP () {	0x4000;}
}
unless(defined(&TL_CSTAT_READY)) {
    sub TL_CSTAT_READY () {	0x3000;}
}
unless(defined(&TL_CSTAT_UNUSED13)) {
    sub TL_CSTAT_UNUSED13 () {	0x2000;}
}
unless(defined(&TL_CSTAT_UNUSED12)) {
    sub TL_CSTAT_UNUSED12 () {	0x1000;}
}
unless(defined(&TL_CSTAT_EOC)) {
    sub TL_CSTAT_EOC () {	0x800;}
}
unless(defined(&TL_CSTAT_RXERROR)) {
    sub TL_CSTAT_RXERROR () {	0x400;}
}
unless(defined(&TL_CSTAT_PASSCRC)) {
    sub TL_CSTAT_PASSCRC () {	0x200;}
}
unless(defined(&TL_CSTAT_DPRIO)) {
    sub TL_CSTAT_DPRIO () {	0x100;}
}
unless(defined(&TL_FRAME_MASK)) {
    sub TL_FRAME_MASK () {	0xffffff;}
}
unless(defined(&tl_tx_goodframes)) {
    sub tl_tx_goodframes {
	my($x) = @_;
	eval q(( ($x->{tl_txstat}) &  &TL_FRAME_MASK));
    }
}
unless(defined(&tl_tx_underrun)) {
    sub tl_tx_underrun {
	my($x) = @_;
	eval q((( ($x->{tl_txstat}) & ~ &TL_FRAME_MASK) >> 24));
    }
}
unless(defined(&tl_rx_goodframes)) {
    sub tl_rx_goodframes {
	my($x) = @_;
	eval q(( ($x->{tl_rxstat}) &  &TL_FRAME_MASK));
    }
}
unless(defined(&tl_rx_overrun)) {
    sub tl_rx_overrun {
	my($x) = @_;
	eval q((( ($x->{tl_rxstat}) & ~ &TL_FRAME_MASK) >> 24));
    }
}
unless(defined(&TL_AC_MTXER)) {
    sub TL_AC_MTXER () {	0x1;}
}
unless(defined(&TL_AC_MTXD1)) {
    sub TL_AC_MTXD1 () {	0x2;}
}
unless(defined(&TL_AC_MTXD2)) {
    sub TL_AC_MTXD2 () {	0x4;}
}
unless(defined(&TL_AC_MTXD3)) {
    sub TL_AC_MTXD3 () {	0x8;}
}
unless(defined(&TL_AC_TXTHRESH)) {
    sub TL_AC_TXTHRESH () {	0xf0;}
}
unless(defined(&TL_AC_TXTHRESH_16LONG)) {
    sub TL_AC_TXTHRESH_16LONG () {	0x;}
}
unless(defined(&TL_AC_TXTHRESH_32LONG)) {
    sub TL_AC_TXTHRESH_32LONG () {	0x10;}
}
unless(defined(&TL_AC_TXTHRESH_64LONG)) {
    sub TL_AC_TXTHRESH_64LONG () {	0x20;}
}
unless(defined(&TL_AC_TXTHRESH_128LONG)) {
    sub TL_AC_TXTHRESH_128LONG () {	0x30;}
}
unless(defined(&TL_AC_TXTHRESH_256LONG)) {
    sub TL_AC_TXTHRESH_256LONG () {	0x40;}
}
unless(defined(&TL_AC_TXTHRESH_WHOLEPKT)) {
    sub TL_AC_TXTHRESH_WHOLEPKT () {	0x50;}
}
unless(defined(&TL_RXBURST)) {
    sub TL_RXBURST () {	0xf;}
}
unless(defined(&TL_TXBURST)) {
    sub TL_TXBURST () {	0xf0;}
}
unless(defined(&TL_RXBURST_4LONG)) {
    sub TL_RXBURST_4LONG () {	0x;}
}
unless(defined(&TL_RXBURST_8LONG)) {
    sub TL_RXBURST_8LONG () {	0x1;}
}
unless(defined(&TL_RXBURST_16LONG)) {
    sub TL_RXBURST_16LONG () {	0x2;}
}
unless(defined(&TL_RXBURST_32LONG)) {
    sub TL_RXBURST_32LONG () {	0x3;}
}
unless(defined(&TL_RXBURST_64LONG)) {
    sub TL_RXBURST_64LONG () {	0x4;}
}
unless(defined(&TL_RXBURST_128LONG)) {
    sub TL_RXBURST_128LONG () {	0x5;}
}
unless(defined(&TL_TXBURST_4LONG)) {
    sub TL_TXBURST_4LONG () {	0x;}
}
unless(defined(&TL_TXBURST_8LONG)) {
    sub TL_TXBURST_8LONG () {	0x10;}
}
unless(defined(&TL_TXBURST_16LONG)) {
    sub TL_TXBURST_16LONG () {	0x20;}
}
unless(defined(&TL_TXBURST_32LONG)) {
    sub TL_TXBURST_32LONG () {	0x30;}
}
unless(defined(&TL_TXBURST_64LONG)) {
    sub TL_TXBURST_64LONG () {	0x40;}
}
unless(defined(&TL_TXBURST_128LONG)) {
    sub TL_TXBURST_128LONG () {	0x50;}
}
unless(defined(&CSR_WRITE_4)) {
    sub CSR_WRITE_4 {
	my($sc, $reg, $val) = @_;
	eval q( &bus_space_write_4( ($sc->{tl_btag}),  ($sc->{tl_bhandle}), $reg, $val));
    }
}
unless(defined(&CSR_WRITE_2)) {
    sub CSR_WRITE_2 {
	my($sc, $reg, $val) = @_;
	eval q( &bus_space_write_2( ($sc->{tl_btag}),  ($sc->{tl_bhandle}), $reg, $val));
    }
}
unless(defined(&CSR_WRITE_1)) {
    sub CSR_WRITE_1 {
	my($sc, $reg, $val) = @_;
	eval q( &bus_space_write_1( ($sc->{tl_btag}),  ($sc->{tl_bhandle}), $reg, $val));
    }
}
unless(defined(&CSR_READ_4)) {
    sub CSR_READ_4 {
	my($sc, $reg) = @_;
	eval q( &bus_space_read_4( ($sc->{tl_btag}),  ($sc->{tl_bhandle}), $reg));
    }
}
unless(defined(&CSR_READ_2)) {
    sub CSR_READ_2 {
	my($sc, $reg) = @_;
	eval q( &bus_space_read_2( ($sc->{tl_btag}),  ($sc->{tl_bhandle}), $reg));
    }
}
unless(defined(&CSR_READ_1)) {
    sub CSR_READ_1 {
	my($sc, $reg) = @_;
	eval q( &bus_space_read_1( ($sc->{tl_btag}),  ($sc->{tl_bhandle}), $reg));
    }
}
unless(defined(&CMD_PUT)) {
    sub CMD_PUT {
	my($sc, $x) = @_;
	eval q( &CSR_WRITE_4($sc,  &TL_HOSTCMD, $x));
    }
}
unless(defined(&CMD_SET)) {
    sub CMD_SET {
	my($sc, $x) = @_;
	eval q( &CSR_WRITE_4($sc,  &TL_HOSTCMD,  &CSR_READ_4($sc,  &TL_HOSTCMD) | ($x)));
    }
}
unless(defined(&CMD_CLR)) {
    sub CMD_CLR {
	my($sc, $x) = @_;
	eval q( &CSR_WRITE_4($sc,  &TL_HOSTCMD,  &CSR_READ_4($sc,  &TL_HOSTCMD) & ~($x)));
    }
}
unless(defined(&EEPROM_START)) {
    sub EEPROM_START () {	 &tl_dio_setbit( &sc,  &TL_NETSIO,  &TL_SIO_ECLOK);  &tl_dio_setbit( &sc,  &TL_NETSIO,  &TL_SIO_EDATA);  &tl_dio_setbit( &sc,  &TL_NETSIO,  &TL_SIO_ETXEN);  &tl_dio_clrbit( &sc,  &TL_NETSIO,  &TL_SIO_EDATA);  &tl_dio_clrbit( &sc,  &TL_NETSIO,  &TL_SIO_ECLOK);;}
}
unless(defined(&EEPROM_STOP)) {
    sub EEPROM_STOP () {	 &tl_dio_clrbit( &sc,  &TL_NETSIO,  &TL_SIO_ETXEN);  &tl_dio_clrbit( &sc,  &TL_NETSIO,  &TL_SIO_EDATA);  &tl_dio_setbit( &sc,  &TL_NETSIO,  &TL_SIO_ECLOK);  &tl_dio_setbit( &sc,  &TL_NETSIO,  &TL_SIO_ETXEN);  &tl_dio_setbit( &sc,  &TL_NETSIO,  &TL_SIO_EDATA);  &tl_dio_clrbit( &sc,  &TL_NETSIO,  &TL_SIO_ETXEN);  &tl_dio_clrbit( &sc,  &TL_NETSIO,  &TL_SIO_ECLOK);;}
}
unless(defined(&EEPROM_CTL_READ)) {
    sub EEPROM_CTL_READ () {	0xa1;}
}
unless(defined(&EEPROM_CTL_WRITE)) {
    sub EEPROM_CTL_WRITE () {	0xa0;}
}
if(defined(&__alpha__)) {
    undef(&vtophys) if defined(&vtophys);
    eval 'sub vtophys {
        my($va) = @_;
	    eval q( &alpha_XXX_dmamap(( &vaddr_t)$va));
    }' unless defined(&vtophys);
}
1;
