Changes in uspace/lib/usbvirt/src/ipc_hc.c [50b581d:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbvirt/src/ipc_hc.c
r50b581d rb7fd2a0 55 55 * 56 56 */ 57 int usbvirt_ipc_send_control_read(async_sess_t *sess, void *setup_buffer,57 errno_t usbvirt_ipc_send_control_read(async_sess_t *sess, void *setup_buffer, 58 58 size_t setup_buffer_size, void *data_buffer, size_t data_buffer_size, 59 59 size_t *data_transfered_size) … … 77 77 } 78 78 79 int rc = async_data_write_start(exch, setup_buffer, setup_buffer_size);79 errno_t rc = async_data_write_start(exch, setup_buffer, setup_buffer_size); 80 80 if (rc != EOK) { 81 81 async_exchange_end(exch); … … 95 95 } 96 96 97 sysarg_t data_request_rc;98 sysarg_t opening_request_rc;97 errno_t data_request_rc; 98 errno_t opening_request_rc; 99 99 async_wait_for(data_request, &data_request_rc); 100 100 async_wait_for(opening_request, &opening_request_rc); … … 103 103 /* Prefer the return code of the opening request. */ 104 104 if (opening_request_rc != EOK) 105 return ( int) opening_request_rc;105 return (errno_t) opening_request_rc; 106 106 else 107 return ( int) data_request_rc;107 return (errno_t) data_request_rc; 108 108 } 109 109 110 110 if (opening_request_rc != EOK) 111 return ( int) opening_request_rc;111 return (errno_t) opening_request_rc; 112 112 113 113 if (data_transfered_size != NULL) … … 129 129 * 130 130 */ 131 int usbvirt_ipc_send_control_write(async_sess_t *sess, void *setup_buffer,131 errno_t usbvirt_ipc_send_control_write(async_sess_t *sess, void *setup_buffer, 132 132 size_t setup_buffer_size, void *data_buffer, size_t data_buffer_size) 133 133 { … … 150 150 } 151 151 152 int rc = async_data_write_start(exch, setup_buffer, setup_buffer_size);152 errno_t rc = async_data_write_start(exch, setup_buffer, setup_buffer_size); 153 153 if (rc != EOK) { 154 154 async_exchange_end(exch); … … 168 168 async_exchange_end(exch); 169 169 170 sysarg_t opening_request_rc;170 errno_t opening_request_rc; 171 171 async_wait_for(opening_request, &opening_request_rc); 172 172 173 return ( int) opening_request_rc;173 return (errno_t) opening_request_rc; 174 174 } 175 175 … … 186 186 * 187 187 */ 188 int usbvirt_ipc_send_data_in(async_sess_t *sess, usb_endpoint_t ep,188 errno_t usbvirt_ipc_send_data_in(async_sess_t *sess, usb_endpoint_t ep, 189 189 usb_transfer_type_t tr_type, void *data, size_t data_size, size_t *act_size) 190 190 { … … 230 230 } 231 231 232 sysarg_t data_request_rc;233 sysarg_t opening_request_rc;232 errno_t data_request_rc; 233 errno_t opening_request_rc; 234 234 async_wait_for(data_request, &data_request_rc); 235 235 async_wait_for(opening_request, &opening_request_rc); … … 238 238 /* Prefer the return code of the opening request. */ 239 239 if (opening_request_rc != EOK) 240 return ( int) opening_request_rc;240 return (errno_t) opening_request_rc; 241 241 else 242 return ( int) data_request_rc;242 return (errno_t) data_request_rc; 243 243 } 244 244 245 245 if (opening_request_rc != EOK) 246 return ( int) opening_request_rc;246 return (errno_t) opening_request_rc; 247 247 248 248 if (act_size != NULL) … … 263 263 * 264 264 */ 265 int usbvirt_ipc_send_data_out(async_sess_t *sess, usb_endpoint_t ep,265 errno_t usbvirt_ipc_send_data_out(async_sess_t *sess, usb_endpoint_t ep, 266 266 usb_transfer_type_t tr_type, void *data, size_t data_size) 267 267 { … … 296 296 } 297 297 298 int rc = async_data_write_start(exch, data, data_size);298 errno_t rc = async_data_write_start(exch, data, data_size); 299 299 300 300 async_exchange_end(exch); … … 305 305 } 306 306 307 sysarg_t opening_request_rc;307 errno_t opening_request_rc; 308 308 async_wait_for(opening_request, &opening_request_rc); 309 309 310 return ( int) opening_request_rc;310 return (errno_t) opening_request_rc; 311 311 } 312 312
Note:
See TracChangeset
for help on using the changeset viewer.