require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_X86_I82489REG_H_)) {
    eval 'sub _X86_I82489REG_H_ () {1;}' unless defined(&_X86_I82489REG_H_);
    if(defined(&_KERNEL)) {
    }
    eval 'sub lapic_cpu_number () {
        eval q(( &i82489_readreg( &LAPIC_ID)>> &LAPIC_ID_SHIFT));
    }' unless defined(&lapic_cpu_number);
    eval 'sub LAPIC_SPURIOUS_VECTOR () {0xef;}' unless defined(&LAPIC_SPURIOUS_VECTOR);
    eval 'sub LAPIC_IPI_VECTOR () {0xe0;}' unless defined(&LAPIC_IPI_VECTOR);
    eval 'sub LAPIC_IPI_OFFSET () {0xf0;}' unless defined(&LAPIC_IPI_OFFSET);
    eval 'sub LAPIC_IPI_INVLTLB () {( &LAPIC_IPI_OFFSET + 0);}' unless defined(&LAPIC_IPI_INVLTLB);
    eval 'sub LAPIC_IPI_INVLPG () {( &LAPIC_IPI_OFFSET + 1);}' unless defined(&LAPIC_IPI_INVLPG);
    eval 'sub LAPIC_IPI_INVLRANGE () {( &LAPIC_IPI_OFFSET + 2);}' unless defined(&LAPIC_IPI_INVLRANGE);
    eval 'sub LAPIC_TIMER_VECTOR () {0xc0;}' unless defined(&LAPIC_TIMER_VECTOR);
    eval 'sub LAPIC_PIN_TIMER () {0;}' unless defined(&LAPIC_PIN_TIMER);
    eval 'sub LAPIC_PIN_PCINT () {2;}' unless defined(&LAPIC_PIN_PCINT);
    eval 'sub LAPIC_PIN_LVINT0 () {3;}' unless defined(&LAPIC_PIN_LVINT0);
    eval 'sub LAPIC_PIN_LVINT1 () {4;}' unless defined(&LAPIC_PIN_LVINT1);
    eval 'sub LAPIC_PIN_LVERR () {5;}' unless defined(&LAPIC_PIN_LVERR);
}
1;
