require '_h2ph_pre.ph';

no warnings qw(redefine misc);

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_32 () {0x80000000;}' unless defined(&PTE_VALID_32);
    eval 'sub PTE_VSID_SHIFT_32 () {7;}' unless defined(&PTE_VSID_SHIFT_32);
    eval 'sub PTE_HID_32 () {0x40;}' unless defined(&PTE_HID_32);
    eval 'sub PTE_API_32 () {0x3f;}' unless defined(&PTE_API_32);
    eval 'sub PTE_RPGN_32 () {0xfffff000;}' unless defined(&PTE_RPGN_32);
    eval 'sub PTE_REF_32 () {0x100;}' unless defined(&PTE_REF_32);
    eval 'sub PTE_CHG_32 () {0x80;}' unless defined(&PTE_CHG_32);
    eval 'sub PTE_WIM_32 () {0x78;}' unless defined(&PTE_WIM_32);
    eval 'sub PTE_W_32 () {0x40;}' unless defined(&PTE_W_32);
    eval 'sub PTE_EXE_32 () {0x40;}' unless defined(&PTE_EXE_32);
    eval 'sub PTE_I_32 () {0x20;}' unless defined(&PTE_I_32);
    eval 'sub PTE_M_32 () {0x10;}' unless defined(&PTE_M_32);
    eval 'sub PTE_G_32 () {0x8;}' unless defined(&PTE_G_32);
    eval 'sub PTE_PP_32 () {0x3;}' unless defined(&PTE_PP_32);
    eval 'sub PTE_RO_32 () {0x3;}' unless defined(&PTE_RO_32);
    eval 'sub PTE_RW_32 () {0x2;}' unless defined(&PTE_RW_32);
    eval 'sub PTE_VALID_64 () {0x1;}' unless defined(&PTE_VALID_64);
    eval 'sub PTE_AVPN_SHIFT_64 () {7;}' unless defined(&PTE_AVPN_SHIFT_64);
    eval 'sub PTE_AVPN_64 () {1.84467440737096e+19;}' unless defined(&PTE_AVPN_64);
    eval 'sub PTE_API_SHIFT_64 () {7;}' unless defined(&PTE_API_SHIFT_64);
    eval 'sub PTE_API_64 () {0xf80;}' unless defined(&PTE_API_64);
    eval 'sub PTE_VSID_SHIFT_64 () {12;}' unless defined(&PTE_VSID_SHIFT_64);
    eval 'sub PTE_VSID_64 () {1.84467440737095e+19;}' unless defined(&PTE_VSID_64);
    eval 'sub PTE_HID_64 () {0x2;}' unless defined(&PTE_HID_64);
    eval 'sub PTE_RPGN_64 () {4.61168601842738e+18;}' unless defined(&PTE_RPGN_64);
    eval 'sub PTE_REF_64 () {0x100;}' unless defined(&PTE_REF_64);
    eval 'sub PTE_CHG_64 () {0x80;}' unless defined(&PTE_CHG_64);
    eval 'sub PTE_WIMG_64 () {0x78;}' unless defined(&PTE_WIMG_64);
    eval 'sub PTE_W_64 () {0x40;}' unless defined(&PTE_W_64);
    eval 'sub PTE_EXE_64 () { &PTE_W;}' unless defined(&PTE_EXE_64);
    eval 'sub PTE_I_64 () {0x20;}' unless defined(&PTE_I_64);
    eval 'sub PTE_M_64 () {0x10;}' unless defined(&PTE_M_64);
    eval 'sub PTE_G_64 () {0x8;}' unless defined(&PTE_G_64);
    eval 'sub PTE_N_64 () {0x4;}' unless defined(&PTE_N_64);
    eval 'sub PTE_PP_64 () {0x3;}' unless defined(&PTE_PP_64);
    eval 'sub PTE_RO_64 () {0x3;}' unless defined(&PTE_RO_64);
    eval 'sub PTE_RW_64 () {0x2;}' unless defined(&PTE_RW_64);
    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_32 () {22;}' unless defined(&ADDR_API_SHIFT_32);
    eval 'sub ADDR_API_SHIFT_64 () {16;}' unless defined(&ADDR_API_SHIFT_64);
    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;
