require '_h2ph_pre.ph';

if(!defined (defined(&_ARCH_MACPPC_MACPPC_RBUS_MACHDEP_H_) ? &_ARCH_MACPPC_MACPPC_RBUS_MACHDEP_H_ : 0)) {
    eval 'sub _ARCH_MACPPC_MACPPC_RBUS_MACHDEP_H_ () {1;}' unless defined(&_ARCH_MACPPC_MACPPC_RBUS_MACHDEP_H_);
    eval 'sub md_space_map {
        local($bt, $physaddr, $size, $flags, $bshp) = @_;
	    eval q( &bus_space_map(($bt), ($physaddr), ($size), ($flags), ($bshp)));
    }' unless defined(&md_space_map);
    eval 'sub md_space_unmap {
        local($bt, $bsh, $size, $adrp) = @_;
	    eval q( &do { *$adrp =  &bus_space_unmap_p(($bt), ($bsh), ($size));  &if ( ($bt->{bus_io})) { *$adrp = *$adrp & 0xffff; } }  &while (0));
    }' unless defined(&md_space_unmap);
}
1;
