require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&URL_IFACE_INDEX)) {
    sub URL_IFACE_INDEX () {	0;}
}
unless(defined(&URL_CONFIG_NO)) {
    sub URL_CONFIG_NO () {	1;}
}
unless(defined(&URL_TX_LIST_CNT)) {
    sub URL_TX_LIST_CNT () {	1;}
}
unless(defined(&URL_RX_LIST_CNT)) {
    sub URL_RX_LIST_CNT () {	1;}
}
unless(defined(&URL_TX_TIMEOUT)) {
    sub URL_TX_TIMEOUT () {	1000;}
}
unless(defined(&URL_TIMEOUT)) {
    sub URL_TIMEOUT () {	10000;}
}
unless(defined(&URL_MAX_MTU)) {
    sub URL_MAX_MTU () {	1536;}
}
unless(defined(&URL_MIN_FRAME_LEN)) {
    sub URL_MIN_FRAME_LEN () {	60;}
}
unless(defined(&URL_BUFSZ)) {
    sub URL_BUFSZ () {	 &URL_MAX_MTU;}
}
unless(defined(&URL_REQ_MEM)) {
    sub URL_REQ_MEM () {	0x5;}
}
unless(defined(&URL_CMD_READMEM)) {
    sub URL_CMD_READMEM () {	1;}
}
unless(defined(&URL_CMD_WRITEMEM)) {
    sub URL_CMD_WRITEMEM () {	2;}
}
unless(defined(&URL_IDR0)) {
    sub URL_IDR0 () {	0x120;}
}
unless(defined(&URL_IDR1)) {
    sub URL_IDR1 () {	0x121;}
}
unless(defined(&URL_IDR2)) {
    sub URL_IDR2 () {	0x122;}
}
unless(defined(&URL_IDR3)) {
    sub URL_IDR3 () {	0x123;}
}
unless(defined(&URL_IDR4)) {
    sub URL_IDR4 () {	0x124;}
}
unless(defined(&URL_IDR5)) {
    sub URL_IDR5 () {	0x125;}
}
unless(defined(&URL_MAR0)) {
    sub URL_MAR0 () {	0x126;}
}
unless(defined(&URL_MAR1)) {
    sub URL_MAR1 () {	0x127;}
}
unless(defined(&URL_MAR2)) {
    sub URL_MAR2 () {	0x128;}
}
unless(defined(&URL_MAR3)) {
    sub URL_MAR3 () {	0x129;}
}
unless(defined(&URL_MAR4)) {
    sub URL_MAR4 () {	0x12a;}
}
unless(defined(&URL_MAR5)) {
    sub URL_MAR5 () {	0x12b;}
}
unless(defined(&URL_MAR6)) {
    sub URL_MAR6 () {	0x12c;}
}
unless(defined(&URL_MAR7)) {
    sub URL_MAR7 () {	0x12d;}
}
unless(defined(&URL_MAR)) {
    sub URL_MAR () {	 &URL_MAR0;}
}
unless(defined(&URL_CR)) {
    sub URL_CR () {	0x12e;}
}
unless(defined(&URL_CR_WEPROM)) {
    sub URL_CR_WEPROM () {	(1<<5);}
}
unless(defined(&URL_CR_SOFT_RST)) {
    sub URL_CR_SOFT_RST () {	(1<<4);}
}
unless(defined(&URL_CR_RE)) {
    sub URL_CR_RE () {	(1<<3);}
}
unless(defined(&URL_CR_TE)) {
    sub URL_CR_TE () {	(1<<2);}
}
unless(defined(&URL_CR_EP3CLREN)) {
    sub URL_CR_EP3CLREN () {	(1<<1);}
}
unless(defined(&URL_CR_AUTOLOAD)) {
    sub URL_CR_AUTOLOAD () {	(1<<0);}
}
unless(defined(&URL_TCR)) {
    sub URL_TCR () {	0x12f;}
}
unless(defined(&URL_TCR_TXRR1)) {
    sub URL_TCR_TXRR1 () {	(1<<7);}
}
unless(defined(&URL_TCR_TXRR0)) {
    sub URL_TCR_TXRR0 () {	(1<<6);}
}
unless(defined(&URL_TCR_IFG1)) {
    sub URL_TCR_IFG1 () {	(1<<4);}
}
unless(defined(&URL_TCR_IFG0)) {
    sub URL_TCR_IFG0 () {	(1<<4);}
}
unless(defined(&URL_TCR_NOCRC)) {
    sub URL_TCR_NOCRC () {	(1<<0);}
}
unless(defined(&URL_RCR)) {
    sub URL_RCR () {	0x130;}
}
unless(defined(&URL_RCR_TAIL)) {
    sub URL_RCR_TAIL () {	(1<<7);}
}
unless(defined(&URL_RCR_AER)) {
    sub URL_RCR_AER () {	(1<<6);}
}
unless(defined(&URL_RCR_AR)) {
    sub URL_RCR_AR () {	(1<<5);}
}
unless(defined(&URL_RCR_AM)) {
    sub URL_RCR_AM () {	(1<<4);}
}
unless(defined(&URL_RCR_AB)) {
    sub URL_RCR_AB () {	(1<<3);}
}
unless(defined(&URL_RCR_AD)) {
    sub URL_RCR_AD () {	(1<<2);}
}
unless(defined(&URL_RCR_AAM)) {
    sub URL_RCR_AAM () {	(1<<1);}
}
unless(defined(&URL_RCR_AAP)) {
    sub URL_RCR_AAP () {	(1<<0);}
}
unless(defined(&URL_MSR)) {
    sub URL_MSR () {	0x137;}
}
unless(defined(&URL_MSR_TXFCE)) {
    sub URL_MSR_TXFCE () {	(1<<7);}
}
unless(defined(&URL_MSR_RXFCE)) {
    sub URL_MSR_RXFCE () {	(1<<6);}
}
unless(defined(&URL_MSR_DUPLEX)) {
    sub URL_MSR_DUPLEX () {	(1<<4);}
}
unless(defined(&URL_MSR_SPEED_100)) {
    sub URL_MSR_SPEED_100 () {	(1<<3);}
}
unless(defined(&URL_MSR_LINK)) {
    sub URL_MSR_LINK () {	(1<<2);}
}
unless(defined(&URL_MSR_TXPF)) {
    sub URL_MSR_TXPF () {	(1<<1);}
}
unless(defined(&URL_MSR_RXPF)) {
    sub URL_MSR_RXPF () {	(1<<0);}
}
unless(defined(&URL_PHYADD)) {
    sub URL_PHYADD () {	0x138;}
}
unless(defined(&URL_PHYADD_MASK)) {
    sub URL_PHYADD_MASK () {	0x1f;}
}
unless(defined(&URL_PHYDAT)) {
    sub URL_PHYDAT () {	0x139;}
}
unless(defined(&URL_PHYCNT)) {
    sub URL_PHYCNT () {	0x13b;}
}
unless(defined(&URL_PHYCNT_PHYOWN)) {
    sub URL_PHYCNT_PHYOWN () {	(1<<6);}
}
unless(defined(&URL_PHYCNT_RWCR)) {
    sub URL_PHYCNT_RWCR () {	(1<<5);}
}
unless(defined(&URL_PHY_PHYOFF_MASK)) {
    sub URL_PHY_PHYOFF_MASK () {	0x1f;}
}
unless(defined(&URL_BMCR)) {
    sub URL_BMCR () {	0x140;}
}
unless(defined(&URL_BMSR)) {
    sub URL_BMSR () {	0x142;}
}
unless(defined(&URL_ANAR)) {
    sub URL_ANAR () {	0x144;}
}
unless(defined(&URL_ANLP)) {
    sub URL_ANLP () {	0x146;}
}
unless(defined(&URL_RXHDR_BYTEC_MASK)) {
    sub URL_RXHDR_BYTEC_MASK () {	(0xfff);}
}
unless(defined(&URL_RXHDR_VALID_MASK)) {
    sub URL_RXHDR_VALID_MASK () {	(0x1000);}
}
unless(defined(&URL_RXHDR_RUNTPKT_MASK)) {
    sub URL_RXHDR_RUNTPKT_MASK () {	(0x2000);}
}
unless(defined(&URL_RXHDR_PHYPKT_MASK)) {
    sub URL_RXHDR_PHYPKT_MASK () {	(0x4000);}
}
unless(defined(&URL_RXHDR_MCASTPKT_MASK)) {
    sub URL_RXHDR_MCASTPKT_MASK () {	(0x8000);}
}
if(defined( &__NetBSD__)) {
    eval 'sub GET_IFP {
        my($sc) = @_;
	    eval q((($sc)-> ($sc_ec->{ec_if})));
    }' unless defined(&GET_IFP);
} else {
    eval 'sub GET_IFP {
        my($sc) = @_;
	    eval q((($sc)-> ($sc_ac->{ac_if})));
    }' unless defined(&GET_IFP);
}
unless(defined(&GET_MII)) {
    sub GET_MII {
	my($sc) = @_;
	eval q((($sc)-> &sc_mii));
    }
}
if(0) {
}
if(defined( &__NetBSD__)) {
} else {
}
unless(defined(&sc_media)) {
    sub sc_media () {	 ($url_mii->{mii_media});}
}
1;
