Changes in uspace/lib/drv/include/usbhc_iface.h [7c10198:3e6a98c5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhc_iface.h
r7c10198 r3e6a98c5 44 44 #include <stdbool.h> 45 45 46 int usbhc_request_address(async_exch_t *, usb_address_t *, bool, usb_speed_t); 47 int usbhc_bind_address(async_exch_t *, usb_address_t, devman_handle_t); 48 int usbhc_get_handle(async_exch_t *, usb_address_t, devman_handle_t *); 49 int usbhc_release_address(async_exch_t *, usb_address_t); 50 int usbhc_register_endpoint(async_exch_t *, usb_address_t, usb_endpoint_t, 51 usb_transfer_type_t, usb_direction_t, size_t, unsigned int); 52 int usbhc_unregister_endpoint(async_exch_t *, usb_address_t, usb_endpoint_t, 53 usb_direction_t); 46 54 int usbhc_read(async_exch_t *, usb_address_t, usb_endpoint_t, 47 55 uint64_t, void *, size_t, size_t *); … … 50 58 51 59 /** Callback for outgoing transfer. */ 52 typedef void (*usbhc_iface_transfer_out_callback_t)( int, void *);60 typedef void (*usbhc_iface_transfer_out_callback_t)(ddf_fun_t *, int, void *); 53 61 54 62 /** Callback for incoming transfer. */ 55 typedef void (*usbhc_iface_transfer_in_callback_t)(int, size_t, void *); 63 typedef void (*usbhc_iface_transfer_in_callback_t)(ddf_fun_t *, 64 int, size_t, void *); 56 65 57 66 /** USB host controller communication interface. */ 58 67 typedef struct { 68 int (*request_address)(ddf_fun_t *, usb_address_t *, bool, usb_speed_t); 69 int (*bind_address)(ddf_fun_t *, usb_address_t, devman_handle_t); 70 int (*get_handle)(ddf_fun_t *, usb_address_t, 71 devman_handle_t *); 72 int (*release_address)(ddf_fun_t *, usb_address_t); 73 74 int (*register_endpoint)(ddf_fun_t *, 75 usb_address_t, usb_endpoint_t, 76 usb_transfer_type_t, usb_direction_t, size_t, unsigned int); 77 int (*unregister_endpoint)(ddf_fun_t *, usb_address_t, usb_endpoint_t, 78 usb_direction_t); 79 59 80 int (*read)(ddf_fun_t *, usb_target_t, uint64_t, uint8_t *, size_t, 60 81 usbhc_iface_transfer_in_callback_t, void *); 82 61 83 int (*write)(ddf_fun_t *, usb_target_t, uint64_t, const uint8_t *, 62 84 size_t, usbhc_iface_transfer_out_callback_t, void *);
Note:
See TracChangeset
for help on using the changeset viewer.