require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_UVM_UVM_PAGER_H_)) {
    eval 'sub _UVM_UVM_PAGER_H_ () {1;}' unless defined(&_UVM_UVM_PAGER_H_);
    eval 'sub PGO_CLEANIT () {0x1;}' unless defined(&PGO_CLEANIT);
    eval 'sub PGO_SYNCIO () {0x2;}' unless defined(&PGO_SYNCIO);
    eval 'sub PGO_DEACTIVATE () {0x4;}' unless defined(&PGO_DEACTIVATE);
    eval 'sub PGO_FREE () {0x8;}' unless defined(&PGO_FREE);
    eval 'sub PGO_ALLPAGES () {0x10;}' unless defined(&PGO_ALLPAGES);
    eval 'sub PGO_JOURNALLOCKED () {0x20;}' unless defined(&PGO_JOURNALLOCKED);
    eval 'sub PGO_LOCKED () {0x40;}' unless defined(&PGO_LOCKED);
    eval 'sub PGO_BUSYFAIL () {0x80;}' unless defined(&PGO_BUSYFAIL);
    eval 'sub PGO_OVERWRITE () {0x200;}' unless defined(&PGO_OVERWRITE);
    eval 'sub PGO_PASTEOF () {0x400;}' unless defined(&PGO_PASTEOF);
    eval 'sub PGO_NOBLOCKALLOC () {0x800;}' unless defined(&PGO_NOBLOCKALLOC);
    eval 'sub PGO_NOTIMESTAMP () {0x1000;}' unless defined(&PGO_NOTIMESTAMP);
    eval 'sub PGO_RECLAIM () {0x2000;}' unless defined(&PGO_RECLAIM);
    eval 'sub PGO_GLOCKHELD () {0x4000;}' unless defined(&PGO_GLOCKHELD);
    eval 'sub PGO_LAZY () {0x8000;}' unless defined(&PGO_LAZY);
    eval 'sub PGO_DONTCARE () {( -1);}' unless defined(&PGO_DONTCARE);
    if(defined(&_KERNEL)) {
	eval 'sub UVMPAGER_MAPIN_WAITOK () {0x1;}' unless defined(&UVMPAGER_MAPIN_WAITOK);
	eval 'sub UVMPAGER_MAPIN_READ () {0x2;}' unless defined(&UVMPAGER_MAPIN_READ);
	eval 'sub UVMPAGER_MAPIN_WRITE () {0x;}' unless defined(&UVMPAGER_MAPIN_WRITE);
    }
}
1;
