summaryrefslogtreecommitdiffstats
path: root/hw/usb.h
diff options
context:
space:
mode:
authorJuha Riihimäki2011-08-31 22:49:41 +0200
committerGerd Hoffmann2011-09-07 09:58:27 +0200
commit5b1cdb4ead0b3d2190492fce0a17e809ef915f26 (patch)
tree6352cb66925129abad5632b2b608f1ba604ec918 /hw/usb.h
parentusb-musb: Take a DeviceState* in init function (diff)
downloadqemu-5b1cdb4ead0b3d2190492fce0a17e809ef915f26.tar.gz
qemu-5b1cdb4ead0b3d2190492fce0a17e809ef915f26.tar.xz
qemu-5b1cdb4ead0b3d2190492fce0a17e809ef915f26.zip
usb-musb: Add reset function
Add a separate reset function musb_reset() to the usb-musb interface, so that users who implement a reset function can also reset usb-musb. Use this in tusb6010. Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com> [Riku Voipio: Fixes and restructuring patchset] Signed-off-by: Riku Voipio <riku.voipio@iki.fi> [Peter Maydell: More fixes and cleanups for upstream submission] Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
-rw-r--r--hw/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h
index 55c061e3f9..c08d469496 100644
--- a/hw/usb.h
+++ b/hw/usb.h
@@ -344,6 +344,7 @@ enum musb_irq_source_e {
typedef struct MUSBState MUSBState;
MUSBState *musb_init(DeviceState *parent_device, int gpio_base);
+void musb_reset(MUSBState *s);
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);