qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] IBM PowerPC 4xx 32-bit PCI controller emulation


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH] IBM PowerPC 4xx 32-bit PCI controller emulation
Date: Mon, 1 Dec 2008 22:51:15 +0200

On 12/1/08, Hollis Blanchard <address@hidden> wrote:
> On Mon, 2008-12-01 at 20:15 +0200, Blue Swirl wrote:
>  >
>
> > >  +    /* Board IRQs 2-5 are connected to UIC IRQs 28-25 */
>  > >  +    /* XXX Needs some abstracting for boards other than Bamboo. */
>  > >  +    qemu_set_irq(pic[30-irq_num], level);
>  > >  +}
>  >
>  > The IRQs should be set up at the board level and then passed to the
>  > device.
>
>
> As far as I can see, this isn't going to work. The functions that need
>  access to this information are the driver's map_irq() and set_irq(), and
>  neither of these callbacks is provided a pointer to the driver-specific
>  structure where I could store the board irqs.
>
>  Can you elaborate on your idea, or point me to existing code that
>  implements it?

The board creates four IRQs which it passes to the device. These are
not directly connected to PIC. Instead the request function of the IRQ
(defined in the board file) raises whatever PIC IRQs the board wants.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]