diff options
author | Juha Riihimäki | 2011-08-31 22:49:41 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2011-09-07 09:58:27 +0200 |
commit | 5b1cdb4ead0b3d2190492fce0a17e809ef915f26 (patch) | |
tree | 6352cb66925129abad5632b2b608f1ba604ec918 /hw/usb.h | |
parent | usb-musb: Take a DeviceState* in init function (diff) | |
download | qemu-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |