require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_MII_IOPHYREG_H_)) {
    eval 'sub _DEV_MII_IOPHYREG_H_ () {1;}' unless defined(&_DEV_MII_IOPHYREG_H_);
    eval 'sub MII_IOPHY_EXT0 () {0x10;}' unless defined(&MII_IOPHY_EXT0);
    eval 'sub EXT0_JABDIS () {0x8000;}' unless defined(&EXT0_JABDIS);
    eval 'sub EXT0_LINKDIS () {0x4000;}' unless defined(&EXT0_LINKDIS);
    eval 'sub EXT0_TEST4 () {0x2000;}' unless defined(&EXT0_TEST4);
    eval 'sub EXT0_TEST3 () {0x1000;}' unless defined(&EXT0_TEST3);
    eval 'sub EXT0_TEST2 () {0x800;}' unless defined(&EXT0_TEST2);
    eval 'sub EXT0_TEST1 () {0x400;}' unless defined(&EXT0_TEST1);
    eval 'sub EXT0_TEST0 () {0x200;}' unless defined(&EXT0_TEST0);
    eval 'sub EXT0_FORCE100 () {0x100;}' unless defined(&EXT0_FORCE100);
    eval 'sub EXT0_REVMASK () {0xe0;}' unless defined(&EXT0_REVMASK);
    eval 'sub EXT0_HSQ () {0x10;}' unless defined(&EXT0_HSQ);
    eval 'sub EXT0_LSQ () {0x8;}' unless defined(&EXT0_LSQ);
    eval 'sub EXT0_WAKEUP () {0x4;}' unless defined(&EXT0_WAKEUP);
    eval 'sub EXT0_SPEED () {0x2;}' unless defined(&EXT0_SPEED);
    eval 'sub EXT0_DUPLEX () {0x1;}' unless defined(&EXT0_DUPLEX);
    eval 'sub MII_IOPHY_EXT1 () {0x14;}' unless defined(&MII_IOPHY_EXT1);
    eval 'sub EXT1_PAIR_SKEW_ERR () {0x8000;}' unless defined(&EXT1_PAIR_SKEW_ERR);
    eval 'sub EXT1_DC_BALANCE_ERR () {0x4000;}' unless defined(&EXT1_DC_BALANCE_ERR);
    eval 'sub EXT1_INVALID_CODE_ERR () {0x2000;}' unless defined(&EXT1_INVALID_CODE_ERR);
    eval 'sub EXT1_BAD_CODE_ERR () {0x1000;}' unless defined(&EXT1_BAD_CODE_ERR);
    eval 'sub EXT1_EOP_ERR () {0x800;}' unless defined(&EXT1_EOP_ERR);
    eval 'sub EXT1_MANCHESTER_ERR () {0x400;}' unless defined(&EXT1_MANCHESTER_ERR);
    eval 'sub EXT1_CH2_EOF_ERR () {0x200;}' unless defined(&EXT1_CH2_EOF_ERR);
    eval 'sub EXT1_DTE_MODE_SEL () {0x100;}' unless defined(&EXT1_DTE_MODE_SEL);
    eval 'sub EXT1_LINE_RPTR_MODE_SEL () {0x80;}' unless defined(&EXT1_LINE_RPTR_MODE_SEL);
    eval 'sub EXT1_EXT_TEST_MODE_SEL () {0x40;}' unless defined(&EXT1_EXT_TEST_MODE_SEL);
    eval 'sub EXT1_MII_RPTR_MODE_SEL () {0x20;}' unless defined(&EXT1_MII_RPTR_MODE_SEL);
    eval 'sub EXT1_CH2_POLARITY_ERR () {0x10;}' unless defined(&EXT1_CH2_POLARITY_ERR);
    eval 'sub EXT1_CH3_POLARITY_ERR () {0x8;}' unless defined(&EXT1_CH3_POLARITY_ERR);
    eval 'sub EXT1_CH4_POLARITY_ERR () {0x4;}' unless defined(&EXT1_CH4_POLARITY_ERR);
    eval 'sub EXT1_CH2_SFD_DETECT_ERR () {0x2;}' unless defined(&EXT1_CH2_SFD_DETECT_ERR);
    eval 'sub MII_IOPHY_EXT2 () {0x15;}' unless defined(&MII_IOPHY_EXT2);
    eval 'sub EXT2_AUTONEG_SEL () {0x8000;}' unless defined(&EXT2_AUTONEG_SEL);
    eval 'sub EXT2_CH3_SFD_ERR () {0x4000;}' unless defined(&EXT2_CH3_SFD_ERR);
    eval 'sub EXT2_CH4_SFD_ERR () {0x2000;}' unless defined(&EXT2_CH4_SFD_ERR);
}
1;
