* [Qemu-devel] pci_set_irq_fn: problematic interface
@ 2009-06-17 18:37 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-06-17 18:37 UTC (permalink / raw)
To: Paul Brook, qemu-devel
Hi,
I'm trying to clean up piix_pci.c by putting the static state
variables in into a device state structure. But I hit a problem with
piix4_dev and pci_gt64120_set_irq(). The latter wants to access
piix4_dev outside of piix_pci.c. Because the PCI IRQ function does not
take any device handle as a parameter, this is a bit difficult to fix.
So, perhaps pci_set_irq_fn should be changed to
typedef void (*pci_set_irq_fn)(void *opaque, qemu_irq *pic, int
irq_num, int level),
where opaque supplies device state for the piix3/piix4?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-17 18:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-17 18:37 [Qemu-devel] pci_set_irq_fn: problematic interface Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).