require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_MII_NSGPHYREG_H_)) {
    eval 'sub _DEV_MII_NSGPHYREG_H_ () {1;}' unless defined(&_DEV_MII_NSGPHYREG_H_);
    eval 'sub NSGPHY_MII_STRAPOPT () {0x10;}' unless defined(&NSGPHY_MII_STRAPOPT);
    eval 'sub NSGPHY_STRAPOPT_PHYADDR () {0xf800;}' unless defined(&NSGPHY_STRAPOPT_PHYADDR);
    eval 'sub NSGPHY_STRAPOPT_COMPAT () {0x400;}' unless defined(&NSGPHY_STRAPOPT_COMPAT);
    eval 'sub NSGPHY_STRAPOPT_MMSE () {0x200;}' unless defined(&NSGPHY_STRAPOPT_MMSE);
    eval 'sub NSGPHY_STRAPOPT_ANEG () {0x100;}' unless defined(&NSGPHY_STRAPOPT_ANEG);
    eval 'sub NSGPHY_STRAPOPT_MMSV () {0x80;}' unless defined(&NSGPHY_STRAPOPT_MMSV);
    eval 'sub NSGPHY_STRAPOPT_1000HDX () {0x10;}' unless defined(&NSGPHY_STRAPOPT_1000HDX);
    eval 'sub NSGPHY_STRAPOPT_1000FDX () {0x8;}' unless defined(&NSGPHY_STRAPOPT_1000FDX);
    eval 'sub NSGPHY_STRAPOPT_100_ADV () {0x4;}' unless defined(&NSGPHY_STRAPOPT_100_ADV);
    eval 'sub NSGPHY_STRAPOPT_SPEED1 () {0x2;}' unless defined(&NSGPHY_STRAPOPT_SPEED1);
    eval 'sub NSGPHY_STRAPOPT_SPEED0 () {0x1;}' unless defined(&NSGPHY_STRAPOPT_SPEED0);
    eval 'sub NSGPHY_STRAPOPT_SPDSEL () {( &NSGPHY_STRAPOPT_SPEED1| &NSGPHY_STRAPOPT_SPEED0);}' unless defined(&NSGPHY_STRAPOPT_SPDSEL);
    eval 'sub NSGPHY_MII_PHYSUP () {0x11;}' unless defined(&NSGPHY_MII_PHYSUP);
    eval 'sub PHY_SUP_SPEED1 () {0x10;}' unless defined(&PHY_SUP_SPEED1);
    eval 'sub PHY_SUP_SPEED0 () {0x8;}' unless defined(&PHY_SUP_SPEED0);
    eval 'sub NSGPHY_PHYSUP_SPEED1 () {0x10;}' unless defined(&NSGPHY_PHYSUP_SPEED1);
    eval 'sub NSGPHY_PHYSUP_SPEED0 () {0x8;}' unless defined(&NSGPHY_PHYSUP_SPEED0);
    eval 'sub NSGPHY_PHYSUP_SPDSTS () {( &NSGPHY_PHYSUP_SPEED1| &NSGPHY_PHYSUP_SPEED0);}' unless defined(&NSGPHY_PHYSUP_SPDSTS);
    eval 'sub NSGPHY_PHYSUP_LNKSTS () {0x4;}' unless defined(&NSGPHY_PHYSUP_LNKSTS);
    eval 'sub PHY_SUP_LINK () {0x4;}' unless defined(&PHY_SUP_LINK);
    eval 'sub PHY_SUP_DUPLEX () {0x2;}' unless defined(&PHY_SUP_DUPLEX);
    eval 'sub NSGPHY_PHYSUP_DUPSTS () {0x2;}' unless defined(&NSGPHY_PHYSUP_DUPSTS);
    eval 'sub NSGPHY_PHYSUP_10BT () {0x1;}' unless defined(&NSGPHY_PHYSUP_10BT);
    eval 'sub NSGPHY_SPDSTS_1000 () {0x10;}' unless defined(&NSGPHY_SPDSTS_1000);
    eval 'sub NSGPHY_SPDSTS_100 () {0x8;}' unless defined(&NSGPHY_SPDSTS_100);
    eval 'sub NSGPHY_SPDSTS_10 () {0x;}' unless defined(&NSGPHY_SPDSTS_10);
}
1;
