diff options
author | Philippe Mathieu-Daudé | 2020-06-01 16:15:35 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-06-12 17:20:14 +0200 |
commit | 2c89d91195c4c7a118d2ae3518c31ca77a0583cd (patch) | |
tree | db79d36b62bfb48e0a9d278be4229434a2a7ed9a /include/hw/usb.h | |
parent | exec/memory: Remove unused MemoryRegionMmio type (diff) | |
download | qemu-2c89d91195c4c7a118d2ae3518c31ca77a0583cd.tar.gz qemu-2c89d91195c4c7a118d2ae3518c31ca77a0583cd.tar.xz qemu-2c89d91195c4c7a118d2ae3518c31ca77a0583cd.zip |
hw/usb: Move device-specific declarations to new 'hcd-musb.h' header
Move the declarations for the MUSB-HDRC USB2.0 OTG compliant core
into a separate header.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200601141536.15192-3-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/usb.h')
-rw-r--r-- | include/hw/usb.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h index 1cf1cd9584..e2128c7c45 100644 --- a/include/hw/usb.h +++ b/include/hw/usb.h @@ -474,36 +474,6 @@ bool usb_host_dev_is_scsi_storage(USBDevice *usbdev); #define VM_USB_HUB_SIZE 8 -/* hw/usb/hdc-musb.c */ - -enum musb_irq_source_e { - musb_irq_suspend = 0, - musb_irq_resume, - musb_irq_rst_babble, - musb_irq_sof, - musb_irq_connect, - musb_irq_disconnect, - musb_irq_vbus_request, - musb_irq_vbus_error, - musb_irq_rx, - musb_irq_tx, - musb_set_vbus, - musb_set_session, - /* Add new interrupts here */ - musb_irq_max, /* total number of interrupts defined */ -}; - -typedef struct MUSBState MUSBState; - -extern CPUReadMemoryFunc * const musb_read[]; -extern CPUWriteMemoryFunc * const musb_write[]; - -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); - /* usb-bus.c */ #define TYPE_USB_BUS "usb-bus" |