require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&RL_IDR0)) {
    sub RL_IDR0 () {	0x;}
}
unless(defined(&RL_IDR1)) {
    sub RL_IDR1 () {	0x1;}
}
unless(defined(&RL_IDR2)) {
    sub RL_IDR2 () {	0x2;}
}
unless(defined(&RL_IDR3)) {
    sub RL_IDR3 () {	0x3;}
}
unless(defined(&RL_IDR4)) {
    sub RL_IDR4 () {	0x4;}
}
unless(defined(&RL_IDR5)) {
    sub RL_IDR5 () {	0x5;}
}
unless(defined(&RL_MAR0)) {
    sub RL_MAR0 () {	0x8;}
}
unless(defined(&RL_MAR1)) {
    sub RL_MAR1 () {	0x9;}
}
unless(defined(&RL_MAR2)) {
    sub RL_MAR2 () {	0xa;}
}
unless(defined(&RL_MAR3)) {
    sub RL_MAR3 () {	0xb;}
}
unless(defined(&RL_MAR4)) {
    sub RL_MAR4 () {	0xc;}
}
unless(defined(&RL_MAR5)) {
    sub RL_MAR5 () {	0xd;}
}
unless(defined(&RL_MAR6)) {
    sub RL_MAR6 () {	0xe;}
}
unless(defined(&RL_MAR7)) {
    sub RL_MAR7 () {	0xf;}
}
unless(defined(&RL_TXSTAT0)) {
    sub RL_TXSTAT0 () {	0x10;}
}
unless(defined(&RL_TXSTAT1)) {
    sub RL_TXSTAT1 () {	0x14;}
}
unless(defined(&RL_TXSTAT2)) {
    sub RL_TXSTAT2 () {	0x18;}
}
unless(defined(&RL_TXSTAT3)) {
    sub RL_TXSTAT3 () {	0x1c;}
}
unless(defined(&RL_TXADDR0)) {
    sub RL_TXADDR0 () {	0x20;}
}
unless(defined(&RL_TXADDR1)) {
    sub RL_TXADDR1 () {	0x24;}
}
unless(defined(&RL_TXADDR2)) {
    sub RL_TXADDR2 () {	0x28;}
}
unless(defined(&RL_TXADDR3)) {
    sub RL_TXADDR3 () {	0x2c;}
}
unless(defined(&RL_RXADDR)) {
    sub RL_RXADDR () {	0x30;}
}
unless(defined(&RL_RX_EARLY_BYTES)) {
    sub RL_RX_EARLY_BYTES () {	0x34;}
}
unless(defined(&RL_RX_EARLY_STAT)) {
    sub RL_RX_EARLY_STAT () {	0x36;}
}
unless(defined(&RL_COMMAND)) {
    sub RL_COMMAND () {	0x37;}
}
unless(defined(&RL_CURRXADDR)) {
    sub RL_CURRXADDR () {	0x38;}
}
unless(defined(&RL_CURRXBUF)) {
    sub RL_CURRXBUF () {	0x3a;}
}
unless(defined(&RL_IMR)) {
    sub RL_IMR () {	0x3c;}
}
unless(defined(&RL_ISR)) {
    sub RL_ISR () {	0x3e;}
}
unless(defined(&RL_TXCFG)) {
    sub RL_TXCFG () {	0x40;}
}
unless(defined(&RL_RXCFG)) {
    sub RL_RXCFG () {	0x44;}
}
unless(defined(&RL_TIMERCNT)) {
    sub RL_TIMERCNT () {	0x48;}
}
unless(defined(&RL_MISSEDPKT)) {
    sub RL_MISSEDPKT () {	0x4c;}
}
unless(defined(&RL_EECMD)) {
    sub RL_EECMD () {	0x50;}
}
unless(defined(&RL_CFG0)) {
    sub RL_CFG0 () {	0x51;}
}
unless(defined(&RL_CFG1)) {
    sub RL_CFG1 () {	0x52;}
}
unless(defined(&RL_MEDIASTAT)) {
    sub RL_MEDIASTAT () {	0x58;}
}
unless(defined(&RL_MII)) {
    sub RL_MII () {	0x5a;}
}
unless(defined(&RL_HALTCLK)) {
    sub RL_HALTCLK () {	0x5b;}
}
unless(defined(&RL_MULTIINTR)) {
    sub RL_MULTIINTR () {	0x5c;}
}
unless(defined(&RL_PCIREV)) {
    sub RL_PCIREV () {	0x5e;}
}
unless(defined(&RL_TXSTAT_ALL)) {
    sub RL_TXSTAT_ALL () {	0x60;}
}
unless(defined(&RL_BMCR)) {
    sub RL_BMCR () {	0x62;}
}
unless(defined(&RL_BMSR)) {
    sub RL_BMSR () {	0x64;}
}
unless(defined(&RL_ANAR)) {
    sub RL_ANAR () {	0x66;}
}
unless(defined(&RL_LPAR)) {
    sub RL_LPAR () {	0x68;}
}
unless(defined(&RL_ANER)) {
    sub RL_ANER () {	0x6a;}
}
unless(defined(&RL_DISCCNT)) {
    sub RL_DISCCNT () {	0x6c;}
}
unless(defined(&RL_FALSECAR)) {
    sub RL_FALSECAR () {	0x6e;}
}
unless(defined(&RL_NWAYTST)) {
    sub RL_NWAYTST () {	0x70;}
}
unless(defined(&RL_RX_ER)) {
    sub RL_RX_ER () {	0x72;}
}
unless(defined(&RL_CSCFG)) {
    sub RL_CSCFG () {	0x74;}
}
unless(defined(&RL_DUMPSTATS_LO)) {
    sub RL_DUMPSTATS_LO () {	0x10;}
}
unless(defined(&RL_DUMPSTATS_HI)) {
    sub RL_DUMPSTATS_HI () {	0x14;}
}
unless(defined(&RL_TXLIST_ADDR_LO)) {
    sub RL_TXLIST_ADDR_LO () {	0x20;}
}
unless(defined(&RL_TXLIST_ADDR_HI)) {
    sub RL_TXLIST_ADDR_HI () {	0x24;}
}
unless(defined(&RL_TXLIST_ADDR_HPRIO_LO)) {
    sub RL_TXLIST_ADDR_HPRIO_LO () {	0x28;}
}
unless(defined(&RL_TXLIST_ADDR_HPRIO_HI)) {
    sub RL_TXLIST_ADDR_HPRIO_HI () {	0x2c;}
}
unless(defined(&RL_CFG2)) {
    sub RL_CFG2 () {	0x53;}
}
unless(defined(&RL_TIMERINT)) {
    sub RL_TIMERINT () {	0x54;}
}
unless(defined(&RL_TXSTART)) {
    sub RL_TXSTART () {	0xd9;}
}
unless(defined(&RL_CPLUS_CMD)) {
    sub RL_CPLUS_CMD () {	0xe0;}
}
unless(defined(&RL_RXLIST_ADDR_LO)) {
    sub RL_RXLIST_ADDR_LO () {	0xe4;}
}
unless(defined(&RL_RXLIST_ADDR_HI)) {
    sub RL_RXLIST_ADDR_HI () {	0xe8;}
}
unless(defined(&RL_EARLY_TX_THRESH)) {
    sub RL_EARLY_TX_THRESH () {	0xec;}
}
unless(defined(&RL_TIMERINT_8169)) {
    sub RL_TIMERINT_8169 () {	0x58;}
}
unless(defined(&RL_PHYAR)) {
    sub RL_PHYAR () {	0x60;}
}
unless(defined(&RL_TBICSR)) {
    sub RL_TBICSR () {	0x64;}
}
unless(defined(&RL_TBI_ANAR)) {
    sub RL_TBI_ANAR () {	0x68;}
}
unless(defined(&RL_TBI_LPAR)) {
    sub RL_TBI_LPAR () {	0x6a;}
}
unless(defined(&RL_GMEDIASTAT)) {
    sub RL_GMEDIASTAT () {	0x6c;}
}
unless(defined(&RL_MAXRXPKTLEN)) {
    sub RL_MAXRXPKTLEN () {	0xda;}
}
unless(defined(&RL_GTXSTART)) {
    sub RL_GTXSTART () {	0x38;}
}
unless(defined(&RL_TXCFG_CLRABRT)) {
    sub RL_TXCFG_CLRABRT () {	0x1;}
}
unless(defined(&RL_TXCFG_MAXDMA)) {
    sub RL_TXCFG_MAXDMA () {	0x700;}
}
unless(defined(&RL_TXCFG_CRCAPPEND)) {
    sub RL_TXCFG_CRCAPPEND () {	0x10000;}
}
unless(defined(&RL_TXCFG_LOOPBKTST)) {
    sub RL_TXCFG_LOOPBKTST () {	0x60000;}
}
unless(defined(&RL_TXCFG_IFG2)) {
    sub RL_TXCFG_IFG2 () {	0x80000;}
}
unless(defined(&RL_TXCFG_IFG)) {
    sub RL_TXCFG_IFG () {	0x3000000;}
}
unless(defined(&RL_TXCFG_HWREV)) {
    sub RL_TXCFG_HWREV () {	0x7c800000;}
}
unless(defined(&RL_LOOPTEST_OFF)) {
    sub RL_LOOPTEST_OFF () {	0x;}
}
unless(defined(&RL_LOOPTEST_ON)) {
    sub RL_LOOPTEST_ON () {	0x20000;}
}
unless(defined(&RL_LOOPTEST_ON_CPLUS)) {
    sub RL_LOOPTEST_ON_CPLUS () {	0x60000;}
}
unless(defined(&RL_HWREV_8169)) {
    sub RL_HWREV_8169 () {	0x;}
}
unless(defined(&RL_HWREV_8110S)) {
    sub RL_HWREV_8110S () {	0x800000;}
}
unless(defined(&RL_HWREV_8169S)) {
    sub RL_HWREV_8169S () {	0x4000000;}
}
unless(defined(&RL_HWREV_8169_8110SB)) {
    sub RL_HWREV_8169_8110SB () {	0x10000000;}
}
unless(defined(&RL_HWREV_8169_8110SC)) {
    sub RL_HWREV_8169_8110SC () {	0x18000000;}
}
unless(defined(&RL_HWREV_8168_SPIN1)) {
    sub RL_HWREV_8168_SPIN1 () {	0x30000000;}
}
unless(defined(&RL_HWREV_8100E_SPIN1)) {
    sub RL_HWREV_8100E_SPIN1 () {	0x30800000;}
}
unless(defined(&RL_HWREV_8101E)) {
    sub RL_HWREV_8101E () {	0x34000000;}
}
unless(defined(&RL_HWREV_8168_SPIN2)) {
    sub RL_HWREV_8168_SPIN2 () {	0x38000000;}
}
unless(defined(&RL_HWREV_8100E_SPIN2)) {
    sub RL_HWREV_8100E_SPIN2 () {	0x38800000;}
}
unless(defined(&RL_HWREV_8139)) {
    sub RL_HWREV_8139 () {	0x60000000;}
}
unless(defined(&RL_HWREV_8139A)) {
    sub RL_HWREV_8139A () {	0x70000000;}
}
unless(defined(&RL_HWREV_8139AG)) {
    sub RL_HWREV_8139AG () {	0x70800000;}
}
unless(defined(&RL_HWREV_8139B)) {
    sub RL_HWREV_8139B () {	0x78000000;}
}
unless(defined(&RL_HWREV_8130)) {
    sub RL_HWREV_8130 () {	0x7c000000;}
}
unless(defined(&RL_HWREV_8139C)) {
    sub RL_HWREV_8139C () {	0x74000000;}
}
unless(defined(&RL_HWREV_8139D)) {
    sub RL_HWREV_8139D () {	0x74400000;}
}
unless(defined(&RL_HWREV_8139CPLUS)) {
    sub RL_HWREV_8139CPLUS () {	0x74800000;}
}
unless(defined(&RL_HWREV_8101)) {
    sub RL_HWREV_8101 () {	0x74c00000;}
}
unless(defined(&RL_HWREV_8100)) {
    sub RL_HWREV_8100 () {	0x78800000;}
}
unless(defined(&RL_TXDMA_16BYTES)) {
    sub RL_TXDMA_16BYTES () {	0x;}
}
unless(defined(&RL_TXDMA_32BYTES)) {
    sub RL_TXDMA_32BYTES () {	0x100;}
}
unless(defined(&RL_TXDMA_64BYTES)) {
    sub RL_TXDMA_64BYTES () {	0x200;}
}
unless(defined(&RL_TXDMA_128BYTES)) {
    sub RL_TXDMA_128BYTES () {	0x300;}
}
unless(defined(&RL_TXDMA_256BYTES)) {
    sub RL_TXDMA_256BYTES () {	0x400;}
}
unless(defined(&RL_TXDMA_512BYTES)) {
    sub RL_TXDMA_512BYTES () {	0x500;}
}
unless(defined(&RL_TXDMA_1024BYTES)) {
    sub RL_TXDMA_1024BYTES () {	0x600;}
}
unless(defined(&RL_TXDMA_2048BYTES)) {
    sub RL_TXDMA_2048BYTES () {	0x700;}
}
unless(defined(&RL_TXSTAT_LENMASK)) {
    sub RL_TXSTAT_LENMASK () {	0x1fff;}
}
unless(defined(&RL_TXSTAT_OWN)) {
    sub RL_TXSTAT_OWN () {	0x2000;}
}
unless(defined(&RL_TXSTAT_TX_UNDERRUN)) {
    sub RL_TXSTAT_TX_UNDERRUN () {	0x4000;}
}
unless(defined(&RL_TXSTAT_TX_OK)) {
    sub RL_TXSTAT_TX_OK () {	0x8000;}
}
unless(defined(&RL_TXSTAT_EARLY_THRESH)) {
    sub RL_TXSTAT_EARLY_THRESH () {	0x3f0000;}
}
unless(defined(&RL_TXSTAT_COLLCNT)) {
    sub RL_TXSTAT_COLLCNT () {	0xf000000;}
}
unless(defined(&RL_TXSTAT_CARR_HBEAT)) {
    sub RL_TXSTAT_CARR_HBEAT () {	0x10000000;}
}
unless(defined(&RL_TXSTAT_OUTOFWIN)) {
    sub RL_TXSTAT_OUTOFWIN () {	0x20000000;}
}
unless(defined(&RL_TXSTAT_TXABRT)) {
    sub RL_TXSTAT_TXABRT () {	0x40000000;}
}
unless(defined(&RL_TXSTAT_CARRLOSS)) {
    sub RL_TXSTAT_CARRLOSS () {	0x80000000;}
}
unless(defined(&RL_ISR_RX_OK)) {
    sub RL_ISR_RX_OK () {	0x1;}
}
unless(defined(&RL_ISR_RX_ERR)) {
    sub RL_ISR_RX_ERR () {	0x2;}
}
unless(defined(&RL_ISR_TX_OK)) {
    sub RL_ISR_TX_OK () {	0x4;}
}
unless(defined(&RL_ISR_TX_ERR)) {
    sub RL_ISR_TX_ERR () {	0x8;}
}
unless(defined(&RL_ISR_RX_OVERRUN)) {
    sub RL_ISR_RX_OVERRUN () {	0x10;}
}
unless(defined(&RL_ISR_PKT_UNDERRUN)) {
    sub RL_ISR_PKT_UNDERRUN () {	0x20;}
}
unless(defined(&RL_ISR_LINKCHG)) {
    sub RL_ISR_LINKCHG () {	0x20;}
}
unless(defined(&RL_ISR_FIFO_OFLOW)) {
    sub RL_ISR_FIFO_OFLOW () {	0x40;}
}
unless(defined(&RL_ISR_TX_DESC_UNAVAIL)) {
    sub RL_ISR_TX_DESC_UNAVAIL () {	0x80;}
}
unless(defined(&RL_ISR_SWI)) {
    sub RL_ISR_SWI () {	0x100;}
}
unless(defined(&RL_ISR_CABLE_LEN_CHGD)) {
    sub RL_ISR_CABLE_LEN_CHGD () {	0x2000;}
}
unless(defined(&RL_ISR_PCS_TIMEOUT)) {
    sub RL_ISR_PCS_TIMEOUT () {	0x4000;}
}
unless(defined(&RL_ISR_TIMEOUT_EXPIRED)) {
    sub RL_ISR_TIMEOUT_EXPIRED () {	0x4000;}
}
unless(defined(&RL_ISR_SYSTEM_ERR)) {
    sub RL_ISR_SYSTEM_ERR () {	0x8000;}
}
unless(defined(&RL_INTRS)) {
    sub RL_INTRS () {	( &RL_ISR_TX_OK| &RL_ISR_RX_OK| &RL_ISR_RX_ERR| &RL_ISR_TX_ERR|  &RL_ISR_RX_OVERRUN| &RL_ISR_PKT_UNDERRUN| &RL_ISR_FIFO_OFLOW|  &RL_ISR_PCS_TIMEOUT| &RL_ISR_SYSTEM_ERR);}
}
unless(defined(&RL_INTRS_CPLUS)) {
    sub RL_INTRS_CPLUS () {	( &RL_ISR_RX_OK| &RL_ISR_RX_ERR| &RL_ISR_TX_ERR|  &RL_ISR_RX_OVERRUN| &RL_ISR_PKT_UNDERRUN| &RL_ISR_FIFO_OFLOW|  &RL_ISR_PCS_TIMEOUT| &RL_ISR_SYSTEM_ERR| &RL_ISR_TIMEOUT_EXPIRED);}
}
unless(defined(&RL_MEDIASTAT_RXPAUSE)) {
    sub RL_MEDIASTAT_RXPAUSE () {	0x1;}
}
unless(defined(&RL_MEDIASTAT_TXPAUSE)) {
    sub RL_MEDIASTAT_TXPAUSE () {	0x2;}
}
unless(defined(&RL_MEDIASTAT_LINK)) {
    sub RL_MEDIASTAT_LINK () {	0x4;}
}
unless(defined(&RL_MEDIASTAT_SPEED10)) {
    sub RL_MEDIASTAT_SPEED10 () {	0x8;}
}
unless(defined(&RL_MEDIASTAT_RXFLOWCTL)) {
    sub RL_MEDIASTAT_RXFLOWCTL () {	0x40;}
}
unless(defined(&RL_MEDIASTAT_TXFLOWCTL)) {
    sub RL_MEDIASTAT_TXFLOWCTL () {	0x80;}
}
unless(defined(&RL_RXCFG_RX_ALLPHYS)) {
    sub RL_RXCFG_RX_ALLPHYS () {	0x1;}
}
unless(defined(&RL_RXCFG_RX_INDIV)) {
    sub RL_RXCFG_RX_INDIV () {	0x2;}
}
unless(defined(&RL_RXCFG_RX_MULTI)) {
    sub RL_RXCFG_RX_MULTI () {	0x4;}
}
unless(defined(&RL_RXCFG_RX_BROAD)) {
    sub RL_RXCFG_RX_BROAD () {	0x8;}
}
unless(defined(&RL_RXCFG_RX_RUNT)) {
    sub RL_RXCFG_RX_RUNT () {	0x10;}
}
unless(defined(&RL_RXCFG_RX_ERRPKT)) {
    sub RL_RXCFG_RX_ERRPKT () {	0x20;}
}
unless(defined(&RL_RXCFG_WRAP)) {
    sub RL_RXCFG_WRAP () {	0x80;}
}
unless(defined(&RL_RXCFG_MAXDMA)) {
    sub RL_RXCFG_MAXDMA () {	0x700;}
}
unless(defined(&RL_RXCFG_BURSZ)) {
    sub RL_RXCFG_BURSZ () {	0x1800;}
}
unless(defined(&RL_RXCFG_FIFOTHRESH)) {
    sub RL_RXCFG_FIFOTHRESH () {	0xe000;}
}
unless(defined(&RL_RXCFG_EARLYTHRESH)) {
    sub RL_RXCFG_EARLYTHRESH () {	0x7000000;}
}
unless(defined(&RL_RXDMA_16BYTES)) {
    sub RL_RXDMA_16BYTES () {	0x;}
}
unless(defined(&RL_RXDMA_32BYTES)) {
    sub RL_RXDMA_32BYTES () {	0x100;}
}
unless(defined(&RL_RXDMA_64BYTES)) {
    sub RL_RXDMA_64BYTES () {	0x200;}
}
unless(defined(&RL_RXDMA_128BYTES)) {
    sub RL_RXDMA_128BYTES () {	0x300;}
}
unless(defined(&RL_RXDMA_256BYTES)) {
    sub RL_RXDMA_256BYTES () {	0x400;}
}
unless(defined(&RL_RXDMA_512BYTES)) {
    sub RL_RXDMA_512BYTES () {	0x500;}
}
unless(defined(&RL_RXDMA_1024BYTES)) {
    sub RL_RXDMA_1024BYTES () {	0x600;}
}
unless(defined(&RL_RXDMA_UNLIMITED)) {
    sub RL_RXDMA_UNLIMITED () {	0x700;}
}
unless(defined(&RL_RXBUF_8)) {
    sub RL_RXBUF_8 () {	0x;}
}
unless(defined(&RL_RXBUF_16)) {
    sub RL_RXBUF_16 () {	0x800;}
}
unless(defined(&RL_RXBUF_32)) {
    sub RL_RXBUF_32 () {	0x1000;}
}
unless(defined(&RL_RXBUF_64)) {
    sub RL_RXBUF_64 () {	0x1800;}
}
unless(defined(&RL_RXFIFO_16BYTES)) {
    sub RL_RXFIFO_16BYTES () {	0x;}
}
unless(defined(&RL_RXFIFO_32BYTES)) {
    sub RL_RXFIFO_32BYTES () {	0x2000;}
}
unless(defined(&RL_RXFIFO_64BYTES)) {
    sub RL_RXFIFO_64BYTES () {	0x4000;}
}
unless(defined(&RL_RXFIFO_128BYTES)) {
    sub RL_RXFIFO_128BYTES () {	0x6000;}
}
unless(defined(&RL_RXFIFO_256BYTES)) {
    sub RL_RXFIFO_256BYTES () {	0x8000;}
}
unless(defined(&RL_RXFIFO_512BYTES)) {
    sub RL_RXFIFO_512BYTES () {	0xa000;}
}
unless(defined(&RL_RXFIFO_1024BYTES)) {
    sub RL_RXFIFO_1024BYTES () {	0xc000;}
}
unless(defined(&RL_RXFIFO_NOTHRESH)) {
    sub RL_RXFIFO_NOTHRESH () {	0xe000;}
}
unless(defined(&RL_RXSTAT_RXOK)) {
    sub RL_RXSTAT_RXOK () {	0x1;}
}
unless(defined(&RL_RXSTAT_ALIGNERR)) {
    sub RL_RXSTAT_ALIGNERR () {	0x2;}
}
unless(defined(&RL_RXSTAT_CRCERR)) {
    sub RL_RXSTAT_CRCERR () {	0x4;}
}
unless(defined(&RL_RXSTAT_GIANT)) {
    sub RL_RXSTAT_GIANT () {	0x8;}
}
unless(defined(&RL_RXSTAT_RUNT)) {
    sub RL_RXSTAT_RUNT () {	0x10;}
}
unless(defined(&RL_RXSTAT_BADSYM)) {
    sub RL_RXSTAT_BADSYM () {	0x20;}
}
unless(defined(&RL_RXSTAT_BROAD)) {
    sub RL_RXSTAT_BROAD () {	0x2000;}
}
unless(defined(&RL_RXSTAT_INDIV)) {
    sub RL_RXSTAT_INDIV () {	0x4000;}
}
unless(defined(&RL_RXSTAT_MULTI)) {
    sub RL_RXSTAT_MULTI () {	0x8000;}
}
unless(defined(&RL_RXSTAT_LENMASK)) {
    sub RL_RXSTAT_LENMASK () {	0xffff0000;}
}
unless(defined(&RL_RXSTAT_UNFINISHED)) {
    sub RL_RXSTAT_UNFINISHED () {	0xfff0;}
}
unless(defined(&RL_CMD_EMPTY_RXBUF)) {
    sub RL_CMD_EMPTY_RXBUF () {	0x1;}
}
unless(defined(&RL_CMD_TX_ENB)) {
    sub RL_CMD_TX_ENB () {	0x4;}
}
unless(defined(&RL_CMD_RX_ENB)) {
    sub RL_CMD_RX_ENB () {	0x8;}
}
unless(defined(&RL_CMD_RESET)) {
    sub RL_CMD_RESET () {	0x10;}
}
unless(defined(&RL_EE_DATAOUT)) {
    sub RL_EE_DATAOUT () {	0x1;}
}
unless(defined(&RL_EE_DATAIN)) {
    sub RL_EE_DATAIN () {	0x2;}
}
unless(defined(&RL_EE_CLK)) {
    sub RL_EE_CLK () {	0x4;}
}
unless(defined(&RL_EE_SEL)) {
    sub RL_EE_SEL () {	0x8;}
}
unless(defined(&RL_EE_MODE)) {
    sub RL_EE_MODE () {	(0x40|0x80);}
}
unless(defined(&RL_EEMODE_OFF)) {
    sub RL_EEMODE_OFF () {	0x;}
}
unless(defined(&RL_EEMODE_AUTOLOAD)) {
    sub RL_EEMODE_AUTOLOAD () {	0x40;}
}
unless(defined(&RL_EEMODE_PROGRAM)) {
    sub RL_EEMODE_PROGRAM () {	0x80;}
}
unless(defined(&RL_EEMODE_WRITECFG)) {
    sub RL_EEMODE_WRITECFG () {	(0x80|0x40);}
}
unless(defined(&RL_9346_WRITE)) {
    sub RL_9346_WRITE () {	0x5;}
}
unless(defined(&RL_9346_READ)) {
    sub RL_9346_READ () {	0x6;}
}
unless(defined(&RL_9346_ERASE)) {
    sub RL_9346_ERASE () {	0x7;}
}
unless(defined(&RL_9346_EWEN)) {
    sub RL_9346_EWEN () {	0x4;}
}
unless(defined(&RL_9346_EWEN_ADDR)) {
    sub RL_9346_EWEN_ADDR () {	0x30;}
}
unless(defined(&RL_9456_EWDS)) {
    sub RL_9456_EWDS () {	0x4;}
}
unless(defined(&RL_9346_EWDS_ADDR)) {
    sub RL_9346_EWDS_ADDR () {	0x;}
}
unless(defined(&RL_EECMD_WRITE)) {
    sub RL_EECMD_WRITE () {	0x5;}
}
unless(defined(&RL_EECMD_READ)) {
    sub RL_EECMD_READ () {	0x6;}
}
unless(defined(&RL_EECMD_ERASE)) {
    sub RL_EECMD_ERASE () {	0x7;}
}
unless(defined(&RL_EECMD_LEN)) {
    sub RL_EECMD_LEN () {	4;}
}
unless(defined(&RL_EEADDR_LEN0)) {
    sub RL_EEADDR_LEN0 () {	6;}
}
unless(defined(&RL_EEADDR_LEN1)) {
    sub RL_EEADDR_LEN1 () {	8;}
}
unless(defined(&RL_EECMD_READ_6BIT)) {
    sub RL_EECMD_READ_6BIT () {	0x180;}
}
unless(defined(&RL_EECMD_READ_8BIT)) {
    sub RL_EECMD_READ_8BIT () {	0x600;}
}
unless(defined(&RL_EE_ID)) {
    sub RL_EE_ID () {	0x;}
}
unless(defined(&RL_EE_PCI_VID)) {
    sub RL_EE_PCI_VID () {	0x1;}
}
unless(defined(&RL_EE_PCI_DID)) {
    sub RL_EE_PCI_DID () {	0x2;}
}
unless(defined(&RL_EE_EADDR)) {
    sub RL_EE_EADDR () {	0x7;}
}
unless(defined(&RL_MII_CLK)) {
    sub RL_MII_CLK () {	0x1;}
}
unless(defined(&RL_MII_DATAIN)) {
    sub RL_MII_DATAIN () {	0x2;}
}
unless(defined(&RL_MII_DATAOUT)) {
    sub RL_MII_DATAOUT () {	0x4;}
}
unless(defined(&RL_MII_DIR)) {
    sub RL_MII_DIR () {	0x80;}
}
unless(defined(&RL_CFG0_ROM0)) {
    sub RL_CFG0_ROM0 () {	0x1;}
}
unless(defined(&RL_CFG0_ROM1)) {
    sub RL_CFG0_ROM1 () {	0x2;}
}
unless(defined(&RL_CFG0_ROM2)) {
    sub RL_CFG0_ROM2 () {	0x4;}
}
unless(defined(&RL_CFG0_PL0)) {
    sub RL_CFG0_PL0 () {	0x8;}
}
unless(defined(&RL_CFG0_PL1)) {
    sub RL_CFG0_PL1 () {	0x10;}
}
unless(defined(&RL_CFG0_10MBPS)) {
    sub RL_CFG0_10MBPS () {	0x20;}
}
unless(defined(&RL_CFG0_PCS)) {
    sub RL_CFG0_PCS () {	0x40;}
}
unless(defined(&RL_CFG0_SCR)) {
    sub RL_CFG0_SCR () {	0x80;}
}
unless(defined(&RL_CFG1_PWRDWN)) {
    sub RL_CFG1_PWRDWN () {	0x1;}
}
unless(defined(&RL_CFG1_SLEEP)) {
    sub RL_CFG1_SLEEP () {	0x2;}
}
unless(defined(&RL_CFG1_IOMAP)) {
    sub RL_CFG1_IOMAP () {	0x4;}
}
unless(defined(&RL_CFG1_MEMMAP)) {
    sub RL_CFG1_MEMMAP () {	0x8;}
}
unless(defined(&RL_CFG1_RSVD)) {
    sub RL_CFG1_RSVD () {	0x10;}
}
unless(defined(&RL_CFG1_DRVLOAD)) {
    sub RL_CFG1_DRVLOAD () {	0x20;}
}
unless(defined(&RL_CFG1_LED0)) {
    sub RL_CFG1_LED0 () {	0x40;}
}
unless(defined(&RL_CFG1_FULLDUPLEX)) {
    sub RL_CFG1_FULLDUPLEX () {	0x40;}
}
unless(defined(&RL_CFG1_LED1)) {
    sub RL_CFG1_LED1 () {	0x80;}
}
unless(defined(&RL_DUMPSTATS_START)) {
    sub RL_DUMPSTATS_START () {	0x8;}
}
unless(defined(&RL_TXSTART_SWI)) {
    sub RL_TXSTART_SWI () {	0x1;}
}
unless(defined(&RL_TXSTART_START)) {
    sub RL_TXSTART_START () {	0x40;}
}
unless(defined(&RL_TXSTART_HPRIO_START)) {
    sub RL_TXSTART_HPRIO_START () {	0x80;}
}
unless(defined(&RL_CFG2_BUSFREQ)) {
    sub RL_CFG2_BUSFREQ () {	0x7;}
}
unless(defined(&RL_CFG2_BUSWIDTH)) {
    sub RL_CFG2_BUSWIDTH () {	0x8;}
}
unless(defined(&RL_CFG2_AUXPWRSTS)) {
    sub RL_CFG2_AUXPWRSTS () {	0x10;}
}
unless(defined(&RL_BUSFREQ_33MHZ)) {
    sub RL_BUSFREQ_33MHZ () {	0x;}
}
unless(defined(&RL_BUSFREQ_66MHZ)) {
    sub RL_BUSFREQ_66MHZ () {	0x1;}
}
unless(defined(&RL_BUSWIDTH_32BITS)) {
    sub RL_BUSWIDTH_32BITS () {	0x;}
}
unless(defined(&RL_BUSWIDTH_64BITS)) {
    sub RL_BUSWIDTH_64BITS () {	0x8;}
}
unless(defined(&RL_CPLUSCMD_TXENB)) {
    sub RL_CPLUSCMD_TXENB () {	0x1;}
}
unless(defined(&RL_CPLUSCMD_RXENB)) {
    sub RL_CPLUSCMD_RXENB () {	0x2;}
}
unless(defined(&RL_CPLUSCMD_PCI_MRW)) {
    sub RL_CPLUSCMD_PCI_MRW () {	0x8;}
}
unless(defined(&RL_CPLUSCMD_PCI_DAC)) {
    sub RL_CPLUSCMD_PCI_DAC () {	0x10;}
}
unless(defined(&RL_CPLUSCMD_RXCSUM_ENB)) {
    sub RL_CPLUSCMD_RXCSUM_ENB () {	0x20;}
}
unless(defined(&RL_CPLUSCMD_VLANSTRIP)) {
    sub RL_CPLUSCMD_VLANSTRIP () {	0x40;}
}
unless(defined(&RL_EARLYTXTHRESH_CNT)) {
    sub RL_EARLYTXTHRESH_CNT () {	0x3f;}
}
unless(defined(&RL_PHYAR_PHYDATA)) {
    sub RL_PHYAR_PHYDATA () {	0xffff;}
}
unless(defined(&RL_PHYAR_PHYREG)) {
    sub RL_PHYAR_PHYREG () {	0x1f0000;}
}
unless(defined(&RL_PHYAR_BUSY)) {
    sub RL_PHYAR_BUSY () {	0x80000000;}
}
unless(defined(&RL_GMEDIASTAT_FDX)) {
    sub RL_GMEDIASTAT_FDX () {	0x1;}
}
unless(defined(&RL_GMEDIASTAT_LINK)) {
    sub RL_GMEDIASTAT_LINK () {	0x2;}
}
unless(defined(&RL_GMEDIASTAT_10MBPS)) {
    sub RL_GMEDIASTAT_10MBPS () {	0x4;}
}
unless(defined(&RL_GMEDIASTAT_100MBPS)) {
    sub RL_GMEDIASTAT_100MBPS () {	0x8;}
}
unless(defined(&RL_GMEDIASTAT_1000MBPS)) {
    sub RL_GMEDIASTAT_1000MBPS () {	0x10;}
}
unless(defined(&RL_GMEDIASTAT_RXFLOW)) {
    sub RL_GMEDIASTAT_RXFLOW () {	0x20;}
}
unless(defined(&RL_GMEDIASTAT_TXFLOW)) {
    sub RL_GMEDIASTAT_TXFLOW () {	0x40;}
}
unless(defined(&RL_GMEDIASTAT_TBI)) {
    sub RL_GMEDIASTAT_TBI () {	0x80;}
}
unless(defined(&RL_RX_BUF_SZ)) {
    sub RL_RX_BUF_SZ () {	 &RL_RXBUF_64;}
}
unless(defined(&RL_RXBUFLEN)) {
    sub RL_RXBUFLEN () {	(1<< (( &RL_RX_BUF_SZ >> 11) + 13));}
}
unless(defined(&RL_TX_LIST_CNT)) {
    sub RL_TX_LIST_CNT () {	4;}
}
unless(defined(&RL_MIN_FRAMELEN)) {
    sub RL_MIN_FRAMELEN () {	60;}
}
unless(defined(&RL_TXTHRESH)) {
    sub RL_TXTHRESH {
	my($x) = @_;
	eval q((($x) << 11));
    }
}
unless(defined(&RL_TX_THRESH_INIT)) {
    sub RL_TX_THRESH_INIT () {	96;}
}
unless(defined(&RL_RX_FIFOTHRESH)) {
    sub RL_RX_FIFOTHRESH () {	 &RL_RXFIFO_256BYTES;}
}
unless(defined(&RL_RX_MAXDMA)) {
    sub RL_RX_MAXDMA () {	 &RL_RXDMA_UNLIMITED;}
}
unless(defined(&RL_TX_MAXDMA)) {
    sub RL_TX_MAXDMA () {	 &RL_TXDMA_2048BYTES;}
}
unless(defined(&RL_RXCFG_CONFIG)) {
    sub RL_RXCFG_CONFIG () {	( &RL_RX_FIFOTHRESH| &RL_RX_MAXDMA| &RL_RX_BUF_SZ);}
}
unless(defined(&RL_TXCFG_CONFIG)) {
    sub RL_TXCFG_CONFIG () {	( &RL_TXCFG_IFG| &RL_TX_MAXDMA);}
}
unless(defined(&RL_TDESC_CMD_FRAGLEN)) {
    sub RL_TDESC_CMD_FRAGLEN () {	0xffff;}
}
unless(defined(&RL_TDESC_CMD_TCPCSUM)) {
    sub RL_TDESC_CMD_TCPCSUM () {	0x10000;}
}
unless(defined(&RL_TDESC_CMD_UDPCSUM)) {
    sub RL_TDESC_CMD_UDPCSUM () {	0x20000;}
}
unless(defined(&RL_TDESC_CMD_IPCSUM)) {
    sub RL_TDESC_CMD_IPCSUM () {	0x40000;}
}
unless(defined(&RL_TDESC_CMD_MSSVAL)) {
    sub RL_TDESC_CMD_MSSVAL () {	0x7ff0000;}
}
unless(defined(&RL_TDESC_CMD_LGSEND)) {
    sub RL_TDESC_CMD_LGSEND () {	0x8000000;}
}
unless(defined(&RL_TDESC_CMD_EOF)) {
    sub RL_TDESC_CMD_EOF () {	0x10000000;}
}
unless(defined(&RL_TDESC_CMD_SOF)) {
    sub RL_TDESC_CMD_SOF () {	0x20000000;}
}
unless(defined(&RL_TDESC_CMD_EOR)) {
    sub RL_TDESC_CMD_EOR () {	0x40000000;}
}
unless(defined(&RL_TDESC_CMD_OWN)) {
    sub RL_TDESC_CMD_OWN () {	0x80000000;}
}
unless(defined(&RL_TDESC_VLANCTL_TAG)) {
    sub RL_TDESC_VLANCTL_TAG () {	0x20000;}
}
unless(defined(&RL_TDESC_VLANCTL_DATA)) {
    sub RL_TDESC_VLANCTL_DATA () {	0xffff;}
}
unless(defined(&RL_TDESC_STAT_COLCNT)) {
    sub RL_TDESC_STAT_COLCNT () {	0xf0000;}
}
unless(defined(&RL_TDESC_STAT_EXCESSCOL)) {
    sub RL_TDESC_STAT_EXCESSCOL () {	0x100000;}
}
unless(defined(&RL_TDESC_STAT_LINKFAIL)) {
    sub RL_TDESC_STAT_LINKFAIL () {	0x200000;}
}
unless(defined(&RL_TDESC_STAT_OWINCOL)) {
    sub RL_TDESC_STAT_OWINCOL () {	0x400000;}
}
unless(defined(&RL_TDESC_STAT_TXERRSUM)) {
    sub RL_TDESC_STAT_TXERRSUM () {	0x800000;}
}
unless(defined(&RL_TDESC_STAT_UNDERRUN)) {
    sub RL_TDESC_STAT_UNDERRUN () {	0x2000000;}
}
unless(defined(&RL_TDESC_STAT_OWN)) {
    sub RL_TDESC_STAT_OWN () {	0x80000000;}
}
unless(defined(&RL_RDESC_CMD_EOR)) {
    sub RL_RDESC_CMD_EOR () {	0x40000000;}
}
unless(defined(&RL_RDESC_CMD_OWN)) {
    sub RL_RDESC_CMD_OWN () {	0x80000000;}
}
unless(defined(&RL_RDESC_CMD_BUFLEN)) {
    sub RL_RDESC_CMD_BUFLEN () {	0x1fff;}
}
unless(defined(&RL_RDESC_STAT_OWN)) {
    sub RL_RDESC_STAT_OWN () {	0x80000000;}
}
unless(defined(&RL_RDESC_STAT_EOR)) {
    sub RL_RDESC_STAT_EOR () {	0x40000000;}
}
unless(defined(&RL_RDESC_STAT_SOF)) {
    sub RL_RDESC_STAT_SOF () {	0x20000000;}
}
unless(defined(&RL_RDESC_STAT_EOF)) {
    sub RL_RDESC_STAT_EOF () {	0x10000000;}
}
unless(defined(&RL_RDESC_STAT_FRALIGN)) {
    sub RL_RDESC_STAT_FRALIGN () {	0x8000000;}
}
unless(defined(&RL_RDESC_STAT_MCAST)) {
    sub RL_RDESC_STAT_MCAST () {	0x4000000;}
}
unless(defined(&RL_RDESC_STAT_UCAST)) {
    sub RL_RDESC_STAT_UCAST () {	0x2000000;}
}
unless(defined(&RL_RDESC_STAT_BCAST)) {
    sub RL_RDESC_STAT_BCAST () {	0x1000000;}
}
unless(defined(&RL_RDESC_STAT_BUFOFLOW)) {
    sub RL_RDESC_STAT_BUFOFLOW () {	0x800000;}
}
unless(defined(&RL_RDESC_STAT_FIFOOFLOW)) {
    sub RL_RDESC_STAT_FIFOOFLOW () {	0x400000;}
}
unless(defined(&RL_RDESC_STAT_GIANT)) {
    sub RL_RDESC_STAT_GIANT () {	0x200000;}
}
unless(defined(&RL_RDESC_STAT_RXERRSUM)) {
    sub RL_RDESC_STAT_RXERRSUM () {	0x100000;}
}
unless(defined(&RL_RDESC_STAT_RUNT)) {
    sub RL_RDESC_STAT_RUNT () {	0x80000;}
}
unless(defined(&RL_RDESC_STAT_CRCERR)) {
    sub RL_RDESC_STAT_CRCERR () {	0x40000;}
}
unless(defined(&RL_RDESC_STAT_PROTOID)) {
    sub RL_RDESC_STAT_PROTOID () {	0x30000;}
}
unless(defined(&RL_RDESC_STAT_IPSUMBAD)) {
    sub RL_RDESC_STAT_IPSUMBAD () {	0x8000;}
}
unless(defined(&RL_RDESC_STAT_UDPSUMBAD)) {
    sub RL_RDESC_STAT_UDPSUMBAD () {	0x4000;}
}
unless(defined(&RL_RDESC_STAT_TCPSUMBAD)) {
    sub RL_RDESC_STAT_TCPSUMBAD () {	0x2000;}
}
unless(defined(&RL_RDESC_STAT_FRAGLEN)) {
    sub RL_RDESC_STAT_FRAGLEN () {	0x1fff;}
}
unless(defined(&RL_RDESC_STAT_GFRAGLEN)) {
    sub RL_RDESC_STAT_GFRAGLEN () {	0x3fff;}
}
unless(defined(&RL_RDESC_STAT_ERRS)) {
    sub RL_RDESC_STAT_ERRS () {	( &RL_RDESC_STAT_GIANT| &RL_RDESC_STAT_RUNT|  &RL_RDESC_STAT_CRCERR);}
}
unless(defined(&RL_RDESC_VLANCTL_TAG)) {
    sub RL_RDESC_VLANCTL_TAG () {	0x10000;}
}
unless(defined(&RL_RDESC_VLANCTL_DATA)) {
    sub RL_RDESC_VLANCTL_DATA () {	0xffff;}
}
unless(defined(&RL_PROTOID_NONIP)) {
    sub RL_PROTOID_NONIP () {	0x;}
}
unless(defined(&RL_PROTOID_TCPIP)) {
    sub RL_PROTOID_TCPIP () {	0x10000;}
}
unless(defined(&RL_PROTOID_UDPIP)) {
    sub RL_PROTOID_UDPIP () {	0x20000;}
}
unless(defined(&RL_PROTOID_IP)) {
    sub RL_PROTOID_IP () {	0x30000;}
}
unless(defined(&RL_TCPPKT)) {
    sub RL_TCPPKT {
	my($x) = @_;
	eval q(((($x) &  &RL_RDESC_STAT_PROTOID) ==  &RL_PROTOID_TCPIP));
    }
}
unless(defined(&RL_UDPPKT)) {
    sub RL_UDPPKT {
	my($x) = @_;
	eval q(((($x) &  &RL_RDESC_STAT_PROTOID) ==  &RL_PROTOID_UDPIP));
    }
}
unless(defined(&RL_RX_DESC_CNT)) {
    sub RL_RX_DESC_CNT () {	64;}
}
unless(defined(&RL_TX_DESC_CNT_8139)) {
    sub RL_TX_DESC_CNT_8139 () {	64;}
}
unless(defined(&RL_TX_DESC_CNT_8169)) {
    sub RL_TX_DESC_CNT_8169 () {	1024;}
}
unless(defined(&RL_TX_QLEN)) {
    sub RL_TX_QLEN () {	64;}
}
unless(defined(&RL_NTXDESC_RSVD)) {
    sub RL_NTXDESC_RSVD () {	4;}
}
unless(defined(&RL_RX_LIST_SZ)) {
    sub RL_RX_LIST_SZ () {	( &RL_RX_DESC_CNT * $sizeof{'struct rl_desc'});}
}
unless(defined(&RL_RING_ALIGN)) {
    sub RL_RING_ALIGN () {	256;}
}
unless(defined(&RL_PKTSZ)) {
    sub RL_PKTSZ {
	my($x) = @_;
	eval q((($x) ));
    }
}
if(defined(&__STRICT_ALIGNMENT)) {
    eval 'sub RE_ETHER_ALIGN () {2;}' unless defined(&RE_ETHER_ALIGN);
    eval 'sub RE_RX_DESC_BUFLEN () {( &MCLBYTES -  &RE_ETHER_ALIGN);}' unless defined(&RE_RX_DESC_BUFLEN);
} else {
    eval 'sub RE_ETHER_ALIGN () {0;}' unless defined(&RE_ETHER_ALIGN);
    eval 'sub RE_RX_DESC_BUFLEN () { &MCLBYTES;}' unless defined(&RE_RX_DESC_BUFLEN);
}
unless(defined(&RL_TX_DESC_CNT)) {
    sub RL_TX_DESC_CNT {
	my($sc) = @_;
	eval q((($sc)-> ($rl_ldata->{rl_tx_desc_cnt})));
    }
}
unless(defined(&RL_TX_LIST_SZ)) {
    sub RL_TX_LIST_SZ {
	my($sc) = @_;
	eval q(( &RL_TX_DESC_CNT($sc) * $sizeof{'struct rl_desc'}));
    }
}
unless(defined(&RL_NEXT_TX_DESC)) {
    sub RL_NEXT_TX_DESC {
	my($sc, $x) = @_;
	eval q(((($x) + 1) %  &RL_TX_DESC_CNT($sc)));
    }
}
unless(defined(&RL_NEXT_RX_DESC)) {
    sub RL_NEXT_RX_DESC {
	my($sc, $x) = @_;
	eval q(((($x) + 1) %  &RL_RX_DESC_CNT));
    }
}
unless(defined(&RL_NEXT_TXQ)) {
    sub RL_NEXT_TXQ {
	my($sc, $x) = @_;
	eval q(((($x) + 1) %  &RL_TX_QLEN));
    }
}
unless(defined(&RL_TXDESCSYNC)) {
    sub RL_TXDESCSYNC {
	my($sc, $idx, $ops) = @_;
	eval q( &bus_dmamap_sync(($sc)-> &sc_dmat, ($sc)-> ($rl_ldata->{rl_tx_list_map}), $sizeof{'struct rl_desc'} * ($idx), $sizeof{'struct rl_desc'}, ($ops)));
    }
}
unless(defined(&RL_RXDESCSYNC)) {
    sub RL_RXDESCSYNC {
	my($sc, $idx, $ops) = @_;
	eval q( &bus_dmamap_sync(($sc)-> &sc_dmat, ($sc)-> ($rl_ldata->{rl_rx_list_map}), $sizeof{'struct rl_desc'} * ($idx), $sizeof{'struct rl_desc'}, ($ops)));
    }
}
unless(defined(&RL_ADDR_LO)) {
    sub RL_ADDR_LO {
	my($y) = @_;
	eval q((( &u_int64_t) ($y) & 0xffffffff));
    }
}
unless(defined(&RL_ADDR_HI)) {
    sub RL_ADDR_HI {
	my($y) = @_;
	eval q((( &u_int64_t) ($y) >> 32));
    }
}
unless(defined(&RL_JUMBO_FRAMELEN)) {
    sub RL_JUMBO_FRAMELEN () {	7440;}
}
unless(defined(&RL_JUMBO_MTU)) {
    sub RL_JUMBO_MTU () {	( &RL_JUMBO_FRAMELEN- &ETHER_HDR_LEN- &ETHER_CRC_LEN);}
}
unless(defined(&MAX_NUM_MULTICAST_ADDRESSES)) {
    sub MAX_NUM_MULTICAST_ADDRESSES () {	128;}
}
unless(defined(&RL_INC)) {
    sub RL_INC {
	my($x) = @_;
	eval q(($x = ($x + 1) %  &RL_TX_LIST_CNT));
    }
}
unless(defined(&RL_CUR_TXADDR)) {
    sub RL_CUR_TXADDR {
	my($x) = @_;
	eval q((( ($x->{rl_cdata}->{cur_tx}) * 4) +  &RL_TXADDR0));
    }
}
unless(defined(&RL_CUR_TXSTAT)) {
    sub RL_CUR_TXSTAT {
	my($x) = @_;
	eval q((( ($x->{rl_cdata}->{cur_tx}) * 4) +  &RL_TXSTAT0));
    }
}
unless(defined(&RL_CUR_TXMBUF)) {
    sub RL_CUR_TXMBUF {
	my($x) = @_;
	eval q(( ($x->{rl_cdata}->{rl_tx_chain[$x}->{rl_cdata}->{cur_tx]})));
    }
}
unless(defined(&RL_CUR_TXMAP)) {
    sub RL_CUR_TXMAP {
	my($x) = @_;
	eval q(( ($x->{rl_cdata}->{rl_tx_dmamap[$x}->{rl_cdata}->{cur_tx]})));
    }
}
unless(defined(&RL_LAST_TXADDR)) {
    sub RL_LAST_TXADDR {
	my($x) = @_;
	eval q((( ($x->{rl_cdata}->{last_tx}) * 4) +  &RL_TXADDR0));
    }
}
unless(defined(&RL_LAST_TXSTAT)) {
    sub RL_LAST_TXSTAT {
	my($x) = @_;
	eval q((( ($x->{rl_cdata}->{last_tx}) * 4) +  &RL_TXSTAT0));
    }
}
unless(defined(&RL_LAST_TXMBUF)) {
    sub RL_LAST_TXMBUF {
	my($x) = @_;
	eval q(( ($x->{rl_cdata}->{rl_tx_chain[$x}->{rl_cdata}->{last_tx]})));
    }
}
unless(defined(&RL_LAST_TXMAP)) {
    sub RL_LAST_TXMAP {
	my($x) = @_;
	eval q(( ($x->{rl_cdata}->{rl_tx_dmamap[$x}->{rl_cdata}->{last_tx]})));
    }
}
unless(defined(&RL_MII_STARTDELIM)) {
    sub RL_MII_STARTDELIM () {	0x1;}
}
unless(defined(&RL_MII_READOP)) {
    sub RL_MII_READOP () {	0x2;}
}
unless(defined(&RL_MII_WRITEOP)) {
    sub RL_MII_WRITEOP () {	0x1;}
}
unless(defined(&RL_MII_TURNAROUND)) {
    sub RL_MII_TURNAROUND () {	0x2;}
}
unless(defined(&RL_UNKNOWN)) {
    sub RL_UNKNOWN () {	0;}
}
unless(defined(&RL_8129)) {
    sub RL_8129 () {	1;}
}
unless(defined(&RL_8139)) {
    sub RL_8139 () {	2;}
}
unless(defined(&RL_8139CPLUS)) {
    sub RL_8139CPLUS () {	3;}
}
unless(defined(&RL_8169)) {
    sub RL_8169 () {	4;}
}
unless(defined(&RL_ISCPLUS)) {
    sub RL_ISCPLUS {
	my($x) = @_;
	eval q((($x)-> &rl_type ==  &RL_8139CPLUS || ($x)-> &rl_type ==  &RL_8169));
    }
}
unless(defined(&RL_IP4CSUMTX_MINLEN)) {
    sub RL_IP4CSUMTX_MINLEN () {	28;}
}
unless(defined(&RL_IP4CSUMTX_PADLEN)) {
    sub RL_IP4CSUMTX_PADLEN () {	( &ETHER_HDR_LEN +  &RL_IP4CSUMTX_MINLEN);}
}
unless(defined(&RL_RX_DMAMEM_SZ)) {
    sub RL_RX_DMAMEM_SZ () {	( &RL_RX_LIST_SZ +  &RL_IP4CSUMTX_PADLEN);}
}
unless(defined(&RL_TXPADOFF)) {
    sub RL_TXPADOFF () {	 &RL_RX_LIST_SZ;}
}
unless(defined(&RL_TXPADDADDR)) {
    sub RL_TXPADDADDR {
	my($sc) = @_;
	eval q((($sc)-> ($rl_ldata->{rl_rx_list_map}->{dm_segs[0]}->{ds_addr}) +  &RL_TXPADOFF));
    }
}
unless(defined(&RL_ATTACHED)) {
    sub RL_ATTACHED () {	0x1;}
}
unless(defined(&RL_ENABLED)) {
    sub RL_ENABLED () {	0x2;}
}
unless(defined(&RL_IS_ENABLED)) {
    sub RL_IS_ENABLED {
	my($sc) = @_;
	eval q((($sc)-> &sc_flags &  &RL_ENABLED));
    }
}
unless(defined(&CSR_WRITE_RAW_4)) {
    sub CSR_WRITE_RAW_4 {
	my($sc, $csr, $val) = @_;
	eval q( &bus_space_write_raw_region_4( ($sc->{rl_btag}),  ($sc->{rl_bhandle}), $csr, $val, 4));
    }
}
unless(defined(&CSR_WRITE_4)) {
    sub CSR_WRITE_4 {
	my($sc, $csr, $val) = @_;
	eval q( &bus_space_write_4( ($sc->{rl_btag}),  ($sc->{rl_bhandle}), $csr, $val));
    }
}
unless(defined(&CSR_WRITE_2)) {
    sub CSR_WRITE_2 {
	my($sc, $csr, $val) = @_;
	eval q( &bus_space_write_2( ($sc->{rl_btag}),  ($sc->{rl_bhandle}), $csr, $val));
    }
}
unless(defined(&CSR_WRITE_1)) {
    sub CSR_WRITE_1 {
	my($sc, $csr, $val) = @_;
	eval q( &bus_space_write_1( ($sc->{rl_btag}),  ($sc->{rl_bhandle}), $csr, $val));
    }
}
unless(defined(&CSR_READ_4)) {
    sub CSR_READ_4 {
	my($sc, $csr) = @_;
	eval q( &bus_space_read_4( ($sc->{rl_btag}),  ($sc->{rl_bhandle}), $csr));
    }
}
unless(defined(&CSR_READ_2)) {
    sub CSR_READ_2 {
	my($sc, $csr) = @_;
	eval q( &bus_space_read_2( ($sc->{rl_btag}),  ($sc->{rl_bhandle}), $csr));
    }
}
unless(defined(&CSR_READ_1)) {
    sub CSR_READ_1 {
	my($sc, $csr) = @_;
	eval q( &bus_space_read_1( ($sc->{rl_btag}),  ($sc->{rl_bhandle}), $csr));
    }
}
unless(defined(&CSR_SETBIT_1)) {
    sub CSR_SETBIT_1 {
	my($sc, $offset, $val) = @_;
	eval q( &CSR_WRITE_1($sc, $offset,  &CSR_READ_1($sc, $offset) | ($val)));
    }
}
unless(defined(&CSR_CLRBIT_1)) {
    sub CSR_CLRBIT_1 {
	my($sc, $offset, $val) = @_;
	eval q( &CSR_WRITE_1($sc, $offset,  &CSR_READ_1($sc, $offset) & ~($val)));
    }
}
unless(defined(&CSR_SETBIT_2)) {
    sub CSR_SETBIT_2 {
	my($sc, $offset, $val) = @_;
	eval q( &CSR_WRITE_2($sc, $offset,  &CSR_READ_2($sc, $offset) | ($val)));
    }
}
unless(defined(&CSR_CLRBIT_2)) {
    sub CSR_CLRBIT_2 {
	my($sc, $offset, $val) = @_;
	eval q( &CSR_WRITE_2($sc, $offset,  &CSR_READ_2($sc, $offset) & ~($val)));
    }
}
unless(defined(&CSR_SETBIT_4)) {
    sub CSR_SETBIT_4 {
	my($sc, $offset, $val) = @_;
	eval q( &CSR_WRITE_4($sc, $offset,  &CSR_READ_4($sc, $offset) | ($val)));
    }
}
unless(defined(&CSR_CLRBIT_4)) {
    sub CSR_CLRBIT_4 {
	my($sc, $offset, $val) = @_;
	eval q( &CSR_WRITE_4($sc, $offset,  &CSR_READ_4($sc, $offset) & ~($val)));
    }
}
unless(defined(&RL_TIMEOUT)) {
    sub RL_TIMEOUT () {	1000;}
}
unless(defined(&RT_VENDORID)) {
    sub RT_VENDORID () {	0x10ec;}
}
unless(defined(&RT_DEVICEID_8129)) {
    sub RT_DEVICEID_8129 () {	0x8129;}
}
unless(defined(&RT_DEVICEID_8101E)) {
    sub RT_DEVICEID_8101E () {	0x8136;}
}
unless(defined(&RT_DEVICEID_8138)) {
    sub RT_DEVICEID_8138 () {	0x8138;}
}
unless(defined(&RT_DEVICEID_8139)) {
    sub RT_DEVICEID_8139 () {	0x8139;}
}
unless(defined(&RT_DEVICEID_8169SC)) {
    sub RT_DEVICEID_8169SC () {	0x8167;}
}
unless(defined(&RT_DEVICEID_8168)) {
    sub RT_DEVICEID_8168 () {	0x8168;}
}
unless(defined(&RT_DEVICEID_8169)) {
    sub RT_DEVICEID_8169 () {	0x8169;}
}
unless(defined(&RT_DEVICEID_8100)) {
    sub RT_DEVICEID_8100 () {	0x8100;}
}
unless(defined(&ACCTON_VENDORID)) {
    sub ACCTON_VENDORID () {	0x1113;}
}
unless(defined(&ACCTON_DEVICEID_5030)) {
    sub ACCTON_DEVICEID_5030 () {	0x1211;}
}
unless(defined(&DELTA_VENDORID)) {
    sub DELTA_VENDORID () {	0x1500;}
}
unless(defined(&DELTA_DEVICEID_8139)) {
    sub DELTA_DEVICEID_8139 () {	0x1360;}
}
unless(defined(&ADDTRON_VENDORID)) {
    sub ADDTRON_VENDORID () {	0x4033;}
}
unless(defined(&ADDTRON_DEVICEID_8139)) {
    sub ADDTRON_DEVICEID_8139 () {	0x1360;}
}
unless(defined(&DLINK_VENDORID)) {
    sub DLINK_VENDORID () {	0x1186;}
}
unless(defined(&DLINK_DEVICEID_8139)) {
    sub DLINK_DEVICEID_8139 () {	0x1300;}
}
unless(defined(&DLINK_DEVICEID_8139_2)) {
    sub DLINK_DEVICEID_8139_2 () {	0x1340;}
}
unless(defined(&ABOCOM_DEVICEID_8139)) {
    sub ABOCOM_DEVICEID_8139 () {	0xab06;}
}
unless(defined(&RL_PCI_VENDOR_ID)) {
    sub RL_PCI_VENDOR_ID () {	0x;}
}
unless(defined(&RL_PCI_DEVICE_ID)) {
    sub RL_PCI_DEVICE_ID () {	0x2;}
}
unless(defined(&RL_PCI_COMMAND)) {
    sub RL_PCI_COMMAND () {	0x4;}
}
unless(defined(&RL_PCI_STATUS)) {
    sub RL_PCI_STATUS () {	0x6;}
}
unless(defined(&RL_PCI_CLASSCODE)) {
    sub RL_PCI_CLASSCODE () {	0x9;}
}
unless(defined(&RL_PCI_LATENCY_TIMER)) {
    sub RL_PCI_LATENCY_TIMER () {	0xd;}
}
unless(defined(&RL_PCI_HEADER_TYPE)) {
    sub RL_PCI_HEADER_TYPE () {	0xe;}
}
unless(defined(&RL_PCI_LOIO)) {
    sub RL_PCI_LOIO () {	0x10;}
}
unless(defined(&RL_PCI_LOMEM)) {
    sub RL_PCI_LOMEM () {	0x14;}
}
unless(defined(&RL_PCI_BIOSROM)) {
    sub RL_PCI_BIOSROM () {	0x30;}
}
unless(defined(&RL_PCI_INTLINE)) {
    sub RL_PCI_INTLINE () {	0x3c;}
}
unless(defined(&RL_PCI_INTPIN)) {
    sub RL_PCI_INTPIN () {	0x3d;}
}
unless(defined(&RL_PCI_MINGNT)) {
    sub RL_PCI_MINGNT () {	0x3e;}
}
unless(defined(&RL_PCI_MINLAT)) {
    sub RL_PCI_MINLAT () {	0xf;}
}
unless(defined(&RL_PCI_RESETOPT)) {
    sub RL_PCI_RESETOPT () {	0x48;}
}
unless(defined(&RL_PCI_EEPROM_DATA)) {
    sub RL_PCI_EEPROM_DATA () {	0x4c;}
}
unless(defined(&RL_PCI_CAPID)) {
    sub RL_PCI_CAPID () {	0x50;}
}
unless(defined(&RL_PCI_NEXTPTR)) {
    sub RL_PCI_NEXTPTR () {	0x51;}
}
unless(defined(&RL_PCI_PWRMGMTCAP)) {
    sub RL_PCI_PWRMGMTCAP () {	0x52;}
}
unless(defined(&RL_PCI_PWRMGMTCTRL)) {
    sub RL_PCI_PWRMGMTCTRL () {	0x54;}
}
unless(defined(&RL_PSTATE_MASK)) {
    sub RL_PSTATE_MASK () {	0x3;}
}
unless(defined(&RL_PSTATE_D0)) {
    sub RL_PSTATE_D0 () {	0x;}
}
unless(defined(&RL_PSTATE_D1)) {
    sub RL_PSTATE_D1 () {	0x2;}
}
unless(defined(&RL_PSTATE_D2)) {
    sub RL_PSTATE_D2 () {	0x2;}
}
unless(defined(&RL_PSTATE_D3)) {
    sub RL_PSTATE_D3 () {	0x3;}
}
unless(defined(&RL_PME_EN)) {
    sub RL_PME_EN () {	0x10;}
}
unless(defined(&RL_PME_STATUS)) {
    sub RL_PME_STATUS () {	0x8000;}
}
1;
