require '_h2ph_pre.ph';

unless(defined(&_UVM_UVM_PAGE_H_)) {
    eval 'sub _UVM_UVM_PAGE_H_ () {1;}' unless defined(&_UVM_UVM_PAGE_H_);
    if(defined(&_KERNEL)) {
	eval 'sub uvm_lock_pageq () {
	    eval q( &simple_lock( ($uvm->{pageqlock})));
	}' unless defined(&uvm_lock_pageq);
	eval 'sub uvm_unlock_pageq () {
	    eval q( &simple_unlock( ($uvm->{pageqlock})));
	}' unless defined(&uvm_unlock_pageq);
	eval 'sub uvm_pagehash {
	    local($obj,$off) = @_;
    	    eval q((($obj+ &atop($off)) &  ($uvm->{page_hashmask})));
	}' unless defined(&uvm_pagehash);
	eval 'sub UVM_PAGEZERO_TARGET () {( ($uvmexp->{free}));}' unless defined(&UVM_PAGEZERO_TARGET);
	if(defined(&UVM_PAGE_INLINE)) {
	    eval 'sub PAGE_INLINE () { &static  &__inline;}' unless defined(&PAGE_INLINE);
	} else {
	    eval 'sub PAGE_INLINE () {1;}' unless defined(&PAGE_INLINE);
	}
	if(defined( &UVM_PAGE_TRKOWN)) {
	}
	if(!defined( &PMAP_STEAL_MEMORY)) {
	}
    }
}
1;
