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