Changeset b4b534ac in mainline for uspace/lib/drv/include/usbhc_iface.h
- Timestamp:
- 2016-07-22T08:24:47Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f76d2c2
- Parents:
- 5b18137 (diff), 8351f9a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhc_iface.h
r5b18137 rb4b534ac 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);54 46 int usbhc_read(async_exch_t *, usb_address_t, usb_endpoint_t, 55 47 uint64_t, void *, size_t, size_t *); … … 58 50 59 51 /** Callback for outgoing transfer. */ 60 typedef void (*usbhc_iface_transfer_out_callback_t)( ddf_fun_t *,int, void *);52 typedef void (*usbhc_iface_transfer_out_callback_t)(int, void *); 61 53 62 54 /** Callback for incoming transfer. */ 63 typedef void (*usbhc_iface_transfer_in_callback_t)(ddf_fun_t *, 64 int, size_t, void *); 55 typedef void (*usbhc_iface_transfer_in_callback_t)(int, size_t, void *); 65 56 66 57 /** USB host controller communication interface. */ 67 58 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 80 59 int (*read)(ddf_fun_t *, usb_target_t, uint64_t, uint8_t *, size_t, 81 60 usbhc_iface_transfer_in_callback_t, void *); 82 83 61 int (*write)(ddf_fun_t *, usb_target_t, uint64_t, const uint8_t *, 84 62 size_t, usbhc_iface_transfer_out_callback_t, void *);
Note:
See TracChangeset
for help on using the changeset viewer.