diff options
| author | Philippe Mathieu-Daudé | 2020-06-01 16:15:36 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2020-06-12 17:20:15 +0200 |
| commit | efb22b2f98975785aa594e5a198d4c2e13a5d2d0 (patch) | |
| tree | b1a8fbb26068134327ffd9112996df48fb0ec12b /include/hw/usb | |
| parent | hw/usb: Move device-specific declarations to new 'hcd-musb.h' header (diff) | |
| download | qemu-efb22b2f98975785aa594e5a198d4c2e13a5d2d0.tar.gz qemu-efb22b2f98975785aa594e5a198d4c2e13a5d2d0.tar.xz qemu-efb22b2f98975785aa594e5a198d4c2e13a5d2d0.zip | |
exec/cpu-common: Move MUSB specific typedefs to 'hw/usb/hcd-musb.h'
The CPUReadMemoryFunc/CPUWriteMemoryFunc typedefs are legacy
remnant from before the conversion to MemoryRegions.
Since they are now only used in tusb6010.c and hcd-musb.c,
move them to "hw/usb/musb.h" and rename them appropriately.
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
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-4-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/usb')
| -rw-r--r-- | include/hw/usb/hcd-musb.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/hw/usb/hcd-musb.h b/include/hw/usb/hcd-musb.h index 26b50132ff..c874b9f292 100644 --- a/include/hw/usb/hcd-musb.h +++ b/include/hw/usb/hcd-musb.h @@ -13,8 +13,6 @@ #ifndef HW_USB_MUSB_H #define HW_USB_MUSB_H -#include "exec/cpu-common.h" - enum musb_irq_source_e { musb_irq_suspend = 0, musb_irq_resume, @@ -32,8 +30,11 @@ enum musb_irq_source_e { musb_irq_max /* total number of interrupts defined */ }; -extern CPUReadMemoryFunc * const musb_read[]; -extern CPUWriteMemoryFunc * const musb_write[]; +/* TODO convert hcd-musb to QOM/qdev and remove MUSBReadFunc/MUSBWriteFunc */ +typedef void MUSBWriteFunc(void *opaque, hwaddr addr, uint32_t value); +typedef uint32_t MUSBReadFunc(void *opaque, hwaddr addr); +extern MUSBReadFunc * const musb_read[]; +extern MUSBWriteFunc * const musb_write[]; typedef struct MUSBState MUSBState; |
