mirror of
https://github.com/qemu/qemu.git
synced 2024-12-19 02:03:49 +08:00
a24273bba8
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>
17 lines
332 B
C
17 lines
332 B
C
#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 */
|