On 26 July 2016 at 06:08, Alistair Francis <alistai...@gmail.com> wrote:
> I think this function should work:
>
> /*
>  * qemu_allocate_or_irqs
>  * @in_irq: An input IRQ. It will be the result of the @out_irqs ORed together
>  * @n: The number of interrupt lines that should be ORed together
>  *
>  * returns: An array of interrupts that should be ORed together
>  *
>  * OR all of the interrupts returned in the array into a single @in_irq.
>  */
> qemu_irq *qemu_allocate_or_irqs(qemu_irq in_irq, int n);

As I say, it really needs to be an actual device because
it has to have state (tracking the level of all the inputs
so when one changes it can recalculate the new output).

-- PMM

Reply via email to