require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_i386_INTRDEFS_H)) {
    eval 'sub _i386_INTRDEFS_H () {1;}' unless defined(&_i386_INTRDEFS_H);
    eval 'sub IPLSHIFT () {4;}' unless defined(&IPLSHIFT);
    eval 'sub NIPL () {16;}' unless defined(&NIPL);
    eval 'sub IPL {
        local($level) = @_;
	    eval q((($level) >>  &IPLSHIFT));
    }' unless defined(&IPL);
    eval 'sub IDTVECOFF () {0x20;}' unless defined(&IDTVECOFF);
    eval 'sub MAKEIPL {
        local($priority) = @_;
	    eval q(( &IDTVECOFF + (($priority) <<  &IPLSHIFT)));
    }' unless defined(&MAKEIPL);
    eval 'sub IPL_NONE () {0;}' unless defined(&IPL_NONE);
    eval 'sub IPL_SOFTCLOCK () { &MAKEIPL(0);}' unless defined(&IPL_SOFTCLOCK);
    eval 'sub IPL_SOFTNET () { &MAKEIPL(1);}' unless defined(&IPL_SOFTNET);
    eval 'sub IPL_BIO () { &MAKEIPL(2);}' unless defined(&IPL_BIO);
    eval 'sub IPL_NET () { &MAKEIPL(3);}' unless defined(&IPL_NET);
    eval 'sub IPL_SOFTTTY () { &MAKEIPL(4);}' unless defined(&IPL_SOFTTTY);
    eval 'sub IPL_TTY () { &MAKEIPL(5);}' unless defined(&IPL_TTY);
    eval 'sub IPL_VM () { &MAKEIPL(6);}' unless defined(&IPL_VM);
    eval 'sub IPL_IMP () { &IPL_VM;}' unless defined(&IPL_IMP);
    eval 'sub IPL_AUDIO () { &MAKEIPL(7);}' unless defined(&IPL_AUDIO);
    eval 'sub IPL_CLOCK () { &MAKEIPL(8);}' unless defined(&IPL_CLOCK);
    eval 'sub IPL_STATCLOCK () { &MAKEIPL(9);}' unless defined(&IPL_STATCLOCK);
    eval 'sub IPL_SCHED () { &IPL_STATCLOCK;}' unless defined(&IPL_SCHED);
    eval 'sub IPL_HIGH () { &MAKEIPL(9);}' unless defined(&IPL_HIGH);
    eval 'sub IPL_IPI () { &MAKEIPL(10);}' unless defined(&IPL_IPI);
    eval 'sub IST_NONE () {0;}' unless defined(&IST_NONE);
    eval 'sub IST_PULSE () {1;}' unless defined(&IST_PULSE);
    eval 'sub IST_EDGE () {2;}' unless defined(&IST_EDGE);
    eval 'sub IST_LEVEL () {3;}' unless defined(&IST_LEVEL);
    eval 'sub LIR_IPI () {31;}' unless defined(&LIR_IPI);
    eval 'sub LIR_TIMER () {30;}' unless defined(&LIR_TIMER);
    eval 'sub SIR_CLOCK () {29;}' unless defined(&SIR_CLOCK);
    eval 'sub SIR_NET () {28;}' unless defined(&SIR_NET);
    eval 'sub SIR_TTY () {27;}' unless defined(&SIR_TTY);
    eval 'sub MAX_INTR_SOURCES () {32;}' unless defined(&MAX_INTR_SOURCES);
    eval 'sub NUM_LEGACY_IRQS () {16;}' unless defined(&NUM_LEGACY_IRQS);
    eval 'sub IDT_INTR_LOW () {(0x20 +  &NUM_LEGACY_IRQS);}' unless defined(&IDT_INTR_LOW);
    eval 'sub IDT_INTR_HIGH () {0xef;}' unless defined(&IDT_INTR_HIGH);
    eval 'sub I386_IPI_HALT () {0x1;}' unless defined(&I386_IPI_HALT);
    eval 'sub I386_IPI_MICROSET () {0x2;}' unless defined(&I386_IPI_MICROSET);
    eval 'sub I386_IPI_FLUSH_FPU () {0x4;}' unless defined(&I386_IPI_FLUSH_FPU);
    eval 'sub I386_IPI_SYNCH_FPU () {0x8;}' unless defined(&I386_IPI_SYNCH_FPU);
    eval 'sub I386_IPI_TLB () {0x10;}' unless defined(&I386_IPI_TLB);
    eval 'sub I386_IPI_MTRR () {0x20;}' unless defined(&I386_IPI_MTRR);
    eval 'sub I386_IPI_GDT () {0x40;}' unless defined(&I386_IPI_GDT);
    eval 'sub I386_IPI_DDB () {0x80;}' unless defined(&I386_IPI_DDB);
    eval 'sub I386_NIPI () {8;}' unless defined(&I386_NIPI);
    eval 'sub I386_IPI_NAMES () {{ "halt IPI", "timeset IPI", "FPU flush IPI", "FPU synch IPI", "TLB shootdown IPI", "MTRR update IPI", "GDT update IPI", "DDB IPI" };}' unless defined(&I386_IPI_NAMES);
    eval 'sub IREENT_MAGIC () {0x18041969;}' unless defined(&IREENT_MAGIC);
}
1;
