mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 01:11:06 +00:00
7ec08af6d9
Replace the USB session API by one that provides a devices ROM only, which contains information about all USB devices available for this client, as well as methods to acquire and release a single device. The acquisition of an USB device returns the capability to a device session that includes a packet stream buffer to communicate control transfers in between the client and the USB host controller driver. Moreover, additional methods to acquire and release an USB interface can be used. The acquisition of an USB interface returns the capability to an interface session that includes a packet stream buffer to communicate either bulk, interrupt, or isochronous transfers in between the client and the USB host controller driver. This commit implements the API changes in behalf of the Genode C API's USB server and client side. Addtionally, it provides Usb::Device, Usb::Interface, and Usb::Endpoint utilities that can be used by native C++ clients to use the new API and hide the sophisticated packet stream API. The adaptations necessary target the following areas: * lx_emul layer for USB host and client side * Linux USB host controller driver port for PC * Linux USB client ports: usb_hid_drv and usb_net_drv, additionally reduce the Linux tasks used inside these drivers * Native usb_block_drv * black_hole component * Port of libusb, including smartcard and usb_webcam driver depending on it * Port of Qemu XHCI model library, including vbox5 & vbox6 depending on it * Adapt all run-scripts and drivers_interactive recipes to work with the new policy rules of the USB host controller driver Fix genodelabs/genode#5021
87 lines
2.5 KiB
Plaintext
87 lines
2.5 KiB
Plaintext
<runtime ram="4300M" caps="1500" binary="init">
|
|
|
|
<requires>
|
|
<file_system label="vm"/>
|
|
<file_system label="shared"/>
|
|
<nic/>
|
|
<capture/>
|
|
<gui/>
|
|
<rom label="capslock"/>
|
|
<report label="shape"/>
|
|
<report label="clipboard"/>
|
|
<rom label="clipboard"/>
|
|
<rm/>
|
|
<rtc/>
|
|
<timer/>
|
|
<rom label="platform_info"/>
|
|
<usb/>
|
|
</requires>
|
|
|
|
<content>
|
|
<rom label="ld.lib.so"/>
|
|
<rom label="init"/>
|
|
<rom label="virtualbox5-nova"/>
|
|
<rom label="libc.lib.so"/>
|
|
<rom label="libm.lib.so"/>
|
|
<rom label="libiconv.lib.so"/>
|
|
<rom label="libyuv.lib.so"/>
|
|
<rom label="qemu-usb.lib.so"/>
|
|
<rom label="stdcxx.lib.so"/>
|
|
<rom label="vfs.lib.so"/>
|
|
<rom label="jpeg.lib.so"/>
|
|
</content>
|
|
|
|
<config verbose="no">
|
|
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="PD"/>
|
|
<service name="RM"/>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
<service name="Gui"/>
|
|
<service name="Timer"/>
|
|
<service name="Rtc"/>
|
|
<service name="Report"/>
|
|
<service name="File_system"/>
|
|
<service name="Usb"/>
|
|
<service name="Nic"/>
|
|
<service name="Capture"/>
|
|
</parent-provides>
|
|
|
|
<default-route> <any-service> <parent/> <any-child/> </any-service> </default-route>
|
|
|
|
<start name="vbox" caps="1000">
|
|
<binary name="virtualbox5-nova" />
|
|
<resource name="RAM" quantum="8G"/>
|
|
<exit propagate="yes"/>
|
|
<config vbox_file="machine.vbox" xhci="yes" vm_name="linux" capslock="ROM">
|
|
<vfs>
|
|
<dir name="dev">
|
|
<log/>
|
|
<rtc/>
|
|
</dir>
|
|
<dir name="shared"> <fs label="shared" writeable="yes"/> </dir>
|
|
<fs writeable="yes"/>
|
|
</vfs>
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
|
<webcam vertical_flip="true" fps="30" screen_size="false" width="640" height="480"/>
|
|
</config>
|
|
<route>
|
|
<service name="Audio_out"> <parent/> </service>
|
|
<service name="File_system" label="shared"> <parent label="shared"/> </service>
|
|
<service name="File_system"> <parent label="vm"/> </service>
|
|
<service name="ROM" label="capslock"> <parent label="capslock"/> </service>
|
|
<service name="ROM" label="platform_info">
|
|
<parent label="platform_info"/> </service>
|
|
<service name="Nic"> <parent/> </service>
|
|
<service name="Report" label="shape"> <parent label="shape"/> </service>
|
|
<service name="ROM" label="clipboard"> <parent label="clipboard"/> </service>
|
|
<service name="Report" label="clipboard"> <parent label="clipboard"/> </service>
|
|
<service name="Gui"> <parent label=""/> </service>
|
|
<any-service> <parent/> </any-service>
|
|
</route>
|
|
</start>
|
|
</config>
|
|
</runtime>
|