Changes in uspace/lib/drv/include/usb_iface.h [58563585:4e732f1a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usb_iface.h
r58563585 r4e732f1a 44 44 typedef async_sess_t usb_dev_session_t; 45 45 46 externusb_dev_session_t *usb_dev_connect(devman_handle_t);47 externusb_dev_session_t *usb_dev_connect_to_self(ddf_dev_t *);48 externvoid usb_dev_disconnect(usb_dev_session_t *);46 usb_dev_session_t *usb_dev_connect(devman_handle_t); 47 usb_dev_session_t *usb_dev_connect_to_self(ddf_dev_t *); 48 void usb_dev_disconnect(usb_dev_session_t *); 49 49 50 externint usb_get_my_interface(async_exch_t *, int *);51 externint usb_get_my_device_handle(async_exch_t *, devman_handle_t *);50 int usb_get_my_interface(async_exch_t *, int *); 51 int usb_get_my_device_handle(async_exch_t *, devman_handle_t *); 52 52 53 externint usb_reserve_default_address(async_exch_t *, usb_speed_t);54 externint usb_release_default_address(async_exch_t *);53 int usb_reserve_default_address(async_exch_t *, usb_speed_t); 54 int usb_release_default_address(async_exch_t *); 55 55 56 externint usb_device_enumerate(async_exch_t *, unsigned port);57 externint usb_device_remove(async_exch_t *, unsigned port);56 int usb_device_enumerate(async_exch_t *, unsigned port); 57 int usb_device_remove(async_exch_t *, unsigned port); 58 58 59 extern int usb_register_endpoint(async_exch_t *, usb_endpoint_t, 60 usb_transfer_type_t, usb_direction_t, size_t, unsigned, unsigned); 61 extern int usb_unregister_endpoint(async_exch_t *, usb_endpoint_t, 62 usb_direction_t); 63 extern int usb_read(async_exch_t *, usb_endpoint_t, uint64_t, void *, size_t, 64 size_t *); 65 extern int usb_write(async_exch_t *, usb_endpoint_t, uint64_t, const void *, 66 size_t); 59 int usb_register_endpoint(async_exch_t *, usb_endpoint_t, usb_transfer_type_t, 60 usb_direction_t, size_t, unsigned, unsigned); 61 int usb_unregister_endpoint(async_exch_t *, usb_endpoint_t, usb_direction_t); 62 int usb_read(async_exch_t *, usb_endpoint_t, uint64_t, void *, size_t, size_t *); 63 int usb_write(async_exch_t *, usb_endpoint_t, uint64_t, const void *, size_t); 67 64 68 65 /** Callback for outgoing transfer. */
Note:
See TracChangeset
for help on using the changeset viewer.