summaryrefslogtreecommitdiffstats
path: root/include/hw/usb
diff options
context:
space:
mode:
authorAndrey Smirnov2018-02-09 11:40:30 +0100
committerPeter Maydell2018-02-09 11:40:30 +0100
commita24273bba858d61f75ab0e98871f7691988fd0ce (patch)
tree4da704d7d2c3fd6c9be6096002e15321c00a0cd8 /include/hw/usb
parenti.MX: Add implementation of i.MX7 GPR IP block (diff)
downloadqemu-a24273bba858d61f75ab0e98871f7691988fd0ce.tar.gz
qemu-a24273bba858d61f75ab0e98871f7691988fd0ce.tar.xz
qemu-a24273bba858d61f75ab0e98871f7691988fd0ce.zip
usb: Add basic code to emulate Chipidea USB IP
Add code to emulate Chipidea USB IP (used in i.MX SoCs). Tested to work against: -usb -drive if=none,id=stick,file=usb.img,format=raw -device \ usb-storage,bus=usb-bus.0,drive=stick Cc: Peter Maydell <peter.maydell@linaro.org> Cc: Jason Wang <jasowang@redhat.com> Cc: Philippe Mathieu-Daudé <f4bug@amsat.org> Cc: Marcel Apfelbaum <marcel.apfelbaum@zoho.com> Cc: Michael S. Tsirkin <mst@redhat.com> Cc: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Cc: yurovsky@gmail.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/usb')
-rw-r--r--include/hw/usb/chipidea.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/hw/usb/chipidea.h b/include/hw/usb/chipidea.h
new file mode 100644
index 0000000000..1ec2e9dbda
--- /dev/null
+++ b/include/hw/usb/chipidea.h
@@ -0,0 +1,16 @@
+#ifndef CHIPIDEA_H
+#define CHIPIDEA_H
+
+#include "hw/usb/hcd-ehci.h"
+
+typedef struct ChipideaState {
+ /*< private >*/
+ EHCISysBusState parent_obj;
+
+ MemoryRegion iomem[3];
+} ChipideaState;
+
+#define TYPE_CHIPIDEA "usb-chipidea"
+#define CHIPIDEA(obj) OBJECT_CHECK(ChipideaState, (obj), TYPE_CHIPIDEA)
+
+#endif /* CHIPIDEA_H */