void isa_init_irq(ISADevice *dev, qemu_irq *p, int isairq)

{

    assert(dev->nirqs < ARRAY_SIZE(dev->isairq));

    if (isabus->assigned & (1 << isairq)) {

        hw_error("isa irq %d already assigned", isairq);

    }

    isabus->assigned |= (1 << isairq);

    dev->isairq[dev->nirqs] = isairq;

    *p = isabus->irqs[isairq];

    dev->nirqs++;

}

void isa_init_irq(ISADevice *dev, qemu_irq *p, int isairq)

{

    assert(dev->nirqs < ARRAY_SIZE(dev->isairq));

    if (isabus->assigned & (1 << isairq)) {

        hw_error("isa irq %d already assigned", isairq);

    }

    isabus->assigned |= (1 << isairq);

    dev->isairq[dev->nirqs] = isairq;

    *p = isabus->irqs[isairq];

    dev->nirqs++;

}

void FUNC_0(ISADevice *VAR_0, qemu_irq *VAR_1, int VAR_2)

{

    assert(VAR_0->nirqs < ARRAY_SIZE(VAR_0->VAR_2));

    if (isabus->assigned & (1 << VAR_2)) {

        hw_error("isa irq %d already assigned", VAR_2);

    }

    isabus->assigned |= (1 << VAR_2);

    VAR_0->VAR_2[VAR_0->nirqs] = VAR_2;

    *VAR_1 = isabus->irqs[VAR_2];

    VAR_0->nirqs++;

}

void FUNC_0(ISADevice *VAR_0, qemu_irq *VAR_1, int VAR_2)
{ assert(VAR_0->nirqs < ARRAY_SIZE(VAR_0->VAR_2)); if (isabus->assigned & (1 << VAR_2)) { hw_error("isa irq %d already assigned", VAR_2); } isabus->assigned |= (1 << VAR_2); VAR_0->VAR_2[VAR_0->nirqs] = VAR_2; *VAR_1 = isabus->irqs[VAR_2]; VAR_0->nirqs++; }