/* This function is only for special cases such as the 'ferr', and temporary use for normal devices until they are converted to qdev.  */
qemu_irq isa_get_irq(ISADevice *dev, int isairq)
/* This function is only for special cases such as the 'ferr', and temporary use for normal devices until they are converted to qdev.  */
qemu_irq isa_get_irq(ISADevice *dev, int isairq)
{
    assert(!dev || ISA_BUS(qdev_get_parent_bus(DEVICE(dev))) == isabus);
    if (isairq < 0 || isairq > 15) {
        hw_error("isa irq %d invalid", isairq);
    }
    return isabus->irqs[isairq];
}