Re: [Qemu-devel] [PATCH] uhci: stick irq routing info into UHCIInfo too.

2012-10-29 Thread Stefan Hajnoczi
On Fri, Oct 26, 2012 at 03:01:33PM +0200, Gerd Hoffmann wrote: > Kills the ugly "switch (device_id) { ... }" struct and makes it easier > to figure what the differences between the uhci variants are. > > Need our own DeviceClass struct for that so we can allocate some space > to store UHCIInfo. >

[Qemu-devel] [PATCH] uhci: stick irq routing info into UHCIInfo too.

2012-10-26 Thread Gerd Hoffmann
Kills the ugly "switch (device_id) { ... }" struct and makes it easier to figure what the differences between the uhci variants are. Need our own DeviceClass struct for that so we can allocate some space to store UHCIInfo. Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-uhci.c | 32 ++