IRQ_PIC_BASE
#define IRQ_TO_PIC(x) (((x) - IRQ_PIC_BASE) >> 5)
#define IRQ_TO_PIRQ(x) (((x) - IRQ_PIC_BASE) & 31)
#define NIRQ (IRQ_PIC_BASE + (NIRQ_PER_PIC * NPIC))
#define IHLIST_COUNT (NIRQ - IRQ_PIC_BASE)
#define IRQ_TO_IHLIST(x) ((x) - IRQ_PIC_BASE)
for (i = 0; i < IRQ_PIC_BASE; i++) {
const int base = IRQ_PIC_BASE + (idx * NIRQ_PER_PIC);
if (irq < IRQ_PIC_BASE || irq >= NIRQ) {