require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&UDAV_IFACE_INDEX)) {
    sub UDAV_IFACE_INDEX () {	0;}
}
unless(defined(&UDAV_CONFIG_NO)) {
    sub UDAV_CONFIG_NO () {	1;}
}
unless(defined(&UDAV_TX_LIST_CNT)) {
    sub UDAV_TX_LIST_CNT () {	1;}
}
unless(defined(&UDAV_RX_LIST_CNT)) {
    sub UDAV_RX_LIST_CNT () {	1;}
}
unless(defined(&UDAV_TX_TIMEOUT)) {
    sub UDAV_TX_TIMEOUT () {	1000;}
}
unless(defined(&UDAV_TIMEOUT)) {
    sub UDAV_TIMEOUT () {	10000;}
}
unless(defined(&UDAV_REQ_REG_READ)) {
    sub UDAV_REQ_REG_READ () {	0x;}
}
unless(defined(&UDAV_REQ_REG_WRITE)) {
    sub UDAV_REQ_REG_WRITE () {	0x1;}
}
unless(defined(&UDAV_REQ_REG_WRITE1)) {
    sub UDAV_REQ_REG_WRITE1 () {	0x3;}
}
unless(defined(&UDAV_REQ_MEM_READ)) {
    sub UDAV_REQ_MEM_READ () {	0x2;}
}
unless(defined(&UDAV_REQ_MEM_WRITE)) {
    sub UDAV_REQ_MEM_WRITE () {	0x5;}
}
unless(defined(&UDAV_REQ_MEM_WRITE1)) {
    sub UDAV_REQ_MEM_WRITE1 () {	0x7;}
}
unless(defined(&UDAV_NCR)) {
    sub UDAV_NCR () {	0x;}
}
unless(defined(&UDAV_NCR_EXT_PHY)) {
    sub UDAV_NCR_EXT_PHY () {	(1<<7);}
}
unless(defined(&UDAV_NCR_WAKEEN)) {
    sub UDAV_NCR_WAKEEN () {	(1<<6);}
}
unless(defined(&UDAV_NCR_FCOL)) {
    sub UDAV_NCR_FCOL () {	(1<<4);}
}
unless(defined(&UDAV_NCR_FDX)) {
    sub UDAV_NCR_FDX () {	(1<<3);}
}
unless(defined(&UDAV_NCR_LBK1)) {
    sub UDAV_NCR_LBK1 () {	(1<<2);}
}
unless(defined(&UDAV_NCR_LBK0)) {
    sub UDAV_NCR_LBK0 () {	(1<<1);}
}
unless(defined(&UDAV_NCR_RST)) {
    sub UDAV_NCR_RST () {	(1<<0);}
}
unless(defined(&UDAV_RCR)) {
    sub UDAV_RCR () {	0x5;}
}
unless(defined(&UDAV_RCR_WTDIS)) {
    sub UDAV_RCR_WTDIS () {	(1<<6);}
}
unless(defined(&UDAV_RCR_DIS_LONG)) {
    sub UDAV_RCR_DIS_LONG () {	(1<<5);}
}
unless(defined(&UDAV_RCR_DIS_CRC)) {
    sub UDAV_RCR_DIS_CRC () {	(1<<4);}
}
unless(defined(&UDAV_RCR_ALL)) {
    sub UDAV_RCR_ALL () {	(1<<3);}
}
unless(defined(&UDAV_RCR_RUNT)) {
    sub UDAV_RCR_RUNT () {	(1<<2);}
}
unless(defined(&UDAV_RCR_PRMSC)) {
    sub UDAV_RCR_PRMSC () {	(1<<1);}
}
unless(defined(&UDAV_RCR_RXEN)) {
    sub UDAV_RCR_RXEN () {	(1<<0);}
}
unless(defined(&UDAV_RSR)) {
    sub UDAV_RSR () {	0x6;}
}
unless(defined(&UDAV_RSR_RF)) {
    sub UDAV_RSR_RF () {	(1<<7);}
}
unless(defined(&UDAV_RSR_MF)) {
    sub UDAV_RSR_MF () {	(1<<6);}
}
unless(defined(&UDAV_RSR_LCS)) {
    sub UDAV_RSR_LCS () {	(1<<5);}
}
unless(defined(&UDAV_RSR_RWTO)) {
    sub UDAV_RSR_RWTO () {	(1<<4);}
}
unless(defined(&UDAV_RSR_PLE)) {
    sub UDAV_RSR_PLE () {	(1<<3);}
}
unless(defined(&UDAV_RSR_AE)) {
    sub UDAV_RSR_AE () {	(1<<2);}
}
unless(defined(&UDAV_RSR_CE)) {
    sub UDAV_RSR_CE () {	(1<<1);}
}
unless(defined(&UDAV_RSR_FOE)) {
    sub UDAV_RSR_FOE () {	(1<<0);}
}
unless(defined(&UDAV_RSR_ERR)) {
    sub UDAV_RSR_ERR () {	( &UDAV_RSR_RF |  &UDAV_RSR_LCS |  &UDAV_RSR_RWTO |  &UDAV_RSR_PLE |  &UDAV_RSR_AE |  &UDAV_RSR_CE |  &UDAV_RSR_FOE);}
}
unless(defined(&UDAV_EPCR)) {
    sub UDAV_EPCR () {	0xb;}
}
unless(defined(&UDAV_EPCR_REEP)) {
    sub UDAV_EPCR_REEP () {	(1<<5);}
}
unless(defined(&UDAV_EPCR_WEP)) {
    sub UDAV_EPCR_WEP () {	(1<<4);}
}
unless(defined(&UDAV_EPCR_EPOS)) {
    sub UDAV_EPCR_EPOS () {	(1<<3);}
}
unless(defined(&UDAV_EPCR_ERPRR)) {
    sub UDAV_EPCR_ERPRR () {	(1<<2);}
}
unless(defined(&UDAV_EPCR_ERPRW)) {
    sub UDAV_EPCR_ERPRW () {	(1<<1);}
}
unless(defined(&UDAV_EPCR_ERRE)) {
    sub UDAV_EPCR_ERRE () {	(1<<0);}
}
unless(defined(&UDAV_EPAR)) {
    sub UDAV_EPAR () {	0xc;}
}
unless(defined(&UDAV_EPAR_PHY_ADR1)) {
    sub UDAV_EPAR_PHY_ADR1 () {	(1<<7);}
}
unless(defined(&UDAV_EPAR_PHY_ADR0)) {
    sub UDAV_EPAR_PHY_ADR0 () {	(1<<6);}
}
unless(defined(&UDAV_EPAR_EROA)) {
    sub UDAV_EPAR_EROA () {	(1<<0);}
}
unless(defined(&UDAV_EPAR_EROA_MASK)) {
    sub UDAV_EPAR_EROA_MASK () {	(0x1f);}
}
unless(defined(&UDAV_EPDRL)) {
    sub UDAV_EPDRL () {	0xd;}
}
unless(defined(&UDAV_EPDRH)) {
    sub UDAV_EPDRH () {	0xe;}
}
unless(defined(&UDAV_PAR0)) {
    sub UDAV_PAR0 () {	0x10;}
}
unless(defined(&UDAV_PAR1)) {
    sub UDAV_PAR1 () {	0x11;}
}
unless(defined(&UDAV_PAR2)) {
    sub UDAV_PAR2 () {	0x12;}
}
unless(defined(&UDAV_PAR3)) {
    sub UDAV_PAR3 () {	0x13;}
}
unless(defined(&UDAV_PAR4)) {
    sub UDAV_PAR4 () {	0x14;}
}
unless(defined(&UDAV_PAR5)) {
    sub UDAV_PAR5 () {	0x15;}
}
unless(defined(&UDAV_PAR)) {
    sub UDAV_PAR () {	 &UDAV_PAR0;}
}
unless(defined(&UDAV_MAR0)) {
    sub UDAV_MAR0 () {	0x16;}
}
unless(defined(&UDAV_MAR1)) {
    sub UDAV_MAR1 () {	0x17;}
}
unless(defined(&UDAV_MAR2)) {
    sub UDAV_MAR2 () {	0x18;}
}
unless(defined(&UDAV_MAR3)) {
    sub UDAV_MAR3 () {	0x19;}
}
unless(defined(&UDAV_MAR4)) {
    sub UDAV_MAR4 () {	0x1a;}
}
unless(defined(&UDAV_MAR5)) {
    sub UDAV_MAR5 () {	0x1b;}
}
unless(defined(&UDAV_MAR6)) {
    sub UDAV_MAR6 () {	0x1c;}
}
unless(defined(&UDAV_MAR7)) {
    sub UDAV_MAR7 () {	0x1d;}
}
unless(defined(&UDAV_MAR)) {
    sub UDAV_MAR () {	 &UDAV_MAR0;}
}
unless(defined(&UDAV_GPCR)) {
    sub UDAV_GPCR () {	0x1e;}
}
unless(defined(&UDAV_GPCR_GEP_CNTL6)) {
    sub UDAV_GPCR_GEP_CNTL6 () {	(1<<6);}
}
unless(defined(&UDAV_GPCR_GEP_CNTL5)) {
    sub UDAV_GPCR_GEP_CNTL5 () {	(1<<5);}
}
unless(defined(&UDAV_GPCR_GEP_CNTL4)) {
    sub UDAV_GPCR_GEP_CNTL4 () {	(1<<4);}
}
unless(defined(&UDAV_GPCR_GEP_CNTL3)) {
    sub UDAV_GPCR_GEP_CNTL3 () {	(1<<3);}
}
unless(defined(&UDAV_GPCR_GEP_CNTL2)) {
    sub UDAV_GPCR_GEP_CNTL2 () {	(1<<2);}
}
unless(defined(&UDAV_GPCR_GEP_CNTL1)) {
    sub UDAV_GPCR_GEP_CNTL1 () {	(1<<1);}
}
unless(defined(&UDAV_GPCR_GEP_CNTL0)) {
    sub UDAV_GPCR_GEP_CNTL0 () {	(1<<0);}
}
unless(defined(&UDAV_GPR)) {
    sub UDAV_GPR () {	0x1f;}
}
unless(defined(&UDAV_GPR_GEPIO6)) {
    sub UDAV_GPR_GEPIO6 () {	(1<<6);}
}
unless(defined(&UDAV_GPR_GEPIO5)) {
    sub UDAV_GPR_GEPIO5 () {	(1<<5);}
}
unless(defined(&UDAV_GPR_GEPIO4)) {
    sub UDAV_GPR_GEPIO4 () {	(1<<4);}
}
unless(defined(&UDAV_GPR_GEPIO3)) {
    sub UDAV_GPR_GEPIO3 () {	(1<<3);}
}
unless(defined(&UDAV_GPR_GEPIO2)) {
    sub UDAV_GPR_GEPIO2 () {	(1<<2);}
}
unless(defined(&UDAV_GPR_GEPIO1)) {
    sub UDAV_GPR_GEPIO1 () {	(1<<1);}
}
unless(defined(&UDAV_GPR_GEPIO0)) {
    sub UDAV_GPR_GEPIO0 () {	(1<<0);}
}
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 () {	 ($udav_mii->{mii_media});}
}
unless(defined(&UDAV_RX_HDRLEN)) {
    sub UDAV_RX_HDRLEN () {	$sizeof{'struct udav_rx_hdr'};}
}
unless(defined(&UDAV_MAX_MTU)) {
    sub UDAV_MAX_MTU () {	1536;}
}
unless(defined(&UDAV_MIN_FRAME_LEN)) {
    sub UDAV_MIN_FRAME_LEN () {	60;}
}
unless(defined(&UDAV_BUFSZ)) {
    sub UDAV_BUFSZ () {	 &UDAV_MAX_MTU +  &UDAV_RX_HDRLEN;}
}
1;
