require '_h2ph_pre.ph';

unless(defined(&__irq_h)) {
    eval 'sub __irq_h () {1;}' unless defined(&__irq_h);
    require 'linux/config.ph';
    if(!defined( &CONFIG_ARCH_S390)) {
	require 'linux/cache.ph';
	require 'linux/spinlock.ph';
	require 'asm/irq.ph';
	require 'asm/ptrace.ph';
	eval 'sub IRQ_INPROGRESS () {1;}' unless defined(&IRQ_INPROGRESS);
	eval 'sub IRQ_DISABLED () {2;}' unless defined(&IRQ_DISABLED);
	eval 'sub IRQ_PENDING () {4;}' unless defined(&IRQ_PENDING);
	eval 'sub IRQ_REPLAY () {8;}' unless defined(&IRQ_REPLAY);
	eval 'sub IRQ_AUTODETECT () {16;}' unless defined(&IRQ_AUTODETECT);
	eval 'sub IRQ_WAITING () {32;}' unless defined(&IRQ_WAITING);
	eval 'sub IRQ_LEVEL () {64;}' unless defined(&IRQ_LEVEL);
	eval 'sub IRQ_MASKED () {128;}' unless defined(&IRQ_MASKED);
	eval 'sub IRQ_PER_CPU () {256;}' unless defined(&IRQ_PER_CPU);
	require 'asm/hw_irq.ph';
    }
}
1;
