require '_h2ph_pre.ph';

unless(defined(&WX_VENDOR_INTEL)) {
    sub WX_VENDOR_INTEL () {	0x8086;}
}
unless(defined(&WX_PRODUCT_82452)) {
    sub WX_PRODUCT_82452 () {	0x1000;}
}
unless(defined(&WX_PRODUCT_LIVENGOOD)) {
    sub WX_PRODUCT_LIVENGOOD () {	0x1001;}
}
unless(defined(&WX_PRODUCT_82452_SC)) {
    sub WX_PRODUCT_82452_SC () {	0x1003;}
}
unless(defined(&WX_PRODUCT_82543)) {
    sub WX_PRODUCT_82543 () {	0x1004;}
}
unless(defined(&WX_MMBA)) {
    sub WX_MMBA () {	0x10;}
}
unless(defined(&MWI)) {
    sub MWI () {	0x10;}
}
unless(defined(&WX_CACHELINE_SIZE)) {
    sub WX_CACHELINE_SIZE () {	0x20;}
}
unless(defined(&WX_WISEMAN_0)) {
    sub WX_WISEMAN_0 () {	0x10000000;}
}
unless(defined(&WX_WISEMAN_2_0)) {
    sub WX_WISEMAN_2_0 () {	0x10000002;}
}
unless(defined(&WX_WISEMAN_2_1)) {
    sub WX_WISEMAN_2_1 () {	0x10000003;}
}
unless(defined(&WX_LIVENGOOD)) {
    sub WX_LIVENGOOD () {	0x10010000;}
}
unless(defined(&WX_LIVENGOOD_CU)) {
    sub WX_LIVENGOOD_CU () {	0x10040002;}
}
unless(defined(&IS_WISEMAN)) {
    sub IS_WISEMAN {
	local($sc) = @_;
	eval q((($sc)-> &wx_idnrev <  &WX_LIVENGOOD));
    }
}
unless(defined(&IS_LIVENGOOD)) {
    sub IS_LIVENGOOD {
	local($sc) = @_;
	eval q((($sc)-> &wx_idnrev >=  &WX_LIVENGOOD));
    }
}
unless(defined(&IS_LIVENGOOD_CU)) {
    sub IS_LIVENGOOD_CU {
	local($sc) = @_;
	eval q((($sc)-> &wx_idnrev ==  &WX_LIVENGOOD_CU));
    }
}
unless(defined(&RDSTAT_DD)) {
    sub RDSTAT_DD () {	0x1;}
}
unless(defined(&RDSTAT_EOP)) {
    sub RDSTAT_EOP () {	0x2;}
}
unless(defined(&RDSTAT_RSVD)) {
    sub RDSTAT_RSVD () {	0x74;}
}
unless(defined(&RDERR_CRC)) {
    sub RDERR_CRC () {	0x1;}
}
unless(defined(&RDERR_SE)) {
    sub RDERR_SE () {	0x2;}
}
unless(defined(&RDERR_SEQ)) {
    sub RDERR_SEQ () {	0x4;}
}
unless(defined(&TXCMD_EOP)) {
    sub TXCMD_EOP () {	0x1;}
}
unless(defined(&TXCMD_IFCS)) {
    sub TXCMD_IFCS () {	0x2;}
}
unless(defined(&TXCMD_IC)) {
    sub TXCMD_IC () {	0x4;}
}
unless(defined(&TXCMD_RS)) {
    sub TXCMD_RS () {	0x8;}
}
unless(defined(&TXCMD_RPS)) {
    sub TXCMD_RPS () {	0x10;}
}
unless(defined(&TXCMD_SM)) {
    sub TXCMD_SM () {	0x20;}
}
unless(defined(&TXCMD_IDE)) {
    sub TXCMD_IDE () {	0x80;}
}
unless(defined(&TXSTS_DD)) {
    sub TXSTS_DD () {	0x1;}
}
unless(defined(&TXSTS_EC)) {
    sub TXSTS_EC () {	0x2;}
}
unless(defined(&TXSTS_LC)) {
    sub TXSTS_LC () {	0x4;}
}
unless(defined(&WXREG_DCR)) {
    sub WXREG_DCR () {	0x00000000;}
}
unless(defined(&WXREG_DSR)) {
    sub WXREG_DSR () {	0x00000008;}
}
unless(defined(&WXREG_EECDR)) {
    sub WXREG_EECDR () {	0x00000010;}
}
unless(defined(&WXREG_EXCT)) {
    sub WXREG_EXCT () {	0x00000018;}
}
unless(defined(&WXREG_MDIC)) {
    sub WXREG_MDIC () {	0x00000020;}
}
unless(defined(&WXREG_FCAL)) {
    sub WXREG_FCAL () {	0x00000028;}
}
unless(defined(&WXREG_FCAH)) {
    sub WXREG_FCAH () {	0x0000002c;}
}
unless(defined(&WXREG_FCT)) {
    sub WXREG_FCT () {	0x00000030;}
}
unless(defined(&WXREG_VET)) {
    sub WXREG_VET () {	0x00000038;}
}
unless(defined(&WXREG_RAL_BASE)) {
    sub WXREG_RAL_BASE () {	0x00000040;}
}
unless(defined(&WXREG_RAL_LO)) {
    sub WXREG_RAL_LO {
	local($x) = @_;
	eval q(( &WXREG_RAL_BASE + (($x) << 3)));
    }
}
unless(defined(&WXREG_RAL_HI)) {
    sub WXREG_RAL_HI {
	local($x) = @_;
	eval q(( &WXREG_RAL_LO($x) + 4));
    }
}
unless(defined(&WXREG_ICR)) {
    sub WXREG_ICR () {	0x000000c0;}
}
unless(defined(&WXREG_ICS)) {
    sub WXREG_ICS () {	0x000000c8;}
}
unless(defined(&WXREG_IMASK)) {
    sub WXREG_IMASK () {	0x000000d0;}
}
unless(defined(&WXREG_IMCLR)) {
    sub WXREG_IMCLR () {	0x000000d8;}
}
unless(defined(&WXREG_RCTL)) {
    sub WXREG_RCTL () {	0x00000100;}
}
unless(defined(&WXREG_RDTR0)) {
    sub WXREG_RDTR0 () {	0x00000108;}
}
unless(defined(&WXREG_RDTR0_LIVENGOOD)) {
    sub WXREG_RDTR0_LIVENGOOD () {	0x00002820;}
}
unless(defined(&WXREG_RDBA0_LO)) {
    sub WXREG_RDBA0_LO () {	0x00000110;}
}
unless(defined(&WXREG_RDBA0_LO_LIVENGOOD)) {
    sub WXREG_RDBA0_LO_LIVENGOOD () {	0x00002800;}
}
unless(defined(&WXREG_RDBA0_HI)) {
    sub WXREG_RDBA0_HI () {	0x00000114;}
}
unless(defined(&WXREG_RDBA0_HI_LIVENGOOD)) {
    sub WXREG_RDBA0_HI_LIVENGOOD () {	0x00002804;}
}
unless(defined(&WXREG_RDLEN0)) {
    sub WXREG_RDLEN0 () {	0x00000118;}
}
unless(defined(&WXREG_RDLEN0_LIVENGOOD)) {
    sub WXREG_RDLEN0_LIVENGOOD () {	0x00002808;}
}
unless(defined(&WXREG_RDH0)) {
    sub WXREG_RDH0 () {	0x00000120;}
}
unless(defined(&WXREG_RDH0_LIVENGOOD)) {
    sub WXREG_RDH0_LIVENGOOD () {	0x00002810;}
}
unless(defined(&WXREG_RDT0)) {
    sub WXREG_RDT0 () {	0x00000128;}
}
unless(defined(&WXREG_RDT0_LIVENGOOD)) {
    sub WXREG_RDT0_LIVENGOOD () {	0x00002818;}
}
unless(defined(&WXREG_RDTR1)) {
    sub WXREG_RDTR1 () {	0x00000130;}
}
unless(defined(&WXREG_RDBA1_LO)) {
    sub WXREG_RDBA1_LO () {	0x00000138;}
}
unless(defined(&WXREG_RDBA1_HI)) {
    sub WXREG_RDBA1_HI () {	0x0000013c;}
}
unless(defined(&WXREG_RDLEN1)) {
    sub WXREG_RDLEN1 () {	0x00000140;}
}
unless(defined(&WXREG_RDH1)) {
    sub WXREG_RDH1 () {	0x00000148;}
}
unless(defined(&WXREG_RDT1)) {
    sub WXREG_RDT1 () {	0x00000150;}
}
unless(defined(&WXREG_FLOW_RCV_HI)) {
    sub WXREG_FLOW_RCV_HI () {	0x00000160;}
}
unless(defined(&WXREG_FLOW_RCV_HI_LIVENGOOD)) {
    sub WXREG_FLOW_RCV_HI_LIVENGOOD () {	0x00002168;}
}
unless(defined(&WXREG_FLOW_RCV_LO)) {
    sub WXREG_FLOW_RCV_LO () {	0x00000168;}
}
unless(defined(&WXREG_FLOW_RCV_LO_LIVENGOOD)) {
    sub WXREG_FLOW_RCV_LO_LIVENGOOD () {	0x00002160;}
}
unless(defined(&WXREG_FLOW_XTIMER)) {
    sub WXREG_FLOW_XTIMER () {	0x00000170;}
}
unless(defined(&WXREG_XMIT_CFGW)) {
    sub WXREG_XMIT_CFGW () {	0x00000178;}
}
unless(defined(&WXREG_RECV_CFGW)) {
    sub WXREG_RECV_CFGW () {	0x00000180;}
}
unless(defined(&WXREG_MTA)) {
    sub WXREG_MTA () {	0x00000200;}
}
unless(defined(&WXREG_TCTL)) {
    sub WXREG_TCTL () {	0x00000400;}
}
unless(defined(&WXREG_TQSA_LO)) {
    sub WXREG_TQSA_LO () {	0x00000408;}
}
unless(defined(&WXREG_TQSA_HI)) {
    sub WXREG_TQSA_HI () {	0x0000040c;}
}
unless(defined(&WXREG_TIPG)) {
    sub WXREG_TIPG () {	0x00000410;}
}
unless(defined(&WXREG_TQC)) {
    sub WXREG_TQC () {	0x00000418;}
}
unless(defined(&WXREG_TDBA_LO)) {
    sub WXREG_TDBA_LO () {	0x00000420;}
}
unless(defined(&WXREG_TDBA_LO_LIVENGOOD)) {
    sub WXREG_TDBA_LO_LIVENGOOD () {	0x00003800;}
}
unless(defined(&WXREG_TDBA_HI)) {
    sub WXREG_TDBA_HI () {	0x00000424;}
}
unless(defined(&WXREG_TDBA_HI_LIVENGOOD)) {
    sub WXREG_TDBA_HI_LIVENGOOD () {	0x00003804;}
}
unless(defined(&WXREG_TDLEN)) {
    sub WXREG_TDLEN () {	0x00000428;}
}
unless(defined(&WXREG_TDLEN_LIVENGOOD)) {
    sub WXREG_TDLEN_LIVENGOOD () {	0x00003808;}
}
unless(defined(&WXREG_TDH)) {
    sub WXREG_TDH () {	0x00000430;}
}
unless(defined(&WXREG_TDH_LIVENGOOD)) {
    sub WXREG_TDH_LIVENGOOD () {	0x00003810;}
}
unless(defined(&WXREG_TDT)) {
    sub WXREG_TDT () {	0x00000438;}
}
unless(defined(&WXREG_TDT_LIVENGOOD)) {
    sub WXREG_TDT_LIVENGOOD () {	0x00003818;}
}
unless(defined(&WXREG_TIDV)) {
    sub WXREG_TIDV () {	0x00000440;}
}
unless(defined(&WXREG_TIDV_LIVENGOOD)) {
    sub WXREG_TIDV_LIVENGOOD () {	0x00003820;}
}
unless(defined(&WXREG_VFTA)) {
    sub WXREG_VFTA () {	0x00000600;}
}
unless(defined(&WX_RAL_TAB_SIZE)) {
    sub WX_RAL_TAB_SIZE () {	16;}
}
unless(defined(&WX_RAL_AV)) {
    sub WX_RAL_AV () {	0x80000000;}
}
unless(defined(&WX_MC_TAB_SIZE)) {
    sub WX_MC_TAB_SIZE () {	128;}
}
unless(defined(&WX_VLAN_TAB_SIZE)) {
    sub WX_VLAN_TAB_SIZE () {	128;}
}
unless(defined(&WXDCR_FD)) {
    sub WXDCR_FD () {	0x1;}
}
unless(defined(&WXDCR_BEM)) {
    sub WXDCR_BEM () {	0x2;}
}
unless(defined(&WXDCR_FAIR)) {
    sub WXDCR_FAIR () {	0x4;}
}
unless(defined(&WXDCR_LRST)) {
    sub WXDCR_LRST () {	0x8;}
}
unless(defined(&WXDCR_ASDE)) {
    sub WXDCR_ASDE () {	0x20;}
}
unless(defined(&WXDCR_SLE)) {
    sub WXDCR_SLE () {	0x20;}
}
unless(defined(&WXDCR_SLU)) {
    sub WXDCR_SLU () {	0x40;}
}
unless(defined(&WXDCR_ILOS)) {
    sub WXDCR_ILOS () {	0x80;}
}
unless(defined(&WXDCR_10BT)) {
    sub WXDCR_10BT () {	0x000;}
}
unless(defined(&WXDCR_100BT)) {
    sub WXDCR_100BT () {	0x100;}
}
unless(defined(&WXDCR_1000BT)) {
    sub WXDCR_1000BT () {	0x200;}
}
unless(defined(&WXDCR_SPEED_MASK)) {
    sub WXDCR_SPEED_MASK () {	0x300;}
}
unless(defined(&WXDCR_BEM32)) {
    sub WXDCR_BEM32 () {	0x400;}
}
unless(defined(&WXDCR_FRCSPD)) {
    sub WXDCR_FRCSPD () {	0x800;}
}
unless(defined(&WXDCR_FRCDPX)) {
    sub WXDCR_FRCDPX () {	0x1000;}
}
unless(defined(&WXDCR_SWDPINS_SHIFT)) {
    sub WXDCR_SWDPINS_SHIFT () {	18;}
}
unless(defined(&WXDCR_SWDPINS_MASK)) {
    sub WXDCR_SWDPINS_MASK () {	0xf;}
}
unless(defined(&WXDCR_SWDPIN0)) {
    sub WXDCR_SWDPIN0 () {	(1<< 18);}
}
unless(defined(&WXDCR_SWDPIN1)) {
    sub WXDCR_SWDPIN1 () {	(1<< 19);}
}
unless(defined(&WXDCR_SWDPIN2)) {
    sub WXDCR_SWDPIN2 () {	(1<< 20);}
}
unless(defined(&WXDCR_SWDPIN3)) {
    sub WXDCR_SWDPIN3 () {	(1<< 21);}
}
unless(defined(&WXDCR_SWDPIO_SHIFT)) {
    sub WXDCR_SWDPIO_SHIFT () {	22;}
}
unless(defined(&WXDCR_SWDPIO_MASK)) {
    sub WXDCR_SWDPIO_MASK () {	0xf;}
}
unless(defined(&WXDCR_SWDPIO0)) {
    sub WXDCR_SWDPIO0 () {	(1<< 22);}
}
unless(defined(&WXDCR_SWDPIO1)) {
    sub WXDCR_SWDPIO1 () {	(1<< 23);}
}
unless(defined(&WXDCR_SWDPIO2)) {
    sub WXDCR_SWDPIO2 () {	(1<< 24);}
}
unless(defined(&WXDCR_SWDPIO3)) {
    sub WXDCR_SWDPIO3 () {	(1<< 25);}
}
unless(defined(&WXDCR_RST)) {
    sub WXDCR_RST () {	0x04000000;}
}
unless(defined(&WXDCR_RFCE)) {
    sub WXDCR_RFCE () {	0x08000000;}
}
unless(defined(&WXDCR_TFCE)) {
    sub WXDCR_TFCE () {	0x10000000;}
}
unless(defined(&WXDCR_RTE)) {
    sub WXDCR_RTE () {	0x20000000;}
}
unless(defined(&WXDCR_VME)) {
    sub WXDCR_VME () {	0x40000000;}
}
unless(defined(&WXDSR_FD)) {
    sub WXDSR_FD () {	0x1;}
}
unless(defined(&WXDSR_LU)) {
    sub WXDSR_LU () {	0x2;}
}
unless(defined(&WXDSR_TXCLK)) {
    sub WXDSR_TXCLK () {	0x4;}
}
unless(defined(&WXDSR_RBCLK)) {
    sub WXDSR_RBCLK () {	0x8;}
}
unless(defined(&WXDSR_TXOFF)) {
    sub WXDSR_TXOFF () {	0x10;}
}
unless(defined(&WXDSR_TBIMODE)) {
    sub WXDSR_TBIMODE () {	0x20;}
}
unless(defined(&WXDSR_100BT)) {
    sub WXDSR_100BT () {	0x40;}
}
unless(defined(&WXDSR_1000BT)) {
    sub WXDSR_1000BT () {	0x80;}
}
unless(defined(&WXDSR_ASDV)) {
    sub WXDSR_ASDV () {	0x300;}
}
unless(defined(&WXDSR_MTXCKOK)) {
    sub WXDSR_MTXCKOK () {	0x400;}
}
unless(defined(&WXDSR_PCI66)) {
    sub WXDSR_PCI66 () {	0x800;}
}
unless(defined(&WXDSR_BUS64)) {
    sub WXDSR_BUS64 () {	0x1000;}
}
unless(defined(&WXEECD_SK)) {
    sub WXEECD_SK () {	0x1;}
}
unless(defined(&WXEECD_CS)) {
    sub WXEECD_CS () {	0x2;}
}
unless(defined(&WXEECD_DI)) {
    sub WXEECD_DI () {	0x4;}
}
unless(defined(&WXEECD_DO)) {
    sub WXEECD_DO () {	0x8;}
}
unless(defined(&EEPROM_READ_OPCODE)) {
    sub EEPROM_READ_OPCODE () {	0x6;}
}
unless(defined(&FC_FRM_CONST_LO)) {
    sub FC_FRM_CONST_LO () {	0x00c28001;}
}
unless(defined(&FC_FRM_CONST_HI)) {
    sub FC_FRM_CONST_HI () {	0x0100;}
}
unless(defined(&FC_TYP_CONST)) {
    sub FC_TYP_CONST () {	0x8808;}
}
unless(defined(&WXRAH_RDR1)) {
    sub WXRAH_RDR1 () {	0x40000000;}
}
unless(defined(&WXRAH_VALID)) {
    sub WXRAH_VALID () {	0x80000000;}
}
unless(defined(&WXISR_TXDW)) {
    sub WXISR_TXDW () {	0x1;}
}
unless(defined(&WXISR_TXQE)) {
    sub WXISR_TXQE () {	0x2;}
}
unless(defined(&WXISR_LSC)) {
    sub WXISR_LSC () {	0x4;}
}
unless(defined(&WXISR_RXSEQ)) {
    sub WXISR_RXSEQ () {	0x8;}
}
unless(defined(&WXISR_RXDMT0)) {
    sub WXISR_RXDMT0 () {	0x10;}
}
unless(defined(&WXISR_RXDMT1)) {
    sub WXISR_RXDMT1 () {	0x20;}
}
unless(defined(&WXISR_RXO)) {
    sub WXISR_RXO () {	0x40;}
}
unless(defined(&WXISR_RXT0)) {
    sub WXISR_RXT0 () {	0x80;}
}
unless(defined(&WXISR_RXT1)) {
    sub WXISR_RXT1 () {	0x100;}
}
unless(defined(&WXISR_PCIE)) {
    sub WXISR_PCIE () {	0x200;}
}
unless(defined(&WXISR_MDIAC)) {
    sub WXISR_MDIAC () {	0x200;}
}
unless(defined(&WXISR_RXCFG)) {
    sub WXISR_RXCFG () {	0x400;}
}
unless(defined(&WXISR_GPI_EN0)) {
    sub WXISR_GPI_EN0 () {	0x800;}
}
unless(defined(&WXISR_GPI_EN1)) {
    sub WXISR_GPI_EN1 () {	0x1000;}
}
unless(defined(&WXISR_GPI_EN2)) {
    sub WXISR_GPI_EN2 () {	0x2000;}
}
unless(defined(&WXISR_GPI_EN3)) {
    sub WXISR_GPI_EN3 () {	0x4000;}
}
unless(defined(&WXIENABLE_DEFAULT)) {
    sub WXIENABLE_DEFAULT () {	( &WXISR_RXO |  &WXISR_RXT0 |  &WXISR_RXDMT0 |  &WXISR_RXSEQ |  &WXISR_LSC |  &WXISR_PCIE |  &WXISR_GPI_EN1);}
}
unless(defined(&WXDISABLE)) {
    sub WXDISABLE () {	0xffffffff;}
}
unless(defined(&WXRCTL_RST)) {
    sub WXRCTL_RST () {	0x1;}
}
unless(defined(&WXRCTL_EN)) {
    sub WXRCTL_EN () {	0x2;}
}
unless(defined(&WXRCTL_SBP)) {
    sub WXRCTL_SBP () {	0x4;}
}
unless(defined(&WXRCTL_UPE)) {
    sub WXRCTL_UPE () {	0x8;}
}
unless(defined(&WXRCTL_MPE)) {
    sub WXRCTL_MPE () {	0x10;}
}
unless(defined(&WXRCTL_LPE)) {
    sub WXRCTL_LPE () {	0x20;}
}
unless(defined(&WXRCTL_BAM)) {
    sub WXRCTL_BAM () {	0x8000;}
}
unless(defined(&WXRCTL_BSEX)) {
    sub WXRCTL_BSEX () {	0x2000000;}
}
unless(defined(&WXRCTL_2KRBUF)) {
    sub WXRCTL_2KRBUF () {	(0<< 16);}
}
unless(defined(&WXRCTL_1KRBUF)) {
    sub WXRCTL_1KRBUF () {	(1<< 16);}
}
unless(defined(&WXRCTL_512BRBUF)) {
    sub WXRCTL_512BRBUF () {	(2<< 16);}
}
unless(defined(&WXRCTL_256BRBUF)) {
    sub WXRCTL_256BRBUF () {	(3<< 16);}
}
unless(defined(&WXRCTL_4KRBUF)) {
    sub WXRCTL_4KRBUF () {	(3<< 16);}
}
unless(defined(&WXRCTL_8KRBUF)) {
    sub WXRCTL_8KRBUF () {	(2<< 16);}
}
unless(defined(&WXRCTL_16KRBUF)) {
    sub WXRCTL_16KRBUF () {	(1<< 16);}
}
unless(defined(&WXRDTR_FPD)) {
    sub WXRDTR_FPD () {	0x80000000;}
}
unless(defined(&WXTXCW_FD)) {
    sub WXTXCW_FD () {	0x00000020;}
}
unless(defined(&WXTXCW_PMASK)) {
    sub WXTXCW_PMASK () {	0x00000180;}
}
unless(defined(&WXTXCW_ANE)) {
    sub WXTXCW_ANE () {	0x80000000;}
}
unless(defined(&WXTXCW_DEFAULT)) {
    sub WXTXCW_DEFAULT () {	0x800001a0;}
}
unless(defined(&WXTCTL_RST)) {
    sub WXTCTL_RST () {	0x1;}
}
unless(defined(&WXTCTL_EN)) {
    sub WXTCTL_EN () {	0x2;}
}
unless(defined(&WXTCTL_PSP)) {
    sub WXTCTL_PSP () {	0x8;}
}
unless(defined(&WXTCTL_CT)) {
    sub WXTCTL_CT {
	local($x) = @_;
	eval q(((($x) & 0xff) << 4));
    }
}
unless(defined(&WXTCTL_COLD)) {
    sub WXTCTL_COLD {
	local($x) = @_;
	eval q(((($x) & 0x3ff) << 12));
    }
}
unless(defined(&WXTCTL_SWXOFF)) {
    sub WXTCTL_SWXOFF () {	(1<< 22);}
}
unless(defined(&WX_COLLISION_THRESHOLD)) {
    sub WX_COLLISION_THRESHOLD () {	15;}
}
unless(defined(&WX_FDX_COLLISION_DX)) {
    sub WX_FDX_COLLISION_DX () {	64;}
}
unless(defined(&WX_HDX_COLLISION_DX)) {
    sub WX_HDX_COLLISION_DX () {	512;}
}
unless(defined(&WXMDIC_WRITE)) {
    sub WXMDIC_WRITE () {	0x04000000;}
}
unless(defined(&WXMDIC_READ)) {
    sub WXMDIC_READ () {	0x08000000;}
}
unless(defined(&WXMDIC_READY)) {
    sub WXMDIC_READY () {	0x10000000;}
}
unless(defined(&WXMDIC_INTR)) {
    sub WXMDIC_INTR () {	0x20000000;}
}
unless(defined(&WXMDIC_ERR)) {
    sub WXMDIC_ERR () {	0x40000000;}
}
unless(defined(&WXMDIC_REGADDR_MASK)) {
    sub WXMDIC_REGADDR_MASK () {	0x001f0000;}
}
unless(defined(&WXMDIC_REGADDR_SHIFT)) {
    sub WXMDIC_REGADDR_SHIFT () {	16;}
}
unless(defined(&WXMDIC_PHYADDR_MASK)) {
    sub WXMDIC_PHYADDR_MASK () {	0x03e00000;}
}
unless(defined(&WXMDIC_PHYADDR_SHIFT)) {
    sub WXMDIC_PHYADDR_SHIFT () {	21;}
}
unless(defined(&WXMDIC_DATA_MASK)) {
    sub WXMDIC_DATA_MASK () {	0x0000ffff;}
}
unless(defined(&WXEXCT_GPI_EN0)) {
    sub WXEXCT_GPI_EN0 () {	0x00000001;}
}
unless(defined(&WXEXCT_GPI_EN1)) {
    sub WXEXCT_GPI_EN1 () {	0x00000002;}
}
unless(defined(&WXEXCT_GPI_EN2)) {
    sub WXEXCT_GPI_EN2 () {	0x00000004;}
}
unless(defined(&WXEXCT_GPI_EN3)) {
    sub WXEXCT_GPI_EN3 () {	0x00000008;}
}
unless(defined(&WXEXCT_SWDPIN4)) {
    sub WXEXCT_SWDPIN4 () {	0x00000010;}
}
unless(defined(&WXEXCT_SWDPIN5)) {
    sub WXEXCT_SWDPIN5 () {	0x00000020;}
}
unless(defined(&WXEXCT_SWDPIN6)) {
    sub WXEXCT_SWDPIN6 () {	0x00000040;}
}
unless(defined(&WXEXCT_SWDPIN7)) {
    sub WXEXCT_SWDPIN7 () {	0x00000080;}
}
unless(defined(&WXEXCT_SWDPIO4)) {
    sub WXEXCT_SWDPIO4 () {	0x00000100;}
}
unless(defined(&WXEXCT_SWDPIO5)) {
    sub WXEXCT_SWDPIO5 () {	0x00000200;}
}
unless(defined(&WXEXCT_SWDPIO6)) {
    sub WXEXCT_SWDPIO6 () {	0x00000400;}
}
unless(defined(&WXEXCT_SWDPIO7)) {
    sub WXEXCT_SWDPIO7 () {	0x00000800;}
}
unless(defined(&WXEXCT_ASDCHK)) {
    sub WXEXCT_ASDCHK () {	0x00001000;}
}
unless(defined(&WXEXCT_EE_RST)) {
    sub WXEXCT_EE_RST () {	0x00002000;}
}
unless(defined(&WXEXCT_IPS)) {
    sub WXEXCT_IPS () {	0x00004000;}
}
unless(defined(&WXEXCT_SPD_BYPS)) {
    sub WXEXCT_SPD_BYPS () {	0x00008000;}
}
unless(defined(&WXPHY_RESET_DIR)) {
    sub WXPHY_RESET_DIR () {	 &WXDCR_SWDPIO0;}
}
unless(defined(&WXPHY_RESET)) {
    sub WXPHY_RESET () {	 &WXDCR_SWDPIN0;}
}
unless(defined(&WXPHY_MDIO_DIR)) {
    sub WXPHY_MDIO_DIR () {	 &WXDCR_SWDPIO2;}
}
unless(defined(&WXPHY_MDIO)) {
    sub WXPHY_MDIO () {	 &WXDCR_SWDPIN2;}
}
unless(defined(&WXPHY_MDC_DIR)) {
    sub WXPHY_MDC_DIR () {	 &WXDCR_SWDPIO3;}
}
unless(defined(&WXPHY_MDC)) {
    sub WXPHY_MDC () {	 &WXDCR_SWDPIN3;}
}
unless(defined(&WXPHY_RESET_DIR4)) {
    sub WXPHY_RESET_DIR4 () {	 &WXEXCT_SWDPIO4;}
}
unless(defined(&WXPHY_RESET4)) {
    sub WXPHY_RESET4 () {	 &WXEXCT_SWDPIN4;}
}
unless(defined(&WXPHYC_PREAMBLE)) {
    sub WXPHYC_PREAMBLE () {	0xffffffff;}
}
unless(defined(&WXPHYC_PREAMBLE_LEN)) {
    sub WXPHYC_PREAMBLE_LEN () {	32;}
}
unless(defined(&WXPHYC_SOF)) {
    sub WXPHYC_SOF () {	0x01;}
}
unless(defined(&WXPHYC_READ)) {
    sub WXPHYC_READ () {	0x02;}
}
unless(defined(&WXPHYC_WRITE)) {
    sub WXPHYC_WRITE () {	0x01;}
}
unless(defined(&WXPHYC_TURNAROUND)) {
    sub WXPHYC_TURNAROUND () {	0x02;}
}
unless(defined(&WXRXCW_CWMASK)) {
    sub WXRXCW_CWMASK () {	0x0000ffff;}
}
unless(defined(&WXRXCW_NC)) {
    sub WXRXCW_NC () {	0x04000000;}
}
unless(defined(&WXRXCW_IV)) {
    sub WXRXCW_IV () {	0x08000000;}
}
unless(defined(&WXRXCW_CC)) {
    sub WXRXCW_CC () {	0x10000000;}
}
unless(defined(&WXRXCW_C)) {
    sub WXRXCW_C () {	0x20000000;}
}
unless(defined(&WXRXCW_SYNCH)) {
    sub WXRXCW_SYNCH () {	0x40000000;}
}
unless(defined(&WXRXCW_ANC)) {
    sub WXRXCW_ANC () {	0x80000000;}
}
unless(defined(&WX_EEPROM_MAC_OFF)) {
    sub WX_EEPROM_MAC_OFF () {	0;}
}
unless(defined(&WX_EEPROM_CTLR1_OFF)) {
    sub WX_EEPROM_CTLR1_OFF () {	0xa;}
}
unless(defined(&WX_EEPROM_CTLR1_FD)) {
    sub WX_EEPROM_CTLR1_FD () {	(1<< 10);}
}
unless(defined(&WX_EEPROM_CTLR1_SWDPIO_SHIFT)) {
    sub WX_EEPROM_CTLR1_SWDPIO_SHIFT () {	5;}
}
unless(defined(&WX_EEPROM_CTLR1_ILOS)) {
    sub WX_EEPROM_CTLR1_ILOS () {	(1<< 4);}
}
unless(defined(&WX_EEPROM_CTLR2_OFF)) {
    sub WX_EEPROM_CTLR2_OFF () {	0xf;}
}
unless(defined(&WX_EEPROM_CTLR2_SWDPIO)) {
    sub WX_EEPROM_CTLR2_SWDPIO () {	0xf0;}
}
unless(defined(&WX_EEPROM_EXT_SHIFT)) {
    sub WX_EEPROM_EXT_SHIFT () {	4;}
}
unless(defined(&WX_XTIMER_DFLT)) {
    sub WX_XTIMER_DFLT () {	0x100;}
}
unless(defined(&WX_RCV_FLOW_HI_DFLT)) {
    sub WX_RCV_FLOW_HI_DFLT () {	0x8000;}
}
unless(defined(&WX_RCV_FLOW_LO_DFLT)) {
    sub WX_RCV_FLOW_LO_DFLT () {	0x4000;}
}
unless(defined(&WX_WISEMAN_TIPG_DFLT)) {
    sub WX_WISEMAN_TIPG_DFLT () {	(10| (2<< 10) | (10<< 20));}
}
unless(defined(&WX_LIVENGOOD_TIPG_DFLT)) {
    sub WX_LIVENGOOD_TIPG_DFLT () {	(6| (8<< 10) | (6<< 20));}
}
unless(defined(&WX_LIVENGOOD_CU_TIPG_DFLT)) {
    sub WX_LIVENGOOD_CU_TIPG_DFLT () {	(8| (8<< 10) | (6<< 20));}
}
unless(defined(&WX_CRC_LENGTH)) {
    sub WX_CRC_LENGTH () {	4;}
}
unless(defined(&WX_MIN_XPKT_SIZE)) {
    sub WX_MIN_XPKT_SIZE () {	16;}
}
unless(defined(&WX_MIN_RPKT_SIZE)) {
    sub WX_MIN_RPKT_SIZE () {	60;}
}
unless(defined(&WX_MAX_PKT_SIZE)) {
    sub WX_MAX_PKT_SIZE () {	1514;}
}
unless(defined(&WX_MAX_PKT_SIZE_JUMBO)) {
    sub WX_MAX_PKT_SIZE_JUMBO () {	9014;}
}
1;
