[Top][All Lists]
[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: |
Hollis Blanchard |
Subject: |
Re: [Qemu-devel] [PATCH] IBM PowerPC 4xx 32-bit PCI controller emulation |
Date: |
Mon, 01 Dec 2008 13:59:29 -0600 |
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?
--
Hollis Blanchard
IBM Linux Technology Center