mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
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>
This commit is contained in:
parent
406c20754a
commit
5b1cdb4ead
3 changed files with 20 additions and 6 deletions
1
hw/usb.h
1
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue