require '_h2ph_pre.ph';

unless(defined(&_MAC68K_VMPARAM_H_)) {
    eval 'sub _MAC68K_VMPARAM_H_ () {1;}' unless defined(&_MAC68K_VMPARAM_H_);
    eval 'sub USRTEXT () {8192;}' unless defined(&USRTEXT);
    eval 'sub USRSTACK () {(- &HIGHPAGES* &NBPG);}' unless defined(&USRSTACK);
    eval 'sub BTOPUSRSTACK () {(0x100000- &HIGHPAGES);}' unless defined(&BTOPUSRSTACK);
    eval 'sub P1PAGES () {0x100000;}' unless defined(&P1PAGES);
    eval 'sub LOWPAGES () {0;}' unless defined(&LOWPAGES);
    eval 'sub HIGHPAGES () {3;}' unless defined(&HIGHPAGES);
    unless(defined(&MAXTSIZ)) {
	eval 'sub MAXTSIZ () {(8*1024*1024);}' unless defined(&MAXTSIZ);
    }
    unless(defined(&DFLDSIZ)) {
	eval 'sub DFLDSIZ () {(16*1024*1024);}' unless defined(&DFLDSIZ);
    }
    unless(defined(&MAXDSIZ)) {
	eval 'sub MAXDSIZ () {(64*1024*1024);}' unless defined(&MAXDSIZ);
    }
    unless(defined(&DFLSSIZ)) {
	eval 'sub DFLSSIZ () {(512*1024);}' unless defined(&DFLSSIZ);
    }
    unless(defined(&MAXSSIZ)) {
	eval 'sub MAXSSIZ () { &MAXDSIZ;}' unless defined(&MAXSSIZ);
    }
    eval 'sub DMMIN () {32;}' unless defined(&DMMIN);
    eval 'sub DMMAX () {4096;}' unless defined(&DMMAX);
    eval 'sub SYSPTSIZE () {(2*  &NPTEPG);}' unless defined(&SYSPTSIZE);
    eval 'sub USRPTSIZE () {(1*  &NPTEPG);}' unless defined(&USRPTSIZE);
    unless(defined(&USRIOSIZE)) {
	eval 'sub USRIOSIZE () {(1*  &NPTEPG);}' unless defined(&USRIOSIZE);
    }
    unless(defined(&SHMMAXPGS)) {
	eval 'sub SHMMAXPGS () {1024;}' unless defined(&SHMMAXPGS);
    }
    eval 'sub MMSEG () {0x200000;}' unless defined(&MMSEG);
    eval 'sub LOOPPAGES () {( &maxfree -  &firstfree);}' unless defined(&LOOPPAGES);
    eval 'sub MAXSLP () {20;}' unless defined(&MAXSLP);
    eval 'sub SAFERSS () {4;}' unless defined(&SAFERSS);
    eval 'sub DISKRPM () {3600;}' unless defined(&DISKRPM);
    eval 'sub KLMAX () {(4/ &CLSIZE);}' unless defined(&KLMAX);
    eval 'sub KLSEQL () {(2/ &CLSIZE);}' unless defined(&KLSEQL);
    eval 'sub KLIN () {(4/ &CLSIZE);}' unless defined(&KLIN);
    eval 'sub KLTXT () {(4/ &CLSIZE);}' unless defined(&KLTXT);
    eval 'sub KLOUT () {(4/ &CLSIZE);}' unless defined(&KLOUT);
    eval 'sub KLSDIST () {3;}' unless defined(&KLSDIST);
    eval 'sub LOTSFREE () {(512* 1024);}' unless defined(&LOTSFREE);
    eval 'sub LOTSFREEFRACT () {4;}' unless defined(&LOTSFREEFRACT);
    eval 'sub DESFREE () {(200* 1024);}' unless defined(&DESFREE);
    eval 'sub DESFREEFRACT () {8;}' unless defined(&DESFREEFRACT);
    eval 'sub HANDSPREAD () {(2* 1024* 1024);}' unless defined(&HANDSPREAD);
    eval 'sub RATETOSCHEDPAGING () {4;}' unless defined(&RATETOSCHEDPAGING);
    eval 'sub LOTSOFMEM () {2;}' unless defined(&LOTSOFMEM);
    eval 'sub VM_MIN_ADDRESS () {(0);}' unless defined(&VM_MIN_ADDRESS);
    eval 'sub VM_MAXUSER_ADDRESS () {(( &USRSTACK));}' unless defined(&VM_MAXUSER_ADDRESS);
    eval 'sub VM_MAX_ADDRESS () {((0-( &UPAGES* &NBPG)));}' unless defined(&VM_MAX_ADDRESS);
    eval 'sub VM_MIN_KERNEL_ADDRESS () {(0);}' unless defined(&VM_MIN_KERNEL_ADDRESS);
    eval 'sub VM_MAX_KERNEL_ADDRESS () {((0- &NBPG));}' unless defined(&VM_MAX_KERNEL_ADDRESS);
    eval 'sub VM_MBUF_SIZE () {( &NMBCLUSTERS* &MCLBYTES);}' unless defined(&VM_MBUF_SIZE);
    eval 'sub VM_KMEM_SIZE () {( &NKMEMCLUSTERS* &CLBYTES);}' unless defined(&VM_KMEM_SIZE);
    eval 'sub VM_PHYS_SIZE () {( &USRIOSIZE* &CLBYTES);}' unless defined(&VM_PHYS_SIZE);
    eval 'sub MACHINE_NONCONTIG () {1;}' unless defined(&MACHINE_NONCONTIG);
    eval 'sub VM_KERNEL_PT_PAGES () {(2);}' unless defined(&VM_KERNEL_PT_PAGES);
    eval 'sub pcbb {
        local($p) = @_;
	    eval q((($p)-> &p_addr));
    }' unless defined(&pcbb);
}
1;
