require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&WE_FLAGS_DISABLE_TRANSCEIVER)) {
    sub WE_FLAGS_DISABLE_TRANSCEIVER () {	0x1;}
}
unless(defined(&WE_FLAGS_FORCE_8BIT_MODE)) {
    sub WE_FLAGS_FORCE_8BIT_MODE () {	0x2;}
}
unless(defined(&WE_FLAGS_FORCE_16BIT_MODE)) {
    sub WE_FLAGS_FORCE_16BIT_MODE () {	0x4;}
}
unless(defined(&WE_FLAGS_NO_MULTI_BUFFERING)) {
    sub WE_FLAGS_NO_MULTI_BUFFERING () {	0x8;}
}
unless(defined(&WE_MSR)) {
    sub WE_MSR () {	0;}
}
unless(defined(&WE_MSR_POW)) {
    sub WE_MSR_POW () {	0x2;}
}
unless(defined(&WE_MSR_BSY)) {
    sub WE_MSR_BSY () {	0x4;}
}
unless(defined(&WE_MSR_LEN)) {
    sub WE_MSR_LEN () {	0x20;}
}
unless(defined(&WE_MSR_ADDR)) {
    sub WE_MSR_ADDR () {	0x3f;}
}
unless(defined(&WE_MSR_MENB)) {
    sub WE_MSR_MENB () {	0x40;}
}
unless(defined(&WE_MSR_RST)) {
    sub WE_MSR_RST () {	0x80;}
}
unless(defined(&WE_ICR)) {
    sub WE_ICR () {	1;}
}
unless(defined(&WE_ICR_16BIT)) {
    sub WE_ICR_16BIT () {	0x1;}
}
unless(defined(&WE_ICR_OAR)) {
    sub WE_ICR_OAR () {	0x2;}
}
unless(defined(&WE_ICR_IR2)) {
    sub WE_ICR_IR2 () {	0x4;}
}
unless(defined(&WE_ICR_MSZ)) {
    sub WE_ICR_MSZ () {	0x8;}
}
unless(defined(&WE_ICR_RLA)) {
    sub WE_ICR_RLA () {	0x10;}
}
unless(defined(&WE_ICR_RX7)) {
    sub WE_ICR_RX7 () {	0x20;}
}
unless(defined(&WE_ICR_RIO)) {
    sub WE_ICR_RIO () {	0x40;}
}
unless(defined(&WE_ICR_STO)) {
    sub WE_ICR_STO () {	0x80;}
}
if(defined(&TOSH_ETHER)) {
    eval 'sub WE_ICR_MEM () {0xe0;}' unless defined(&WE_ICR_MEM);
    eval 'sub WE_ICR_MSZ1 () {0xf;}' unless defined(&WE_ICR_MSZ1);
}
unless(defined(&WE_IAR)) {
    sub WE_IAR () {	2;}
}
unless(defined(&WE_EAR)) {
    sub WE_EAR () {	3;}
}
unless(defined(&WE_IRR)) {
    sub WE_IRR () {	4;}
}
unless(defined(&WE_IRR_0WS)) {
    sub WE_IRR_0WS () {	0x1;}
}
unless(defined(&WE_IRR_OUT1)) {
    sub WE_IRR_OUT1 () {	0x2;}
}
unless(defined(&WE_IRR_OUT2)) {
    sub WE_IRR_OUT2 () {	0x4;}
}
unless(defined(&WE_IRR_OUT3)) {
    sub WE_IRR_OUT3 () {	0x8;}
}
unless(defined(&WE_IRR_FLASH)) {
    sub WE_IRR_FLASH () {	0x10;}
}
unless(defined(&WE_IRR_IR0)) {
    sub WE_IRR_IR0 () {	0x20;}
}
unless(defined(&WE_IRR_IR1)) {
    sub WE_IRR_IR1 () {	0x40;}
}
unless(defined(&WE_IRR_IEN)) {
    sub WE_IRR_IEN () {	0x80;}
}
unless(defined(&WE_LAAR)) {
    sub WE_LAAR () {	5;}
}
unless(defined(&WE_LAAR_ADDRHI)) {
    sub WE_LAAR_ADDRHI () {	0x1f;}
}
unless(defined(&WE_LAAR_0WS16)) {
    sub WE_LAAR_0WS16 () {	0x20;}
}
unless(defined(&WE_LAAR_L16EN)) {
    sub WE_LAAR_L16EN () {	0x40;}
}
unless(defined(&WE_LAAR_M16EN)) {
    sub WE_LAAR_M16EN () {	0x80;}
}
unless(defined(&WE_PROM)) {
    sub WE_PROM () {	8;}
}
unless(defined(&WE790_HWR)) {
    sub WE790_HWR () {	4;}
}
unless(defined(&WE790_HWR_RST)) {
    sub WE790_HWR_RST () {	0x10;}
}
unless(defined(&WE790_HWR_LPRM)) {
    sub WE790_HWR_LPRM () {	0x40;}
}
unless(defined(&WE790_HWR_SWH)) {
    sub WE790_HWR_SWH () {	0x80;}
}
unless(defined(&WE790_ICR)) {
    sub WE790_ICR () {	6;}
}
unless(defined(&WE790_ICR_EIL)) {
    sub WE790_ICR_EIL () {	0x1;}
}
unless(defined(&WE790_REV)) {
    sub WE790_REV () {	7;}
}
unless(defined(&WE790_REV_790)) {
    sub WE790_REV_790 () {	0x20;}
}
unless(defined(&WE790_REV_795)) {
    sub WE790_REV_795 () {	0x40;}
}
unless(defined(&WE790_RAR)) {
    sub WE790_RAR () {	0xb;}
}
unless(defined(&WE790_RAR_SZ8)) {
    sub WE790_RAR_SZ8 () {	0x;}
}
unless(defined(&WE790_RAR_SZ16)) {
    sub WE790_RAR_SZ16 () {	0x10;}
}
unless(defined(&WE790_RAR_SZ32)) {
    sub WE790_RAR_SZ32 () {	0x20;}
}
unless(defined(&WE790_RAR_SZ64)) {
    sub WE790_RAR_SZ64 () {	0x30;}
}
unless(defined(&WE790_GCR)) {
    sub WE790_GCR () {	0xd;}
}
unless(defined(&WE790_GCR_LIT)) {
    sub WE790_GCR_LIT () {	0x1;}
}
unless(defined(&WE790_GCR_GPOUT)) {
    sub WE790_GCR_GPOUT () {	0x2;}
}
unless(defined(&WE790_GCR_IR0)) {
    sub WE790_GCR_IR0 () {	0x4;}
}
unless(defined(&WE790_GCR_IR1)) {
    sub WE790_GCR_IR1 () {	0x8;}
}
unless(defined(&WE790_GCR_ZWSEN)) {
    sub WE790_GCR_ZWSEN () {	0x20;}
}
unless(defined(&WE790_GCR_IR2)) {
    sub WE790_GCR_IR2 () {	0x40;}
}
unless(defined(&WE_CARD_ID)) {
    sub WE_CARD_ID () {	 &WE_PROM+6;}
}
unless(defined(&WE_TYPE_WD8003S)) {
    sub WE_TYPE_WD8003S () {	0x2;}
}
unless(defined(&WE_TYPE_WD8003E)) {
    sub WE_TYPE_WD8003E () {	0x3;}
}
unless(defined(&WE_TYPE_WD8013EBT)) {
    sub WE_TYPE_WD8013EBT () {	0x5;}
}
unless(defined(&WE_TYPE_TOSHIBA1)) {
    sub WE_TYPE_TOSHIBA1 () {	0x11;}
}
unless(defined(&WE_TYPE_TOSHIBA2)) {
    sub WE_TYPE_TOSHIBA2 () {	0x12;}
}
unless(defined(&WE_TYPE_TOSHIBA3)) {
    sub WE_TYPE_TOSHIBA3 () {	0x13;}
}
unless(defined(&WE_TYPE_TOSHIBA4)) {
    sub WE_TYPE_TOSHIBA4 () {	0x14;}
}
unless(defined(&WE_TYPE_WD8003W)) {
    sub WE_TYPE_WD8003W () {	0x24;}
}
unless(defined(&WE_TYPE_WD8003EB)) {
    sub WE_TYPE_WD8003EB () {	0x25;}
}
unless(defined(&WE_TYPE_WD8013W)) {
    sub WE_TYPE_WD8013W () {	0x26;}
}
unless(defined(&WE_TYPE_WD8013EP)) {
    sub WE_TYPE_WD8013EP () {	0x27;}
}
unless(defined(&WE_TYPE_WD8013WC)) {
    sub WE_TYPE_WD8013WC () {	0x28;}
}
unless(defined(&WE_TYPE_WD8013EPC)) {
    sub WE_TYPE_WD8013EPC () {	0x29;}
}
unless(defined(&WE_TYPE_SMC8216T)) {
    sub WE_TYPE_SMC8216T () {	0x2a;}
}
unless(defined(&WE_TYPE_SMC8216C)) {
    sub WE_TYPE_SMC8216C () {	0x2b;}
}
unless(defined(&WE_TYPE_WD8013EBP)) {
    sub WE_TYPE_WD8013EBP () {	0x2c;}
}
unless(defined(&WE_REV_MASK)) {
    sub WE_REV_MASK () {	0x1f;}
}
unless(defined(&WE_SOFTCONFIG)) {
    sub WE_SOFTCONFIG () {	0x20;}
}
unless(defined(&WE_LARGERAM)) {
    sub WE_LARGERAM () {	0x40;}
}
unless(defined(&WE_MICROCHANEL)) {
    sub WE_MICROCHANEL () {	0x80;}
}
if(defined(&TOSH_ETHER)) {
    eval 'sub WE_ROM_CHECKSUM_TOTAL () {0xa5;}' unless defined(&WE_ROM_CHECKSUM_TOTAL);
} else {
    eval 'sub WE_ROM_CHECKSUM_TOTAL () {0xff;}' unless defined(&WE_ROM_CHECKSUM_TOTAL);
}
unless(defined(&WE_NIC_OFFSET)) {
    sub WE_NIC_OFFSET () {	0x10;}
}
unless(defined(&WE_ASIC_OFFSET)) {
    sub WE_ASIC_OFFSET () {	0;}
}
unless(defined(&WE_NIC_NPORTS)) {
    sub WE_NIC_NPORTS () {	16;}
}
unless(defined(&WE_ASIC_NPORTS)) {
    sub WE_ASIC_NPORTS () {	16;}
}
unless(defined(&WE_NPORTS)) {
    sub WE_NPORTS () {	( &WE_NIC_NPORTS +  &WE_ASIC_NPORTS);}
}
unless(defined(&WE_PAGE_OFFSET)) {
    sub WE_PAGE_OFFSET () {	0;}
}
1;
