Changes in uspace/lib/usbhost/include/usb/host/hcd.h [58563585:b5f813c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r58563585 rb5f813c 81 81 }; 82 82 83 extern void hcd_init(hcd_t *, usb_speed_t, size_t, bw_count_func_t); 83 void hcd_init(hcd_t *hcd, usb_speed_t max_speed, size_t bandwidth, 84 bw_count_func_t bw_count); 84 85 85 86 static inline void hcd_set_implementation(hcd_t *hcd, void *data, … … 101 102 } 102 103 103 extern usb_address_t hcd_request_address(hcd_t *, usb_speed_t);104 usb_address_t hcd_request_address(hcd_t *hcd, usb_speed_t speed); 104 105 105 extern int hcd_release_address(hcd_t *, usb_address_t);106 int hcd_release_address(hcd_t *hcd, usb_address_t address); 106 107 107 extern int hcd_reserve_default_address(hcd_t *, usb_speed_t);108 int hcd_reserve_default_address(hcd_t *hcd, usb_speed_t speed); 108 109 109 110 static inline int hcd_release_default_address(hcd_t *hcd) … … 112 113 } 113 114 114 extern int hcd_add_ep(hcd_t *, usb_target_t, usb_direction_t,115 usb_transfer_type_t , size_t, unsigned int, size_t, usb_address_t,116 unsigned int);115 int hcd_add_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir, 116 usb_transfer_type_t type, size_t max_packet_size, unsigned packets, 117 size_t size, usb_address_t tt_address, unsigned tt_port); 117 118 118 extern int hcd_remove_ep(hcd_t *, usb_target_t, usb_direction_t);119 int hcd_remove_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir); 119 120 120 extern int hcd_send_batch(hcd_t *, usb_target_t, usb_direction_t, void *, 121 size_t, uint64_t, usbhc_iface_transfer_in_callback_t, 122 usbhc_iface_transfer_out_callback_t, void *, const char *); 121 int hcd_send_batch(hcd_t *hcd, usb_target_t target, usb_direction_t direction, 122 void *data, size_t size, uint64_t setup_data, 123 usbhc_iface_transfer_in_callback_t in, 124 usbhc_iface_transfer_out_callback_t out, void *arg, const char* name); 123 125 124 extern ssize_t hcd_send_batch_sync(hcd_t *, usb_target_t, usb_direction_t, 125 void *, size_t, uint64_t, const char *); 126 ssize_t hcd_send_batch_sync(hcd_t *hcd, usb_target_t target, 127 usb_direction_t dir, void *data, size_t size, uint64_t setup_data, 128 const char* name); 126 129 127 130 #endif 128 129 131 /** 130 132 * @}
Note:
See TracChangeset
for help on using the changeset viewer.