require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&BCE_PCI_BAR0)) {
    sub BCE_PCI_BAR0 () {	0x10;}
}
unless(defined(&BCE_REG_WIN)) {
    sub BCE_REG_WIN () {	0x80;}
}
unless(defined(&BCE_SONICS_WIN)) {
    sub BCE_SONICS_WIN () {	0x18002000;}
}
unless(defined(&BCE_SPCI_TR2)) {
    sub BCE_SPCI_TR2 () {	0x108;}
}
unless(defined(&SBTOPCI_PREF)) {
    sub SBTOPCI_PREF () {	0x4;}
}
unless(defined(&SBTOPCI_BURST)) {
    sub SBTOPCI_BURST () {	0x8;}
}
unless(defined(&BCE_SBINTVEC)) {
    sub BCE_SBINTVEC () {	0xf94;}
}
unless(defined(&SBIV_ENET0)) {
    sub SBIV_ENET0 () {	0x2;}
}
unless(defined(&SBIV_ENET1)) {
    sub SBIV_ENET1 () {	0x40;}
}
unless(defined(&BCE_DEVCTL)) {
    sub BCE_DEVCTL () {	0x;}
}
unless(defined(&BCE_DC_IP)) {
    sub BCE_DC_IP () {	0x400;}
}
unless(defined(&BCE_DC_ER)) {
    sub BCE_DC_ER () {	0x8000;}
}
unless(defined(&BCE_INT_STS)) {
    sub BCE_INT_STS () {	0x20;}
}
unless(defined(&BCE_INT_MASK)) {
    sub BCE_INT_MASK () {	0x24;}
}
unless(defined(&I_TO)) {
    sub I_TO () {	0x80;}
}
unless(defined(&I_PC)) {
    sub I_PC () {	0x400;}
}
unless(defined(&I_PD)) {
    sub I_PD () {	0x800;}
}
unless(defined(&I_DE)) {
    sub I_DE () {	0x1000;}
}
unless(defined(&I_RU)) {
    sub I_RU () {	0x2000;}
}
unless(defined(&I_RO)) {
    sub I_RO () {	0x4000;}
}
unless(defined(&I_XU)) {
    sub I_XU () {	0x8000;}
}
unless(defined(&I_RI)) {
    sub I_RI () {	0x10000;}
}
unless(defined(&I_XI)) {
    sub I_XI () {	0x1000000;}
}
unless(defined(&BCE_MACCTL)) {
    sub BCE_MACCTL () {	0xa8;}
}
unless(defined(&BCE_EMC_CRC32_ENAB)) {
    sub BCE_EMC_CRC32_ENAB () {	0x1;}
}
unless(defined(&BCE_EMC_PDOWN)) {
    sub BCE_EMC_PDOWN () {	0x4;}
}
unless(defined(&BCE_EMC_EDET)) {
    sub BCE_EMC_EDET () {	0x8;}
}
unless(defined(&BCE_EMC_LED)) {
    sub BCE_EMC_LED () {	0xe0;}
}
unless(defined(&BCE_DMAI_CTL)) {
    sub BCE_DMAI_CTL () {	0x100;}
}
unless(defined(&BCE_DMA_TXCTL)) {
    sub BCE_DMA_TXCTL () {	0x200;}
}
unless(defined(&XC_XE)) {
    sub XC_XE () {	0x1;}
}
unless(defined(&XC_LE)) {
    sub XC_LE () {	0x4;}
}
unless(defined(&BCE_DMA_TXADDR)) {
    sub BCE_DMA_TXADDR () {	0x204;}
}
unless(defined(&BCE_DMA_DPTR)) {
    sub BCE_DMA_DPTR () {	0x208;}
}
unless(defined(&BCE_DMA_TXSTATUS)) {
    sub BCE_DMA_TXSTATUS () {	0x20c;}
}
unless(defined(&BCE_DMA_RXCTL)) {
    sub BCE_DMA_RXCTL () {	0x210;}
}
unless(defined(&BCE_DMA_RXADDR)) {
    sub BCE_DMA_RXADDR () {	0x214;}
}
unless(defined(&BCE_DMA_RXDPTR)) {
    sub BCE_DMA_RXDPTR () {	0x218;}
}
unless(defined(&BCE_DMA_RXSTATUS)) {
    sub BCE_DMA_RXSTATUS () {	0x21c;}
}
unless(defined(&RS_CD_MASK)) {
    sub RS_CD_MASK () {	0xfff;}
}
unless(defined(&RS_DMA_IDLE)) {
    sub RS_DMA_IDLE () {	0x2000;}
}
unless(defined(&RS_ERROR)) {
    sub RS_ERROR () {	0xf0000;}
}
unless(defined(&BCE_RX_CTL)) {
    sub BCE_RX_CTL () {	0x400;}
}
unless(defined(&ERC_DB)) {
    sub ERC_DB () {	0x1;}
}
unless(defined(&ERC_AM)) {
    sub ERC_AM () {	0x2;}
}
unless(defined(&ERC_PE)) {
    sub ERC_PE () {	0x8;}
}
unless(defined(&BCE_RX_MAX)) {
    sub BCE_RX_MAX () {	0x404;}
}
unless(defined(&BCE_TX_MAX)) {
    sub BCE_TX_MAX () {	0x408;}
}
unless(defined(&BCE_MI_CTL)) {
    sub BCE_MI_CTL () {	0x410;}
}
unless(defined(&BCE_MI_COMM)) {
    sub BCE_MI_COMM () {	0x414;}
}
unless(defined(&BCE_MI_STS)) {
    sub BCE_MI_STS () {	0x41c;}
}
unless(defined(&BCE_MIINTR)) {
    sub BCE_MIINTR () {	0x1;}
}
unless(defined(&BCE_FILT_LOW)) {
    sub BCE_FILT_LOW () {	0x420;}
}
unless(defined(&BCE_FILT_HI)) {
    sub BCE_FILT_HI () {	0x424;}
}
unless(defined(&BCE_FILT_CTL)) {
    sub BCE_FILT_CTL () {	0x428;}
}
unless(defined(&BCE_ENET_CTL)) {
    sub BCE_ENET_CTL () {	0x42c;}
}
unless(defined(&EC_EE)) {
    sub EC_EE () {	0x1;}
}
unless(defined(&EC_ED)) {
    sub EC_ED () {	0x2;}
}
unless(defined(&EC_ES)) {
    sub EC_ES () {	0x4;}
}
unless(defined(&EC_EP)) {
    sub EC_EP () {	0x8;}
}
unless(defined(&BCE_TX_CTL)) {
    sub BCE_TX_CTL () {	0x430;}
}
unless(defined(&EXC_FD)) {
    sub EXC_FD () {	0x1;}
}
unless(defined(&BCE_TX_WATER)) {
    sub BCE_TX_WATER () {	0x434;}
}
unless(defined(&BCE_RX_PKTS)) {
    sub BCE_RX_PKTS () {	0x58c;}
}
unless(defined(&BCE_SBIMSTATE)) {
    sub BCE_SBIMSTATE () {	0xf90;}
}
unless(defined(&BCE_SBTMSTATELOW)) {
    sub BCE_SBTMSTATELOW () {	0xf98;}
}
unless(defined(&BCE_SBTMSTATEHI)) {
    sub BCE_SBTMSTATEHI () {	0xf9c;}
}
unless(defined(&SBTML_RESET)) {
    sub SBTML_RESET () {	0x1;}
}
unless(defined(&SBTML_REJ)) {
    sub SBTML_REJ () {	0x2;}
}
unless(defined(&SBTML_CLK)) {
    sub SBTML_CLK () {	0x10000;}
}
unless(defined(&SBTML_FGC)) {
    sub SBTML_FGC () {	0x20000;}
}
unless(defined(&BCE_MICOMM_DATA)) {
    sub BCE_MICOMM_DATA () {	0xffff;}
}
unless(defined(&BCE_MIREG)) {
    sub BCE_MIREG {
	my($x) = @_;
	eval q((($x & 0x1f) << 18));
    }
}
unless(defined(&BCE_MIPHY)) {
    sub BCE_MIPHY {
	my($x) = @_;
	eval q((($x & 0x1f) << 23));
    }
}
unless(defined(&BCE_SPROM_BASE)) {
    sub BCE_SPROM_BASE () {	0x1000;}
}
unless(defined(&BCE_PHY)) {
    sub BCE_PHY () {	( &BCE_SPROM_BASE + 0x5a);}
}
unless(defined(&BCE_ENET0)) {
    sub BCE_ENET0 () {	( &BCE_SPROM_BASE + 0x4f);}
}
unless(defined(&BCE_ENET1)) {
    sub BCE_ENET1 () {	( &BCE_SPROM_BASE + 0x4e);}
}
unless(defined(&BCE_ENET2)) {
    sub BCE_ENET2 () {	( &BCE_SPROM_BASE + 0x51);}
}
unless(defined(&BCE_ENET3)) {
    sub BCE_ENET3 () {	( &BCE_SPROM_BASE + 0x50);}
}
unless(defined(&BCE_ENET4)) {
    sub BCE_ENET4 () {	( &BCE_SPROM_BASE + 0x53);}
}
unless(defined(&BCE_ENET5)) {
    sub BCE_ENET5 () {	( &BCE_SPROM_BASE + 0x52);}
}
unless(defined(&SBIM_INBAND_ERROR)) {
    sub SBIM_INBAND_ERROR () {	0x20000;}
}
unless(defined(&SBIM_TIMEOUT)) {
    sub SBIM_TIMEOUT () {	0x40000;}
}
unless(defined(&SBIM_ERRORBITS)) {
    sub SBIM_ERRORBITS () {	( &SBIM_INBAND_ERROR| &SBIM_TIMEOUT);}
}
1;
