Use new pc_usb_host_drv in all recipes and tests

* Switch from the legacy usb_host driver to the new PC version
  in recipes and automated tests
* Update documentation snippets
* Remove outdated, unused usb_rndis run-script

Fix genodelabs/genode#4416
This commit is contained in:
Stefan Kalkowski
2022-02-16 17:37:07 +01:00
committed by Norman Feske
parent a30c4281d2
commit 14d1ca17a9
16 changed files with 44 additions and 216 deletions

View File

@@ -84,7 +84,7 @@ append config {
<import>
<inline name="usb_drv.config">
<config>
<report devices="yes"/>
<report devices="yes" config="yes"/>
<policy label_prefix="virtualbox" class="0x3"/>
</config>
</inline>
@@ -289,6 +289,8 @@ regexp {(\[init -\> log_terminal\] \[init -\> event_dump\] Input event #0\t.*)}
run_genode_until {.*\[init -\> event_dump\] Input event #11.*\n} 60 [output_spawn_id]
unify_output { dev_info:} ""
unify_output { usb [0-9\-]+:} ""
unify_output { number [0-9]+} ""
unify_output {(?n)on usb-usbbus.*$} ""
unify_output {(?n)using .*$} ""
@@ -308,13 +310,13 @@ compare_output_to {
[init -> log_terminal] [init -> event_dump] Input event #3 REL_MOTION -1+0 key count: 1
[init -> log_terminal] [init -> event_dump] Input event #4 REL_MOTION +0+1 key count: 1
[init -> log_terminal] [init -> event_dump] Input event #5 RELEASE BTN_LEFT key count: 0
[init -> usb_drv] dev_info: USB disconnect, device
[init -> log_terminal] [init -> usb_drv] dev_info: USB disconnect, device
[init -> usb_drv] dev_info: new full-speed USB device
[init -> usb_drv] USB disconnect, device
[init -> log_terminal] [init -> usb_drv] USB disconnect, device
[init -> usb_drv] new full-speed USB device
[init -> virtualbox] Attach USB device (vendor=3eb, product=204d)
[init -> log_terminal] [init -> usb_drv] dev_info: new full-speed USB device
[init -> log_terminal] [init -> usb_hid_drv] dev_info: input: USB HID v1.11 Keyboard [HID 03eb:204d]
[init -> log_terminal] [init -> usb_hid_drv] dev_info: input: USB HID v1.11 Mouse [HID 03eb:204d]
[init -> log_terminal] [init -> usb_drv] new full-speed USB device
[init -> log_terminal] [init -> usb_hid_drv] input: USB HID v1.11 Keyboard [HID 03eb:204d]
[init -> log_terminal] [init -> usb_hid_drv] input: USB HID v1.11 Mouse [HID 03eb:204d]
[init -> log_terminal] [init -> event_dump] Input event #6 PRESS KEY_X 65534 key count: 1
[init -> log_terminal] [init -> event_dump] Input event #7 RELEASE KEY_X key count: 0
[init -> log_terminal] [init -> event_dump] Input event #8 PRESS BTN_LEFT 65534 key count: 1

View File

@@ -39,7 +39,7 @@ if {$use_vms > 1} {
}
if {$use_usb} {
import_from_depot [depot_user]/src/legacy_usb_host_drv \
import_from_depot [depot_user]/src/pc_usb_host_drv \
[depot_user]/src/usb_hid_drv
}
@@ -280,7 +280,7 @@ append_if [expr $use_usb] config {
<ram/>
<import>
<inline name="usb_drv.config">
<config uhci="yes" ohci="yes" ehci="yes" xhci="yes">
<config>
<report devices="yes"/>
<policy label_prefix="usb_hid_drv" class="0x3"/>
</config>
@@ -350,7 +350,7 @@ append_if [expr $use_usb] config {
</start>
<start name="usb_drv" caps="200">
<binary name="legacy_pc_usb_host_drv"/>
<binary name="pc_usb_host_drv"/>
<resource name="RAM" quantum="20M"/>
<provides> <service name="Usb"/> </provides>
<route>