8caef85078
meson: Add CanoKey
...
Signed-off-by: Hongren (Zenithal) Zheng <i@zenithal.me >
Message-Id: <YoY6YRD6cxH21mms@Sun>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2022-06-14 10:34:36 +02:00
670b359193
usb: fix usb-host dependency check
...
Fixes: 90540f3289
("configure, meson: convert libusb detection to meson", 2021-06-25)
Reported-by: Programmingkid <programmingkidx@gmail.com >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Message-Id: <20210721081718.301343-1-kraxel@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2021-07-22 14:44:47 +02:00
627302afb2
usb: build usb-host as module
...
Drop one more shared library dependency (libusb) from core qemu.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Reviewed-by: Jose R. Ziviani <jziviani@suse.de >
Message-Id: <20210624103836.2382472-34-kraxel@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2021-07-09 18:21:33 +02:00
f1a74bf976
monitor/usb: register 'info usbhost' dynamically
...
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Reviewed-by: Jose R. Ziviani <jziviani@suse.de >
Message-Id: <20210624103836.2382472-33-kraxel@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2021-07-09 18:21:33 +02:00
18f31e60c7
configure, meson: convert libusbredir detection to meson
...
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2021-06-25 10:54:12 +02:00
5f364c57bb
configure, meson: convert libcacard detection to meson
...
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2021-06-25 10:54:12 +02:00
90540f3289
configure, meson: convert libusb detection to meson
...
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2021-06-25 10:54:12 +02:00
9c3c834bdd
hw/usb: Do not build USB subsystem if not required
...
If the Kconfig 'USB' value is not selected, it is pointless to
build the USB core components. Add a stub for the HMP commands
and usbdevice_create() which is called by usb_device_add in
softmmu/vl.c.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20210424224110.3442424-3-f4bug@amsat.org >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2021-05-04 08:38:23 +02:00
f98c9bd45f
usb/storage: add kconfig symbols
...
Add new kconfig symbols so usb-storage and usb-bot can
be enabled or disabled individually at build time.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Message-Id: <20210312090425.772900-5-kraxel@redhat.com >
2021-03-15 17:01:12 +01:00
65561351e3
usb/storage move usb-storage device to separate source file
...
Pure code motion, no functional change.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Message-Id: <20210312090425.772900-4-kraxel@redhat.com >
2021-03-15 17:01:12 +01:00
31b7bed8b6
usb/storage: move usb-bot device to separate source file
...
Pure code motion, no functional change.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Message-Id: <20210312090425.772900-3-kraxel@redhat.com >
2021-03-15 17:01:12 +01:00
6f2bcd5fc8
hw/usb: Extract VT82C686 UHCI PCI function into a new unit
...
Extract the VT82C686 PCI UHCI function into a new unit so
it is only build when the VT82C686 south bridge is selected.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20210309190802.830969-4-f4bug@amsat.org >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2021-03-15 17:00:59 +01:00
0f6dba145a
usb: add pcap support.
...
Log all traffic of a specific usb device to a pcap file for later
inspection. File format is compatible with linux usb monitor.
Usage:
qemu -device usb-${somedevice},pcap=file.pcap
wireshark file.pcap
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20210119194452.2148048-1-kraxel@redhat.com >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2021-01-22 14:51:35 +01:00
e29c7db19d
usb: xlnx-usb-subsystem: Add xilinx usb subsystem
...
This model is a top level integration wrapper for hcd-dwc3 and
versal-usb2-ctrl-regs modules, this is used by xilinx versal soc's and
future xilinx usb subsystems would also be part of it.
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com >
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1607023357-5096-4-git-send-email-sai.pavan.boddu@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2020-12-15 12:04:30 +00:00
8bbe61f3c1
usb: Add DWC3 model
...
This patch adds skeleton model of dwc3 usb controller attached to
xhci-sysbus device. It defines global register space of DWC3 controller,
global registers control the AXI/AHB interfaces properties, external FIFO
support and event count support. All of which are unimplemented at
present,we are only supporting core reset and read of ID register.
Signed-off-by: Vikram Garhwal <fnu.vikram@xilinx.com >
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com >
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1607023357-5096-3-git-send-email-sai.pavan.boddu@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2020-12-15 12:04:30 +00:00
50e76a73de
usb: Add versal-usb2-ctrl-regs module
...
This module emulates control registers of versal usb2 controller, this is added
just to make guest happy. In general this module would control the phy-reset
signal from usb controller, data coherency of the transactions, signals
the host system errors received from controller.
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com >
Signed-off-by: Vikram Garhwal <fnu.vikram@xilinx.com >
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1607023357-5096-2-git-send-email-sai.pavan.boddu@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2020-12-15 12:04:30 +00:00
f00ff136ee
usb: hcd-xhci-sysbus: Attach xhci to sysbus device
...
Use XHCI as sysbus device, add memory region property to get the
address space instance for dma read/write.
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com >
Message-id: 1600957256-6494-5-git-send-email-sai.pavan.boddu@xilinx.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2020-09-28 12:40:11 +02:00
755fba11fb
usb/hcd-xhci: Move qemu-xhci device to hcd-xhci-pci.c
...
Move pci specific devices to new file. This set the environment to move all
pci specific hooks in hcd-xhci.c to hcd-xhci-pci.c.
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com >
Message-id: 1600957256-6494-3-git-send-email-sai.pavan.boddu@xilinx.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2020-09-28 12:40:11 +02:00
d7c1523f58
hw/usb: Add U2F device autoscan to passthru mode
...
This patch adds an autoscan to let u2f-passthru choose the first U2F
device it finds.
The autoscan is performed using libudev with an enumeration of all the
hidraw devices present on the host.
The first device which happens to be a U2F device is taken to do the
passtru.
Signed-off-by: César Belley <cesar.belley@lse.epita.fr >
Message-id: 20200826114209.28821-13-cesar.belley@lse.epita.fr
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2020-08-31 08:23:39 +02:00
0a40bcb740
meson: Add U2F key to meson
...
Signed-off-by: César Belley <cesar.belley@lse.epita.fr >
Message-id: 20200826114209.28821-8-cesar.belley@lse.epita.fr
[ fixes suggested by paolo ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2020-08-31 08:23:10 +02:00
06677ce161
meson: convert hw/usb
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-08-21 06:30:26 -04:00