require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&ED_VENDOR_WD_SMC)) {
    sub ED_VENDOR_WD_SMC () {	0x;}
}
unless(defined(&ED_VENDOR_3COM)) {
    sub ED_VENDOR_3COM () {	0x1;}
}
unless(defined(&ED_VENDOR_NOVELL)) {
    sub ED_VENDOR_NOVELL () {	0x2;}
}
unless(defined(&ED_FLAGS_DISABLE_TRANSCEIVER)) {
    sub ED_FLAGS_DISABLE_TRANSCEIVER () {	0x1;}
}
unless(defined(&ED_FLAGS_FORCE_8BIT_MODE)) {
    sub ED_FLAGS_FORCE_8BIT_MODE () {	0x2;}
}
unless(defined(&ED_FLAGS_FORCE_16BIT_MODE)) {
    sub ED_FLAGS_FORCE_16BIT_MODE () {	0x4;}
}
unless(defined(&ED_FLAGS_NO_MULTI_BUFFERING)) {
    sub ED_FLAGS_NO_MULTI_BUFFERING () {	0x8;}
}
unless(defined(&ED_FLAGS_FORCE_PIO)) {
    sub ED_FLAGS_FORCE_PIO () {	0x10;}
}
unless(defined(&ED_WD_MSR)) {
    sub ED_WD_MSR () {	0;}
}
unless(defined(&ED_WD_MSR_POW)) {
    sub ED_WD_MSR_POW () {	0x2;}
}
unless(defined(&ED_WD_MSR_BSY)) {
    sub ED_WD_MSR_BSY () {	0x4;}
}
unless(defined(&ED_WD_MSR_LEN)) {
    sub ED_WD_MSR_LEN () {	0x20;}
}
unless(defined(&ED_WD_MSR_ADDR)) {
    sub ED_WD_MSR_ADDR () {	0x3f;}
}
unless(defined(&ED_WD_MSR_MENB)) {
    sub ED_WD_MSR_MENB () {	0x40;}
}
unless(defined(&ED_WD_MSR_RST)) {
    sub ED_WD_MSR_RST () {	0x80;}
}
unless(defined(&ED_WD_ICR)) {
    sub ED_WD_ICR () {	1;}
}
unless(defined(&ED_WD_ICR_16BIT)) {
    sub ED_WD_ICR_16BIT () {	0x1;}
}
unless(defined(&ED_WD_ICR_OAR)) {
    sub ED_WD_ICR_OAR () {	0x2;}
}
unless(defined(&ED_WD_ICR_IR2)) {
    sub ED_WD_ICR_IR2 () {	0x4;}
}
unless(defined(&ED_WD_ICR_MSZ)) {
    sub ED_WD_ICR_MSZ () {	0x8;}
}
unless(defined(&ED_WD_ICR_RLA)) {
    sub ED_WD_ICR_RLA () {	0x10;}
}
unless(defined(&ED_WD_ICR_RX7)) {
    sub ED_WD_ICR_RX7 () {	0x20;}
}
unless(defined(&ED_WD_ICR_RIO)) {
    sub ED_WD_ICR_RIO () {	0x40;}
}
unless(defined(&ED_WD_ICR_STO)) {
    sub ED_WD_ICR_STO () {	0x80;}
}
if(defined(&TOSH_ETHER)) {
    eval 'sub ED_WD_ICR_MEM () {0xe0;}' unless defined(&ED_WD_ICR_MEM);
    eval 'sub ED_WD_ICR_MSZ1 () {0xf;}' unless defined(&ED_WD_ICR_MSZ1);
}
unless(defined(&ED_WD_IAR)) {
    sub ED_WD_IAR () {	2;}
}
unless(defined(&ED_WD_EAR)) {
    sub ED_WD_EAR () {	3;}
}
unless(defined(&ED_WD_IRR)) {
    sub ED_WD_IRR () {	4;}
}
unless(defined(&ED_WD_IRR_0WS)) {
    sub ED_WD_IRR_0WS () {	0x1;}
}
unless(defined(&ED_WD_IRR_OUT1)) {
    sub ED_WD_IRR_OUT1 () {	0x2;}
}
unless(defined(&ED_WD_IRR_OUT2)) {
    sub ED_WD_IRR_OUT2 () {	0x4;}
}
unless(defined(&ED_WD_IRR_OUT3)) {
    sub ED_WD_IRR_OUT3 () {	0x8;}
}
unless(defined(&ED_WD_IRR_FLASH)) {
    sub ED_WD_IRR_FLASH () {	0x10;}
}
unless(defined(&ED_WD_IRR_IR0)) {
    sub ED_WD_IRR_IR0 () {	0x20;}
}
unless(defined(&ED_WD_IRR_IR1)) {
    sub ED_WD_IRR_IR1 () {	0x40;}
}
unless(defined(&ED_WD_IRR_IEN)) {
    sub ED_WD_IRR_IEN () {	0x80;}
}
unless(defined(&ED_WD_LAAR)) {
    sub ED_WD_LAAR () {	5;}
}
unless(defined(&ED_WD_LAAR_ADDRHI)) {
    sub ED_WD_LAAR_ADDRHI () {	0x1f;}
}
unless(defined(&ED_WD_LAAR_0WS16)) {
    sub ED_WD_LAAR_0WS16 () {	0x20;}
}
unless(defined(&ED_WD_LAAR_L16EN)) {
    sub ED_WD_LAAR_L16EN () {	0x40;}
}
unless(defined(&ED_WD_LAAR_M16EN)) {
    sub ED_WD_LAAR_M16EN () {	0x80;}
}
unless(defined(&ED_WD_PROM)) {
    sub ED_WD_PROM () {	8;}
}
unless(defined(&ED_WD790_HWR)) {
    sub ED_WD790_HWR () {	4;}
}
unless(defined(&ED_WD790_HWR_RST)) {
    sub ED_WD790_HWR_RST () {	0x10;}
}
unless(defined(&ED_WD790_HWR_LPRM)) {
    sub ED_WD790_HWR_LPRM () {	0x40;}
}
unless(defined(&ED_WD790_HWR_SWH)) {
    sub ED_WD790_HWR_SWH () {	0x80;}
}
unless(defined(&ED_WD790_ICR)) {
    sub ED_WD790_ICR () {	6;}
}
unless(defined(&ED_WD790_ICR_EIL)) {
    sub ED_WD790_ICR_EIL () {	0x1;}
}
unless(defined(&ED_WD790_REV)) {
    sub ED_WD790_REV () {	7;}
}
unless(defined(&ED_WD790)) {
    sub ED_WD790 () {	0x20;}
}
unless(defined(&ED_WD795)) {
    sub ED_WD795 () {	0x40;}
}
unless(defined(&ED_WD795_PIO)) {
    sub ED_WD795_PIO () {	8;}
}
unless(defined(&ED_WD790_RAR)) {
    sub ED_WD790_RAR () {	0xb;}
}
unless(defined(&ED_WD790_RAR_SZ8)) {
    sub ED_WD790_RAR_SZ8 () {	0x;}
}
unless(defined(&ED_WD790_RAR_SZ16)) {
    sub ED_WD790_RAR_SZ16 () {	0x10;}
}
unless(defined(&ED_WD790_RAR_SZ32)) {
    sub ED_WD790_RAR_SZ32 () {	0x20;}
}
unless(defined(&ED_WD790_RAR_SZ64)) {
    sub ED_WD790_RAR_SZ64 () {	0x30;}
}
unless(defined(&ED_WD790_GCR)) {
    sub ED_WD790_GCR () {	0xd;}
}
unless(defined(&ED_WD790_GCR_IR0)) {
    sub ED_WD790_GCR_IR0 () {	0x4;}
}
unless(defined(&ED_WD790_GCR_IR1)) {
    sub ED_WD790_GCR_IR1 () {	0x8;}
}
unless(defined(&ED_WD790_GCR_ZWSEN)) {
    sub ED_WD790_GCR_ZWSEN () {	0x20;}
}
unless(defined(&ED_WD790_GCR_IR2)) {
    sub ED_WD790_GCR_IR2 () {	0x40;}
}
unless(defined(&ED_WD_CARD_ID)) {
    sub ED_WD_CARD_ID () {	 &ED_WD_PROM+6;}
}
unless(defined(&ED_TYPE_WD8003S)) {
    sub ED_TYPE_WD8003S () {	0x2;}
}
unless(defined(&ED_TYPE_WD8003E)) {
    sub ED_TYPE_WD8003E () {	0x3;}
}
unless(defined(&ED_TYPE_WD8013EBT)) {
    sub ED_TYPE_WD8013EBT () {	0x5;}
}
unless(defined(&ED_TYPE_TOSHIBA1)) {
    sub ED_TYPE_TOSHIBA1 () {	0x11;}
}
unless(defined(&ED_TYPE_TOSHIBA2)) {
    sub ED_TYPE_TOSHIBA2 () {	0x12;}
}
unless(defined(&ED_TYPE_TOSHIBA3)) {
    sub ED_TYPE_TOSHIBA3 () {	0x13;}
}
unless(defined(&ED_TYPE_TOSHIBA4)) {
    sub ED_TYPE_TOSHIBA4 () {	0x14;}
}
unless(defined(&ED_TYPE_WD8003W)) {
    sub ED_TYPE_WD8003W () {	0x24;}
}
unless(defined(&ED_TYPE_WD8003EB)) {
    sub ED_TYPE_WD8003EB () {	0x25;}
}
unless(defined(&ED_TYPE_WD8013W)) {
    sub ED_TYPE_WD8013W () {	0x26;}
}
unless(defined(&ED_TYPE_WD8013EP)) {
    sub ED_TYPE_WD8013EP () {	0x27;}
}
unless(defined(&ED_TYPE_WD8013WC)) {
    sub ED_TYPE_WD8013WC () {	0x28;}
}
unless(defined(&ED_TYPE_WD8013EPC)) {
    sub ED_TYPE_WD8013EPC () {	0x29;}
}
unless(defined(&ED_TYPE_SMC8216T)) {
    sub ED_TYPE_SMC8216T () {	0x2a;}
}
unless(defined(&ED_TYPE_SMC8216C)) {
    sub ED_TYPE_SMC8216C () {	0x2b;}
}
unless(defined(&ED_TYPE_WD8013EBP)) {
    sub ED_TYPE_WD8013EBP () {	0x2c;}
}
unless(defined(&ED_WD_REV_MASK)) {
    sub ED_WD_REV_MASK () {	0x1f;}
}
unless(defined(&ED_WD_SOFTCONFIG)) {
    sub ED_WD_SOFTCONFIG () {	0x20;}
}
unless(defined(&ED_WD_LARGERAM)) {
    sub ED_WD_LARGERAM () {	0x40;}
}
unless(defined(&ED_MICROCHANEL)) {
    sub ED_MICROCHANEL () {	0x80;}
}
if(defined(&TOSH_ETHER)) {
    eval 'sub ED_WD_ROM_CHECKSUM_TOTAL () {0xa5;}' unless defined(&ED_WD_ROM_CHECKSUM_TOTAL);
} else {
    eval 'sub ED_WD_ROM_CHECKSUM_TOTAL () {0xff;}' unless defined(&ED_WD_ROM_CHECKSUM_TOTAL);
}
unless(defined(&ED_WD_NIC_OFFSET)) {
    sub ED_WD_NIC_OFFSET () {	0x10;}
}
unless(defined(&ED_WD_ASIC_OFFSET)) {
    sub ED_WD_ASIC_OFFSET () {	0;}
}
unless(defined(&ED_WD_IO_PORTS)) {
    sub ED_WD_IO_PORTS () {	32;}
}
unless(defined(&ED_WD_PAGE_OFFSET)) {
    sub ED_WD_PAGE_OFFSET () {	0;}
}
unless(defined(&ED_3COM_NIC_OFFSET)) {
    sub ED_3COM_NIC_OFFSET () {	0;}
}
unless(defined(&ED_3COM_ASIC_OFFSET)) {
    sub ED_3COM_ASIC_OFFSET () {	0x400;}
}
unless(defined(&ED_3COM_IO_PORTS)) {
    sub ED_3COM_IO_PORTS () {	16;}
}
unless(defined(&ED_3COM_TX_PAGE_OFFSET_8BIT)) {
    sub ED_3COM_TX_PAGE_OFFSET_8BIT () {	0x20;}
}
unless(defined(&ED_3COM_TX_PAGE_OFFSET_16BIT)) {
    sub ED_3COM_TX_PAGE_OFFSET_16BIT () {	0x;}
}
unless(defined(&ED_3COM_RX_PAGE_OFFSET_16BIT)) {
    sub ED_3COM_RX_PAGE_OFFSET_16BIT () {	0x20;}
}
unless(defined(&ED_3COM_PSTR)) {
    sub ED_3COM_PSTR () {	0;}
}
unless(defined(&ED_3COM_PSPR)) {
    sub ED_3COM_PSPR () {	1;}
}
unless(defined(&ED_3COM_DQTR)) {
    sub ED_3COM_DQTR () {	2;}
}
unless(defined(&ED_3COM_BCFR)) {
    sub ED_3COM_BCFR () {	3;}
}
unless(defined(&ED_3COM_PCFR)) {
    sub ED_3COM_PCFR () {	4;}
}
unless(defined(&ED_3COM_GACFR)) {
    sub ED_3COM_GACFR () {	5;}
}
unless(defined(&ED_3COM_GACFR_MBS0)) {
    sub ED_3COM_GACFR_MBS0 () {	0x1;}
}
unless(defined(&ED_3COM_GACFR_MBS1)) {
    sub ED_3COM_GACFR_MBS1 () {	0x2;}
}
unless(defined(&ED_3COM_GACFR_MBS2)) {
    sub ED_3COM_GACFR_MBS2 () {	0x4;}
}
unless(defined(&ED_3COM_GACFR_RSEL)) {
    sub ED_3COM_GACFR_RSEL () {	0x8;}
}
unless(defined(&ED_3COM_GACFR_TEST)) {
    sub ED_3COM_GACFR_TEST () {	0x10;}
}
unless(defined(&ED_3COM_GACFR_OWS)) {
    sub ED_3COM_GACFR_OWS () {	0x20;}
}
unless(defined(&ED_3COM_GACFR_TCM)) {
    sub ED_3COM_GACFR_TCM () {	0x40;}
}
unless(defined(&ED_3COM_GACFR_NIM)) {
    sub ED_3COM_GACFR_NIM () {	0x80;}
}
unless(defined(&ED_3COM_CR)) {
    sub ED_3COM_CR () {	6;}
}
unless(defined(&ED_3COM_CR_RST)) {
    sub ED_3COM_CR_RST () {	0x1;}
}
unless(defined(&ED_3COM_CR_XSEL)) {
    sub ED_3COM_CR_XSEL () {	0x2;}
}
unless(defined(&ED_3COM_CR_EALO)) {
    sub ED_3COM_CR_EALO () {	0x4;}
}
unless(defined(&ED_3COM_CR_EAHI)) {
    sub ED_3COM_CR_EAHI () {	0x8;}
}
unless(defined(&ED_3COM_CR_SHARE)) {
    sub ED_3COM_CR_SHARE () {	0x10;}
}
unless(defined(&ED_3COM_CR_DBSEL)) {
    sub ED_3COM_CR_DBSEL () {	0x20;}
}
unless(defined(&ED_3COM_CR_DDIR)) {
    sub ED_3COM_CR_DDIR () {	0x40;}
}
unless(defined(&ED_3COM_CR_START)) {
    sub ED_3COM_CR_START () {	0x80;}
}
unless(defined(&ED_3COM_STREG)) {
    sub ED_3COM_STREG () {	7;}
}
unless(defined(&ED_3COM_STREG_REV)) {
    sub ED_3COM_STREG_REV () {	0x7;}
}
unless(defined(&ED_3COM_STREG_DIP)) {
    sub ED_3COM_STREG_DIP () {	0x8;}
}
unless(defined(&ED_3COM_STREG_DTC)) {
    sub ED_3COM_STREG_DTC () {	0x10;}
}
unless(defined(&ED_3COM_STREG_OFLW)) {
    sub ED_3COM_STREG_OFLW () {	0x20;}
}
unless(defined(&ED_3COM_STREG_UFLW)) {
    sub ED_3COM_STREG_UFLW () {	0x40;}
}
unless(defined(&ED_3COM_STREG_DPRDY)) {
    sub ED_3COM_STREG_DPRDY () {	0x80;}
}
unless(defined(&ED_3COM_IDCFR)) {
    sub ED_3COM_IDCFR () {	8;}
}
unless(defined(&ED_3COM_IDCFR_DRQ)) {
    sub ED_3COM_IDCFR_DRQ () {	0x7;}
}
unless(defined(&ED_3COM_IDCFR_UNUSED)) {
    sub ED_3COM_IDCFR_UNUSED () {	0x8;}
}
if(0) {
    eval 'sub ED_3COM_IDCFR_IRQ () {0xf0;}' unless defined(&ED_3COM_IDCFR_IRQ);
} else {
    eval 'sub ED_3COM_IDCFR_IRQ2 () {0x10;}' unless defined(&ED_3COM_IDCFR_IRQ2);
    eval 'sub ED_3COM_IDCFR_IRQ3 () {0x20;}' unless defined(&ED_3COM_IDCFR_IRQ3);
    eval 'sub ED_3COM_IDCFR_IRQ4 () {0x40;}' unless defined(&ED_3COM_IDCFR_IRQ4);
    eval 'sub ED_3COM_IDCFR_IRQ5 () {0x80;}' unless defined(&ED_3COM_IDCFR_IRQ5);
}
unless(defined(&ED_3COM_DAMSB)) {
    sub ED_3COM_DAMSB () {	9;}
}
unless(defined(&ED_3COM_DALSB)) {
    sub ED_3COM_DALSB () {	0xa;}
}
unless(defined(&ED_3COM_VPTR2)) {
    sub ED_3COM_VPTR2 () {	0xb;}
}
unless(defined(&ED_3COM_VPTR1)) {
    sub ED_3COM_VPTR1 () {	0xc;}
}
unless(defined(&ED_3COM_VPTR0)) {
    sub ED_3COM_VPTR0 () {	0xd;}
}
unless(defined(&ED_3COM_RFMSB)) {
    sub ED_3COM_RFMSB () {	0xe;}
}
unless(defined(&ED_3COM_RFLSB)) {
    sub ED_3COM_RFLSB () {	0xf;}
}
unless(defined(&ED_TYPE_NE1000)) {
    sub ED_TYPE_NE1000 () {	0x1;}
}
unless(defined(&ED_TYPE_NE2000)) {
    sub ED_TYPE_NE2000 () {	0x2;}
}
unless(defined(&ED_NOVELL_NIC_OFFSET)) {
    sub ED_NOVELL_NIC_OFFSET () {	0x;}
}
unless(defined(&ED_NOVELL_ASIC_OFFSET)) {
    sub ED_NOVELL_ASIC_OFFSET () {	0x10;}
}
unless(defined(&ED_NOVELL_IO_PORTS)) {
    sub ED_NOVELL_IO_PORTS () {	32;}
}
unless(defined(&ED_NOVELL_DATA)) {
    sub ED_NOVELL_DATA () {	0x;}
}
unless(defined(&ED_NOVELL_RESET)) {
    sub ED_NOVELL_RESET () {	0xf;}
}
1;
