From 406c20754a29586f6dc1fccacbca3792be24922c Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Wed, 31 Aug 2011 21:49:40 +0100 Subject: usb-musb: Take a DeviceState* in init function Initialise usb-musb by passing it a DeviceState* and the offset of the IRQs in its gpio array, rather than a plain pointer to an irq array. This is simpler for callers and also allows us to pass in a valid parent to usb_bus_new(), so the USB bus actually appears in the qdev tree. Signed-off-by: Peter Maydell Signed-off-by: Gerd Hoffmann --- hw/usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/usb.h') diff --git a/hw/usb.h b/hw/usb.h index e251e616f4..55c061e3f9 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -343,7 +343,7 @@ enum musb_irq_source_e { }; typedef struct MUSBState MUSBState; -MUSBState *musb_init(qemu_irq *irqs); +MUSBState *musb_init(DeviceState *parent_device, int gpio_base); uint32_t musb_core_intr_get(MUSBState *s); void musb_core_intr_clear(MUSBState *s, uint32_t mask); void musb_set_size(MUSBState *s, int epnum, int size, int is_tx); -- cgit 1.4.1