require '_h2ph_pre.ph';

unless(defined(&__LINUX_MII_H__)) {
    eval 'sub __LINUX_MII_H__ () {1;}' unless defined(&__LINUX_MII_H__);
    require 'linux/types.ph';
    eval 'sub MII_BMCR () {0x;}' unless defined(&MII_BMCR);
    eval 'sub MII_BMSR () {0x1;}' unless defined(&MII_BMSR);
    eval 'sub MII_PHYSID1 () {0x2;}' unless defined(&MII_PHYSID1);
    eval 'sub MII_PHYSID2 () {0x3;}' unless defined(&MII_PHYSID2);
    eval 'sub MII_ADVERTISE () {0x4;}' unless defined(&MII_ADVERTISE);
    eval 'sub MII_LPA () {0x5;}' unless defined(&MII_LPA);
    eval 'sub MII_EXPANSION () {0x6;}' unless defined(&MII_EXPANSION);
    eval 'sub MII_DCOUNTER () {0x12;}' unless defined(&MII_DCOUNTER);
    eval 'sub MII_FCSCOUNTER () {0x13;}' unless defined(&MII_FCSCOUNTER);
    eval 'sub MII_NWAYTEST () {0x14;}' unless defined(&MII_NWAYTEST);
    eval 'sub MII_RERRCOUNTER () {0x15;}' unless defined(&MII_RERRCOUNTER);
    eval 'sub MII_SREVISION () {0x16;}' unless defined(&MII_SREVISION);
    eval 'sub MII_RESV1 () {0x17;}' unless defined(&MII_RESV1);
    eval 'sub MII_LBRERROR () {0x18;}' unless defined(&MII_LBRERROR);
    eval 'sub MII_PHYADDR () {0x19;}' unless defined(&MII_PHYADDR);
    eval 'sub MII_RESV2 () {0x1a;}' unless defined(&MII_RESV2);
    eval 'sub MII_TPISTATUS () {0x1b;}' unless defined(&MII_TPISTATUS);
    eval 'sub MII_NCONFIG () {0x1c;}' unless defined(&MII_NCONFIG);
    eval 'sub BMCR_RESV () {0x7f;}' unless defined(&BMCR_RESV);
    eval 'sub BMCR_CTST () {0x80;}' unless defined(&BMCR_CTST);
    eval 'sub BMCR_FULLDPLX () {0x100;}' unless defined(&BMCR_FULLDPLX);
    eval 'sub BMCR_ANRESTART () {0x200;}' unless defined(&BMCR_ANRESTART);
    eval 'sub BMCR_ISOLATE () {0x400;}' unless defined(&BMCR_ISOLATE);
    eval 'sub BMCR_PDOWN () {0x800;}' unless defined(&BMCR_PDOWN);
    eval 'sub BMCR_ANENABLE () {0x1000;}' unless defined(&BMCR_ANENABLE);
    eval 'sub BMCR_SPEED100 () {0x2000;}' unless defined(&BMCR_SPEED100);
    eval 'sub BMCR_LOOPBACK () {0x4000;}' unless defined(&BMCR_LOOPBACK);
    eval 'sub BMCR_RESET () {0x8000;}' unless defined(&BMCR_RESET);
    eval 'sub BMSR_ERCAP () {0x1;}' unless defined(&BMSR_ERCAP);
    eval 'sub BMSR_JCD () {0x2;}' unless defined(&BMSR_JCD);
    eval 'sub BMSR_LSTATUS () {0x4;}' unless defined(&BMSR_LSTATUS);
    eval 'sub BMSR_ANEGCAPABLE () {0x8;}' unless defined(&BMSR_ANEGCAPABLE);
    eval 'sub BMSR_RFAULT () {0x10;}' unless defined(&BMSR_RFAULT);
    eval 'sub BMSR_ANEGCOMPLETE () {0x20;}' unless defined(&BMSR_ANEGCOMPLETE);
    eval 'sub BMSR_RESV () {0x7c0;}' unless defined(&BMSR_RESV);
    eval 'sub BMSR_10HALF () {0x800;}' unless defined(&BMSR_10HALF);
    eval 'sub BMSR_10FULL () {0x1000;}' unless defined(&BMSR_10FULL);
    eval 'sub BMSR_100HALF () {0x2000;}' unless defined(&BMSR_100HALF);
    eval 'sub BMSR_100FULL () {0x4000;}' unless defined(&BMSR_100FULL);
    eval 'sub BMSR_100BASE4 () {0x8000;}' unless defined(&BMSR_100BASE4);
    eval 'sub ADVERTISE_SLCT () {0x1f;}' unless defined(&ADVERTISE_SLCT);
    eval 'sub ADVERTISE_CSMA () {0x1;}' unless defined(&ADVERTISE_CSMA);
    eval 'sub ADVERTISE_10HALF () {0x20;}' unless defined(&ADVERTISE_10HALF);
    eval 'sub ADVERTISE_10FULL () {0x40;}' unless defined(&ADVERTISE_10FULL);
    eval 'sub ADVERTISE_100HALF () {0x80;}' unless defined(&ADVERTISE_100HALF);
    eval 'sub ADVERTISE_100FULL () {0x100;}' unless defined(&ADVERTISE_100FULL);
    eval 'sub ADVERTISE_100BASE4 () {0x200;}' unless defined(&ADVERTISE_100BASE4);
    eval 'sub ADVERTISE_RESV () {0x1c00;}' unless defined(&ADVERTISE_RESV);
    eval 'sub ADVERTISE_RFAULT () {0x2000;}' unless defined(&ADVERTISE_RFAULT);
    eval 'sub ADVERTISE_LPACK () {0x4000;}' unless defined(&ADVERTISE_LPACK);
    eval 'sub ADVERTISE_NPAGE () {0x8000;}' unless defined(&ADVERTISE_NPAGE);
    eval 'sub ADVERTISE_ALL () {( &ADVERTISE_10HALF |  &ADVERTISE_10FULL |  &ADVERTISE_100HALF |  &ADVERTISE_100FULL);}' unless defined(&ADVERTISE_ALL);
    eval 'sub LPA_SLCT () {0x1f;}' unless defined(&LPA_SLCT);
    eval 'sub LPA_10HALF () {0x20;}' unless defined(&LPA_10HALF);
    eval 'sub LPA_10FULL () {0x40;}' unless defined(&LPA_10FULL);
    eval 'sub LPA_100HALF () {0x80;}' unless defined(&LPA_100HALF);
    eval 'sub LPA_100FULL () {0x100;}' unless defined(&LPA_100FULL);
    eval 'sub LPA_100BASE4 () {0x200;}' unless defined(&LPA_100BASE4);
    eval 'sub LPA_RESV () {0x1c00;}' unless defined(&LPA_RESV);
    eval 'sub LPA_RFAULT () {0x2000;}' unless defined(&LPA_RFAULT);
    eval 'sub LPA_LPACK () {0x4000;}' unless defined(&LPA_LPACK);
    eval 'sub LPA_NPAGE () {0x8000;}' unless defined(&LPA_NPAGE);
    eval 'sub LPA_DUPLEX () {( &LPA_10FULL |  &LPA_100FULL);}' unless defined(&LPA_DUPLEX);
    eval 'sub LPA_100 () {( &LPA_100FULL |  &LPA_100HALF |  &LPA_100BASE4);}' unless defined(&LPA_100);
    eval 'sub EXPANSION_NWAY () {0x1;}' unless defined(&EXPANSION_NWAY);
    eval 'sub EXPANSION_LCWP () {0x2;}' unless defined(&EXPANSION_LCWP);
    eval 'sub EXPANSION_ENABLENPAGE () {0x4;}' unless defined(&EXPANSION_ENABLENPAGE);
    eval 'sub EXPANSION_NPCAPABLE () {0x8;}' unless defined(&EXPANSION_NPCAPABLE);
    eval 'sub EXPANSION_MFAULTS () {0x10;}' unless defined(&EXPANSION_MFAULTS);
    eval 'sub EXPANSION_RESV () {0xffe0;}' unless defined(&EXPANSION_RESV);
    eval 'sub NWAYTEST_RESV1 () {0xff;}' unless defined(&NWAYTEST_RESV1);
    eval 'sub NWAYTEST_LOOPBACK () {0x100;}' unless defined(&NWAYTEST_LOOPBACK);
    eval 'sub NWAYTEST_RESV2 () {0xfe00;}' unless defined(&NWAYTEST_RESV2);
}
1;
