Changes in uspace/drv/usbhub/utils.c [5097bed4:0f21c0c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/utils.c
r5097bed4 r0f21c0c 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup drvusbhub 30 30 * @{ 31 31 */ … … 38 38 39 39 #include <usbhc_iface.h> 40 #include <usb/usbdrv.h>41 40 #include <usb/descriptor.h> 42 #include <usb/devreq.h>43 41 #include <usb/classes/hub.h> 44 42 … … 114 112 115 113 //control transactions 116 114 /* 117 115 int usb_drv_sync_control_read( 118 119 120 121 116 int phone, usb_target_t target, 117 usb_device_request_setup_packet_t * request, 118 void * rcvd_buffer, size_t rcvd_size, size_t * actual_size 119 ) { 122 120 usb_handle_t handle; 123 121 int opResult; 124 122 //setup 125 123 opResult = usb_drv_async_control_read_setup(phone, target, 126 127 124 request, sizeof (usb_device_request_setup_packet_t), 125 &handle); 128 126 if (opResult != EOK) { 129 127 return opResult; … … 158 156 159 157 int usb_drv_sync_control_write( 160 161 162 163 158 int phone, usb_target_t target, 159 usb_device_request_setup_packet_t * request, 160 void * sent_buffer, size_t sent_size 161 ) { 164 162 usb_handle_t handle; 165 163 int opResult; 166 164 //setup 167 165 opResult = usb_drv_async_control_write_setup(phone, target, 168 169 166 request, sizeof (usb_device_request_setup_packet_t), 167 &handle); 170 168 if (opResult != EOK) { 171 169 return opResult; … … 188 186 //finalize 189 187 opResult = usb_drv_async_control_write_status(phone, target, 190 188 &handle); 191 189 if (opResult != EOK) { 192 190 return opResult; … … 199 197 } 200 198 201 199 */ 202 200 203 201
Note:
See TracChangeset
for help on using the changeset viewer.