require '_h2ph_pre.ph';

unless(defined(&_CPU_MACHINE_)) {
    eval 'sub _CPU_MACHINE_ () {1;}' unless defined(&_CPU_MACHINE_);
    require 'machine/pcb.ph';
    require 'm68k/cpu.ph';
    eval 'sub M68K_MMU_MOTOROLA () {1;}' unless defined(&M68K_MMU_MOTOROLA);
    require 'machine/intr.ph';
    eval 'sub cpu_swapin {
        local($p) = @_;
	    eval q();
    }' unless defined(&cpu_swapin);
    eval 'sub cpu_wait {
        local($p) = @_;
	    eval q();
    }' unless defined(&cpu_wait);
    eval 'sub cpu_swapout {
        local($p) = @_;
	    eval q();
    }' unless defined(&cpu_swapout);
    eval 'sub CLKF_USERMODE {
        local($framep) = @_;
	    eval q(((($framep)-> &sr &  &PSL_S) == 0));
    }' unless defined(&CLKF_USERMODE);
    eval 'sub CLKF_BASEPRI {
        local($framep) = @_;
	    eval q(((($framep)-> &sr &  &PSL_IPL) == 0));
    }' unless defined(&CLKF_BASEPRI);
    eval 'sub CLKF_PC {
        local($framep) = @_;
	    eval q((($framep)-> &pc));
    }' unless defined(&CLKF_PC);
    eval 'sub CLKF_INTR {
        local($framep) = @_;
	    eval q((0));
    }' unless defined(&CLKF_INTR);
    eval 'sub need_resched () {
        eval q({  &want_resched++;  &aston(); });
    }' unless defined(&need_resched);
    eval 'sub need_proftick {
        local($p) = @_;
	    eval q(( ($p)-> &p_flag |=  &P_OWEUPC,  &aston() ));
    }' unless defined(&need_proftick);
    eval 'sub signotify {
        local($p) = @_;
	    eval q( &aston());
    }' unless defined(&signotify);
    eval 'sub aston () {
        eval q(( &astpending++));
    }' unless defined(&aston);
    eval 'sub CPU_CONSDEV () {1;}' unless defined(&CPU_CONSDEV);
    eval 'sub CPU_MAXID () {2;}' unless defined(&CPU_MAXID);
    eval 'sub CTL_MACHDEP_NAMES () {{ { 0, 0}, { "console_device",  &CTLTYPE_STRUCT }, };}' unless defined(&CTL_MACHDEP_NAMES);
    eval 'sub MACH_MACII () {6;}' unless defined(&MACH_MACII);
    eval 'sub MACH_MACIIX () {7;}' unless defined(&MACH_MACIIX);
    eval 'sub MACH_MACIICX () {8;}' unless defined(&MACH_MACIICX);
    eval 'sub MACH_MACSE30 () {9;}' unless defined(&MACH_MACSE30);
    eval 'sub MACH_MACIICI () {11;}' unless defined(&MACH_MACIICI);
    eval 'sub MACH_MACIIFX () {13;}' unless defined(&MACH_MACIIFX);
    eval 'sub MACH_MACIISI () {18;}' unless defined(&MACH_MACIISI);
    eval 'sub MACH_MACQ900 () {20;}' unless defined(&MACH_MACQ900);
    eval 'sub MACH_MACPB170 () {21;}' unless defined(&MACH_MACPB170);
    eval 'sub MACH_MACQ700 () {22;}' unless defined(&MACH_MACQ700);
    eval 'sub MACH_MACCLASSICII () {23;}' unless defined(&MACH_MACCLASSICII);
    eval 'sub MACH_MACPB100 () {24;}' unless defined(&MACH_MACPB100);
    eval 'sub MACH_MACPB140 () {25;}' unless defined(&MACH_MACPB140);
    eval 'sub MACH_MACQ950 () {26;}' unless defined(&MACH_MACQ950);
    eval 'sub MACH_MACLCIII () {27;}' unless defined(&MACH_MACLCIII);
    eval 'sub MACH_MACPB210 () {29;}' unless defined(&MACH_MACPB210);
    eval 'sub MACH_MACC650 () {30;}' unless defined(&MACH_MACC650);
    eval 'sub MACH_MACPB230 () {32;}' unless defined(&MACH_MACPB230);
    eval 'sub MACH_MACPB180 () {33;}' unless defined(&MACH_MACPB180);
    eval 'sub MACH_MACPB160 () {34;}' unless defined(&MACH_MACPB160);
    eval 'sub MACH_MACQ800 () {35;}' unless defined(&MACH_MACQ800);
    eval 'sub MACH_MACQ650 () {36;}' unless defined(&MACH_MACQ650);
    eval 'sub MACH_MACLCII () {37;}' unless defined(&MACH_MACLCII);
    eval 'sub MACH_MACPB250 () {38;}' unless defined(&MACH_MACPB250);
    eval 'sub MACH_MACIIVI () {44;}' unless defined(&MACH_MACIIVI);
    eval 'sub MACH_MACP600 () {45;}' unless defined(&MACH_MACP600);
    eval 'sub MACH_MACIIVX () {48;}' unless defined(&MACH_MACIIVX);
    eval 'sub MACH_MACCCLASSIC () {49;}' unless defined(&MACH_MACCCLASSIC);
    eval 'sub MACH_MACPB165C () {50;}' unless defined(&MACH_MACPB165C);
    eval 'sub MACH_MACC610 () {52;}' unless defined(&MACH_MACC610);
    eval 'sub MACH_MACQ610 () {53;}' unless defined(&MACH_MACQ610);
    eval 'sub MACH_MACPB145 () {54;}' unless defined(&MACH_MACPB145);
    eval 'sub MACH_MACLC520 () {56;}' unless defined(&MACH_MACLC520);
    eval 'sub MACH_MACC660AV () {60;}' unless defined(&MACH_MACC660AV);
    eval 'sub MACH_MACP460 () {62;}' unless defined(&MACH_MACP460);
    eval 'sub MACH_MACPB180C () {71;}' unless defined(&MACH_MACPB180C);
    eval 'sub MACH_MACPB500 () {72;}' unless defined(&MACH_MACPB500);
    eval 'sub MACH_MACPB270 () {77;}' unless defined(&MACH_MACPB270);
    eval 'sub MACH_MACQ840AV () {78;}' unless defined(&MACH_MACQ840AV);
    eval 'sub MACH_MACP550 () {80;}' unless defined(&MACH_MACP550);
    eval 'sub MACH_MACCCLASSICII () {83;}' unless defined(&MACH_MACCCLASSICII);
    eval 'sub MACH_MACPB165 () {84;}' unless defined(&MACH_MACPB165);
    eval 'sub MACH_MACTV () {88;}' unless defined(&MACH_MACTV);
    eval 'sub MACH_MACLC475 () {89;}' unless defined(&MACH_MACLC475);
    eval 'sub MACH_MACLC475_33 () {90;}' unless defined(&MACH_MACLC475_33);
    eval 'sub MACH_MACLC575 () {92;}' unless defined(&MACH_MACLC575);
    eval 'sub MACH_MACQ605 () {94;}' unless defined(&MACH_MACQ605);
    eval 'sub MACH_MACQ605_33 () {95;}' unless defined(&MACH_MACQ605_33);
    eval 'sub MACH_MACQ630 () {98;}' unless defined(&MACH_MACQ630);
    eval 'sub MACH_MACP580 () {99;}' unless defined(&MACH_MACP580);
    eval 'sub MACH_MACPB280 () {102;}' unless defined(&MACH_MACPB280);
    eval 'sub MACH_MACPB280C () {103;}' unless defined(&MACH_MACPB280C);
    eval 'sub MACH_MACPB150 () {115;}' unless defined(&MACH_MACPB150);
    eval 'sub MACH_CLASSH () {0x0000;}' unless defined(&MACH_CLASSH);
    eval 'sub MACH_CLASSII () {0x0001;}' unless defined(&MACH_CLASSII);
    eval 'sub MACH_CLASSIIci () {0x0004;}' unless defined(&MACH_CLASSIIci);
    eval 'sub MACH_CLASSIIsi () {0x0005;}' unless defined(&MACH_CLASSIIsi);
    eval 'sub MACH_CLASSIIvx () {0x0006;}' unless defined(&MACH_CLASSIIvx);
    eval 'sub MACH_CLASSLC () {0x0007;}' unless defined(&MACH_CLASSLC);
    eval 'sub MACH_CLASSPB () {0x0008;}' unless defined(&MACH_CLASSPB);
    eval 'sub MACH_CLASSDUO () {0x0009;}' unless defined(&MACH_CLASSDUO);
    eval 'sub MACH_CLASSIIfx () {0x0080;}' unless defined(&MACH_CLASSIIfx);
    eval 'sub MACH_CLASSQ () {0x0100;}' unless defined(&MACH_CLASSQ);
    eval 'sub MACH_CLASSAV () {0x0101;}' unless defined(&MACH_CLASSAV);
    eval 'sub MACH_CLASSQ2 () {0x0102;}' unless defined(&MACH_CLASSQ2);
    eval 'sub MACH_CLASSP580 () {0x0103;}' unless defined(&MACH_CLASSP580);
    eval 'sub MACH_68020 () {0;}' unless defined(&MACH_68020);
    eval 'sub MACH_68030 () {1;}' unless defined(&MACH_68030);
    eval 'sub MACH_68040 () {2;}' unless defined(&MACH_68040);
    eval 'sub MACH_PENTIUM () {3;}' unless defined(&MACH_PENTIUM);
    if(defined(&_KERNEL)) {
    }
    eval 'sub ROMBASE () {(0x40800000);}' unless defined(&ROMBASE);
    eval 'sub ROMLEN () {(0x00200000);}' unless defined(&ROMLEN);
    eval 'sub ROMMAPSIZE () { &btoc( &ROMLEN);}' unless defined(&ROMMAPSIZE);
    eval 'sub IIOMAPSIZE () { &btoc(0x00100000);}' unless defined(&IIOMAPSIZE);
    eval 'sub NBSBASE () {0x90000000;}' unless defined(&NBSBASE);
    eval 'sub NBSTOP () {0xf0000000;}' unless defined(&NBSTOP);
    eval 'sub NBBASE () {0xf9000000;}' unless defined(&NBBASE);
    eval 'sub NBTOP () {0xff000000;}' unless defined(&NBTOP);
    eval 'sub NBMAPSIZE () { &btoc( &NBTOP- &NBBASE);}' unless defined(&NBMAPSIZE);
    eval 'sub NBMEMSIZE () {0x01000000;}' unless defined(&NBMEMSIZE);
    eval 'sub NBROMOFFSET () {0x00ff0000;}' unless defined(&NBROMOFFSET);
    if(defined(&_KERNEL)) {
    }
}
1;
