require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_ARM_TYPES_H_)) {
    eval 'sub _ARM_TYPES_H_ () {1;}' unless defined(&_ARM_TYPES_H_);
    require 'sys/cdefs.ph';
    require 'sys/featuretest.ph';
    require 'arm/int_types.ph';
    if(defined(&_KERNEL)) {
    }
    if(defined(&_KERNEL) || defined(&_KMEMUSER) || defined(&_KERNTYPES) || defined(&_STANDALONE)) {
	eval 'sub PRIxPADDR () {"lx";}' unless defined(&PRIxPADDR);
	eval 'sub PRIxPSIZE () {"lx";}' unless defined(&PRIxPSIZE);
	eval 'sub PRIuPSIZE () {"lu";}' unless defined(&PRIuPSIZE);
	eval 'sub PRIxVADDR () {"lx";}' unless defined(&PRIxVADDR);
	eval 'sub PRIxVSIZE () {"lx";}' unless defined(&PRIxVSIZE);
	eval 'sub PRIuVSIZE () {"lu";}' unless defined(&PRIuVSIZE);
	eval 'sub VADDR_MAX () { &ULONG_MAX;}' unless defined(&VADDR_MAX);
	eval 'sub PADDR_MAX () { &ULONG_MAX;}' unless defined(&PADDR_MAX);
	eval 'sub PRIxREGISTER () {"x";}' unless defined(&PRIxREGISTER);
    }
    if(defined(&_KERNEL)) {
    } else {
    }
    eval 'sub __SIMPLELOCK_LOCKED () {1;}' unless defined(&__SIMPLELOCK_LOCKED);
    eval 'sub __SIMPLELOCK_UNLOCKED () {0;}' unless defined(&__SIMPLELOCK_UNLOCKED);
    eval 'sub __HAVE_COMMON___TLS_GET_ADDR () {1;}' unless defined(&__HAVE_COMMON___TLS_GET_ADDR);
    eval 'sub __HAVE_CPU_DATA_FIRST () {1;}' unless defined(&__HAVE_CPU_DATA_FIRST);
    eval 'sub __HAVE_MINIMAL_EMUL () {1;}' unless defined(&__HAVE_MINIMAL_EMUL);
    eval 'sub __HAVE_NEW_STYLE_BUS_H () {1;}' unless defined(&__HAVE_NEW_STYLE_BUS_H);
    eval 'sub __HAVE_OLD_DISKLABEL () {1;}' unless defined(&__HAVE_OLD_DISKLABEL);
    eval 'sub __HAVE_SYSCALL_INTERN () {1;}' unless defined(&__HAVE_SYSCALL_INTERN);
    eval 'sub __HAVE_TLS_VARIANT_I () {1;}' unless defined(&__HAVE_TLS_VARIANT_I);
    eval 'sub __HAVE___LWP_GETPRIVATE_FAST () {1;}' unless defined(&__HAVE___LWP_GETPRIVATE_FAST);
    if(defined(&__ARM_EABI__)  && defined(&_ARM_ARCH_6)) {
	eval 'sub __HAVE_ATOMIC64_OPS () {1;}' unless defined(&__HAVE_ATOMIC64_OPS);
    }
    if(defined(&_ARM_ARCH_6)) {
	eval 'sub __HAVE_MAXPROC_HOOK () {1;}' unless defined(&__HAVE_MAXPROC_HOOK);
	eval 'sub __HAVE_UCAS_MP () {1;}' unless defined(&__HAVE_UCAS_MP);
    }
    if(defined(&_KERNEL) || defined(&_KMEMUSER)) {
	eval 'sub PCU_FPU () {0;}' unless defined(&PCU_FPU);
	eval 'sub PCU_UNIT_COUNT () {1;}' unless defined(&PCU_UNIT_COUNT);
    }
    if(defined(&_KERNEL)) {
	eval 'sub __HAVE_RAS () {1;}' unless defined(&__HAVE_RAS);
    }
}
1;
