x86: move common declarations to hw_irq.h