usb_drv: change Usb session and raw driver

- Use 'label' attribute to identify device instead of
  bus/dev and vendor_id/product_id

- Implement release_interface RPC

- Report 'label' as well as 'bus' and 'dev'

- Add policy handling to raw driver (includes reconfiguration
  at runtime)

- Use own memory backing store for large DMA allocations

Issue #1863.
This commit is contained in:
Sebastian Sumpf
2016-01-06 14:43:21 +01:00
committed by Christian Helmuth
parent 3daa8a3d04
commit 716eab21e3
10 changed files with 244 additions and 67 deletions

View File

@ -62,7 +62,7 @@ struct Usb::Pl2303_driver : Completion
Server::Entrypoint &ep;
Server::Signal_rpc_member<Pl2303_driver> dispatcher{ ep, *this, &Pl2303_driver::state_change };
Genode::Allocator_avl alloc;
Usb::Connection connection{ &alloc, VENDOR, PRODUCT, 512 * 1024, dispatcher };
Usb::Connection connection{ &alloc, "usb_serial", 512 * 1024, dispatcher };
Usb::Device device;
Signal_context_capability connected_sigh;
Signal_context_capability read_sigh;