require '_h2ph_pre.ph';

unless(defined(&_POWERPC_PTE_H_)) {
    eval 'sub _POWERPC_PTE_H_ () {1;}' unless defined(&_POWERPC_PTE_H_);
    require 'sys/queue.ph';
    unless(defined(&_LOCORE)) {
    }
    eval 'sub PTE_VALID () {0x80000000;}' unless defined(&PTE_VALID);
    eval 'sub PTE_VSID_SHIFT () {7;}' unless defined(&PTE_VSID_SHIFT);
    eval 'sub PTE_HID () {0x40;}' unless defined(&PTE_HID);
    eval 'sub PTE_API () {0x3f;}' unless defined(&PTE_API);
    eval 'sub PTE_RPGN () {0xfffff000;}' unless defined(&PTE_RPGN);
    eval 'sub PTE_REF () {0x100;}' unless defined(&PTE_REF);
    eval 'sub PTE_CHG () {0x80;}' unless defined(&PTE_CHG);
    eval 'sub PTE_WIMG () {0x78;}' unless defined(&PTE_WIMG);
    eval 'sub PTE_W () {0x40;}' unless defined(&PTE_W);
    eval 'sub PTE_EXE () {0x40;}' unless defined(&PTE_EXE);
    eval 'sub PTE_I () {0x20;}' unless defined(&PTE_I);
    eval 'sub PTE_M () {0x10;}' unless defined(&PTE_M);
    eval 'sub PTE_G () {0x8;}' unless defined(&PTE_G);
    eval 'sub PTE_PP () {0x3;}' unless defined(&PTE_PP);
    eval 'sub PTE_RO () {0x3;}' unless defined(&PTE_RO);
    eval 'sub PTE_RW () {0x2;}' unless defined(&PTE_RW);
    unless(defined(&_LOCORE)) {
    }
    eval 'sub ADDR_SR_SHIFT () {28;}' unless defined(&ADDR_SR_SHIFT);
    eval 'sub ADDR_PIDX () {0xffff000;}' unless defined(&ADDR_PIDX);
    eval 'sub ADDR_PIDX_SHIFT () {12;}' unless defined(&ADDR_PIDX_SHIFT);
    eval 'sub ADDR_API_SHIFT () {22;}' unless defined(&ADDR_API_SHIFT);
    eval 'sub ADDR_POFF () {0xfff;}' unless defined(&ADDR_POFF);
    unless(defined(&_LOCORE)) {
	if(defined(&_KERNEL)) {
	}
    }
    eval 'sub DSISR_DIRECT () {0x80000000;}' unless defined(&DSISR_DIRECT);
    eval 'sub DSISR_NOTFOUND () {0x40000000;}' unless defined(&DSISR_NOTFOUND);
    eval 'sub DSISR_PROTECT () {0x8000000;}' unless defined(&DSISR_PROTECT);
    eval 'sub DSISR_INVRX () {0x4000000;}' unless defined(&DSISR_INVRX);
    eval 'sub DSISR_STORE () {0x2000000;}' unless defined(&DSISR_STORE);
    eval 'sub DSISR_DABR () {0x400000;}' unless defined(&DSISR_DABR);
    eval 'sub DSISR_SEGMENT () {0x200000;}' unless defined(&DSISR_SEGMENT);
    eval 'sub DSISR_EAR () {0x100000;}' unless defined(&DSISR_EAR);
    eval 'sub ISSRR1_NOTFOUND () {0x40000000;}' unless defined(&ISSRR1_NOTFOUND);
    eval 'sub ISSRR1_DIRECT () {0x10000000;}' unless defined(&ISSRR1_DIRECT);
    eval 'sub ISSRR1_PROTECT () {0x8000000;}' unless defined(&ISSRR1_PROTECT);
    eval 'sub ISSRR1_SEGMENT () {0x200000;}' unless defined(&ISSRR1_SEGMENT);
    if(defined(&_KERNEL)) {
	unless(defined(&_LOCORE)) {
	}
    }
}
1;
