require '_h2ph_pre.ph';

unless(defined(&_NET_IF_MEDIA_H_)) {
    eval 'sub _NET_IF_MEDIA_H_ () {1;}' unless defined(&_NET_IF_MEDIA_H_);
    if(defined(&_KERNEL)) {
	require 'sys/queue.ph';
    }
    eval 'sub IFM_ETHER () {0x00000020;}' unless defined(&IFM_ETHER);
    eval 'sub IFM_10_T () {3;}' unless defined(&IFM_10_T);
    eval 'sub IFM_10_2 () {4;}' unless defined(&IFM_10_2);
    eval 'sub IFM_10_5 () {5;}' unless defined(&IFM_10_5);
    eval 'sub IFM_100_TX () {6;}' unless defined(&IFM_100_TX);
    eval 'sub IFM_100_FX () {7;}' unless defined(&IFM_100_FX);
    eval 'sub IFM_100_T4 () {8;}' unless defined(&IFM_100_T4);
    eval 'sub IFM_100_VG () {9;}' unless defined(&IFM_100_VG);
    eval 'sub IFM_100_T2 () {10;}' unless defined(&IFM_100_T2);
    eval 'sub IFM_1000_FX () {11;}' unless defined(&IFM_1000_FX);
    eval 'sub IFM_10_STP () {12;}' unless defined(&IFM_10_STP);
    eval 'sub IFM_10_FL () {13;}' unless defined(&IFM_10_FL);
    eval 'sub IFM_1000_SX () {14;}' unless defined(&IFM_1000_SX);
    eval 'sub IFM_1000_LX () {15;}' unless defined(&IFM_1000_LX);
    eval 'sub IFM_1000_CX () {16;}' unless defined(&IFM_1000_CX);
    eval 'sub IFM_1000_TX () {17;}' unless defined(&IFM_1000_TX);
    eval 'sub IFM_TOKEN () {0x00000040;}' unless defined(&IFM_TOKEN);
    eval 'sub IFM_TOK_STP4 () {3;}' unless defined(&IFM_TOK_STP4);
    eval 'sub IFM_TOK_STP16 () {4;}' unless defined(&IFM_TOK_STP16);
    eval 'sub IFM_TOK_UTP4 () {5;}' unless defined(&IFM_TOK_UTP4);
    eval 'sub IFM_TOK_UTP16 () {6;}' unless defined(&IFM_TOK_UTP16);
    eval 'sub IFM_TOK_ETR () {0x00000200;}' unless defined(&IFM_TOK_ETR);
    eval 'sub IFM_TOK_SRCRT () {0x00000400;}' unless defined(&IFM_TOK_SRCRT);
    eval 'sub IFM_TOK_ALLR () {0x00000800;}' unless defined(&IFM_TOK_ALLR);
    eval 'sub IFM_FDDI () {0x00000060;}' unless defined(&IFM_FDDI);
    eval 'sub IFM_FDDI_SMF () {3;}' unless defined(&IFM_FDDI_SMF);
    eval 'sub IFM_FDDI_MMF () {4;}' unless defined(&IFM_FDDI_MMF);
    eval 'sub IFM_FDDI_UTP () {5;}' unless defined(&IFM_FDDI_UTP);
    eval 'sub IFM_FDDI_DA () {0x00000100;}' unless defined(&IFM_FDDI_DA);
    eval 'sub IFM_AUTO () {0;}' unless defined(&IFM_AUTO);
    eval 'sub IFM_MANUAL () {1;}' unless defined(&IFM_MANUAL);
    eval 'sub IFM_NONE () {2;}' unless defined(&IFM_NONE);
    eval 'sub IFM_FDX () {0x00100000;}' unless defined(&IFM_FDX);
    eval 'sub IFM_HDX () {0x00200000;}' unless defined(&IFM_HDX);
    eval 'sub IFM_FLAG0 () {0x01000000;}' unless defined(&IFM_FLAG0);
    eval 'sub IFM_FLAG1 () {0x02000000;}' unless defined(&IFM_FLAG1);
    eval 'sub IFM_FLAG2 () {0x04000000;}' unless defined(&IFM_FLAG2);
    eval 'sub IFM_LOOP () {0x08000000;}' unless defined(&IFM_LOOP);
    eval 'sub IFM_NMASK () {0x000000e0;}' unless defined(&IFM_NMASK);
    eval 'sub IFM_TMASK () {0x0000000f;}' unless defined(&IFM_TMASK);
    eval 'sub IFM_IMASK () {0xf0000000;}' unless defined(&IFM_IMASK);
    eval 'sub IFM_ISHIFT () {28;}' unless defined(&IFM_ISHIFT);
    eval 'sub IFM_OMASK () {0x0000ff00;}' unless defined(&IFM_OMASK);
    eval 'sub IFM_GMASK () {0x0ff00000;}' unless defined(&IFM_GMASK);
    eval 'sub IFM_NMIN () { &IFM_ETHER;}' unless defined(&IFM_NMIN);
    eval 'sub IFM_NMAX () { &IFM_NMASK;}' unless defined(&IFM_NMAX);
    eval 'sub IFM_AVALID () {0x00000001;}' unless defined(&IFM_AVALID);
    eval 'sub IFM_ACTIVE () {0x00000002;}' unless defined(&IFM_ACTIVE);
    eval 'sub IFM_TYPE {
        local($x) = @_;
	    eval q((($x) &  &IFM_NMASK));
    }' unless defined(&IFM_TYPE);
    eval 'sub IFM_SUBTYPE {
        local($x) = @_;
	    eval q((($x) &  &IFM_TMASK));
    }' unless defined(&IFM_SUBTYPE);
    eval 'sub IFM_INST {
        local($x) = @_;
	    eval q(((($x) &  &IFM_IMASK) >>  &IFM_ISHIFT));
    }' unless defined(&IFM_INST);
    eval 'sub IFM_OPTIONS {
        local($x) = @_;
	    eval q((($x) & ( &IFM_OMASK| &IFM_GMASK)));
    }' unless defined(&IFM_OPTIONS);
    eval 'sub IFM_INST_MAX () { &IFM_INST( &IFM_IMASK);}' unless defined(&IFM_INST_MAX);
    eval 'sub IFM_MAKEWORD {
        local($type, $subtype, $options, $instance) = @_;
	    eval q((($type) | ($subtype) | ($options) | (($instance) <<  &IFM_ISHIFT)));
    }' unless defined(&IFM_MAKEWORD);
    eval 'sub IFM_TYPE_DESCRIPTIONS () {{ {  &IFM_ETHER, "Ethernet" }, {  &IFM_ETHER, "ether" }, {  &IFM_TOKEN, "TokenRing" }, {  &IFM_TOKEN, "token" }, {  &IFM_FDDI, "FDDI" }, { 0,  &NULL }, };}' unless defined(&IFM_TYPE_DESCRIPTIONS);
    eval 'sub IFM_TYPE_MATCH {
        local($dt, $t) = @_;
	    eval q(( &IFM_TYPE(($dt)) == 0||  &IFM_TYPE(($dt)) ==  &IFM_TYPE(($t))));
    }' unless defined(&IFM_TYPE_MATCH);
    eval 'sub IFM_SUBTYPE_DESCRIPTIONS () {{ {  &IFM_AUTO, "autoselect" }, {  &IFM_AUTO, "auto" }, {  &IFM_MANUAL, "manual" }, {  &IFM_NONE, "none" }, {  &IFM_ETHER| &IFM_10_T, "10baseT" }, {  &IFM_ETHER| &IFM_10_T, "10baseT/UTP" }, {  &IFM_ETHER| &IFM_10_T, "UTP" }, {  &IFM_ETHER| &IFM_10_T, "10UTP" }, {  &IFM_ETHER| &IFM_10_2, "10base2" }, {  &IFM_ETHER| &IFM_10_2, "10base2/BNC" }, {  &IFM_ETHER| &IFM_10_2, "BNC" }, {  &IFM_ETHER| &IFM_10_2, "10BNC" }, {  &IFM_ETHER| &IFM_10_5, "10base5" }, {  &IFM_ETHER| &IFM_10_5, "10base5/AUI" }, {  &IFM_ETHER| &IFM_10_5, "AUI" }, {  &IFM_ETHER| &IFM_10_5, "10AUI" }, {  &IFM_ETHER| &IFM_100_TX, "100baseTX" }, {  &IFM_ETHER| &IFM_100_TX, "100TX" }, {  &IFM_ETHER| &IFM_100_FX, "100baseFX" }, {  &IFM_ETHER| &IFM_100_FX, "100FX" }, {  &IFM_ETHER| &IFM_100_T4, "100baseT4" }, {  &IFM_ETHER| &IFM_100_T4, "100T4" }, {  &IFM_ETHER| &IFM_100_VG, "100baseVG" }, {  &IFM_ETHER| &IFM_100_VG, "100VG" }, {  &IFM_ETHER| &IFM_100_T2, "100baseT2" }, {  &IFM_ETHER| &IFM_100_T2, "100T2" }, {  &IFM_ETHER| &IFM_1000_FX, "1000baseFX" }, {  &IFM_ETHER| &IFM_1000_FX, "1000FX" }, {  &IFM_ETHER| &IFM_10_STP, "10baseSTP" }, {  &IFM_ETHER| &IFM_10_STP, "STP" }, {  &IFM_ETHER| &IFM_10_STP, "10STP" }, {  &IFM_ETHER| &IFM_10_FL, "10baseFL" }, {  &IFM_ETHER| &IFM_10_FL, "FL" }, {  &IFM_ETHER| &IFM_10_FL, "10FL" }, {  &IFM_ETHER| &IFM_1000_SX, "1000baseSX" }, {  &IFM_ETHER| &IFM_1000_LX, "1000baseLX" }, {  &IFM_ETHER| &IFM_1000_CX, "1000baseCX" }, {  &IFM_ETHER| &IFM_1000_TX, "1000baseTX" }, {  &IFM_TOKEN| &IFM_TOK_STP4, "DB9/4Mbit" }, {  &IFM_TOKEN| &IFM_TOK_STP4, "4STP" }, {  &IFM_TOKEN| &IFM_TOK_STP16, "DB9/16Mbit" }, {  &IFM_TOKEN| &IFM_TOK_STP16, "16STP" }, {  &IFM_TOKEN| &IFM_TOK_UTP4, "UTP/4Mbit" }, {  &IFM_TOKEN| &IFM_TOK_UTP4, "4UTP" }, {  &IFM_TOKEN| &IFM_TOK_UTP16, "UTP/16Mbit" }, {  &IFM_TOKEN| &IFM_TOK_UTP16, "16UTP" }, {  &IFM_FDDI| &IFM_FDDI_SMF, "Single-mode" }, {  &IFM_FDDI| &IFM_FDDI_SMF, "SMF" }, {  &IFM_FDDI| &IFM_FDDI_MMF, "Multi-mode" }, {  &IFM_FDDI| &IFM_FDDI_MMF, "MMF" }, {  &IFM_FDDI| &IFM_FDDI_UTP, "UTP" }, {  &IFM_FDDI| &IFM_FDDI_UTP, "CDDI" }, { 0,  &NULL }, };}' unless defined(&IFM_SUBTYPE_DESCRIPTIONS);
    eval 'sub IFM_OPTION_DESCRIPTIONS () {{ {  &IFM_FDX, "full-duplex" }, {  &IFM_FDX, "fdx" }, {  &IFM_HDX, "half-duplex" }, {  &IFM_HDX, "hdx" }, {  &IFM_FLAG0, "flag0" }, {  &IFM_FLAG1, "flag1" }, {  &IFM_FLAG2, "flag2" }, {  &IFM_LOOP, "loopback" }, {  &IFM_LOOP, "hw-loopback"}, {  &IFM_LOOP, "loop" }, {  &IFM_TOKEN| &IFM_TOK_ETR, "EarlyTokenRelease" }, {  &IFM_TOKEN| &IFM_TOK_ETR, "ETR" }, {  &IFM_TOKEN| &IFM_TOK_SRCRT, "SourceRouting" }, {  &IFM_TOKEN| &IFM_TOK_SRCRT, "SRCRT" }, {  &IFM_TOKEN| &IFM_TOK_ALLR, "AllRoutes" }, {  &IFM_TOKEN| &IFM_TOK_ALLR, "ALLR" }, {  &IFM_FDDI| &IFM_FDDI_DA, "dual-attach" }, {  &IFM_FDDI| &IFM_FDDI_DA, "das" }, { 0,  &NULL }, };}' unless defined(&IFM_OPTION_DESCRIPTIONS);
}
1;
