Changeset 45457265 in mainline for uspace/drv/bus/usb/xhci/transfers.c
- Timestamp:
- 2018-02-03T02:14:26Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eb862fd
- Parents:
- 961a5ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/transfers.c
r961a5ee r45457265 150 150 } 151 151 152 static int schedule_control(xhci_hc_t* hc, xhci_transfer_t* transfer)152 static errno_t schedule_control(xhci_hc_t* hc, xhci_transfer_t* transfer) 153 153 { 154 154 usb_transfer_batch_t *batch = &transfer->batch; … … 213 213 // Issue a Configure Endpoint command, if needed. 214 214 if (configure_endpoint_needed(setup)) { 215 const int err = hc_configure_device(xhci_ep_to_dev(xhci_ep));215 const errno_t err = hc_configure_device(xhci_ep_to_dev(xhci_ep)); 216 216 if (err) 217 217 return err; … … 222 222 } 223 223 224 static int schedule_bulk(xhci_hc_t* hc, xhci_transfer_t *transfer)224 static errno_t schedule_bulk(xhci_hc_t* hc, xhci_transfer_t *transfer) 225 225 { 226 226 /* The stream-enabled endpoints need to chain ED trb */ … … 276 276 } 277 277 278 static int schedule_interrupt(xhci_hc_t* hc, xhci_transfer_t* transfer)278 static errno_t schedule_interrupt(xhci_hc_t* hc, xhci_transfer_t* transfer) 279 279 { 280 280 const size_t buffer_count = calculate_trb_count(transfer); … … 309 309 } 310 310 311 int xhci_handle_transfer_event(xhci_hc_t* hc, xhci_trb_t* trb)311 errno_t xhci_handle_transfer_event(xhci_hc_t* hc, xhci_trb_t* trb) 312 312 { 313 313 uintptr_t addr = trb->parameter; … … 430 430 } 431 431 432 typedef int (*transfer_handler)(xhci_hc_t *, xhci_transfer_t *);432 typedef errno_t (*transfer_handler)(xhci_hc_t *, xhci_transfer_t *); 433 433 434 434 static const transfer_handler transfer_handlers[] = { … … 444 444 * Bus callback. 445 445 */ 446 int xhci_transfer_schedule(usb_transfer_batch_t *batch)446 errno_t xhci_transfer_schedule(usb_transfer_batch_t *batch) 447 447 { 448 448 endpoint_t *ep = batch->ep; … … 504 504 * possible that we have to clear all of them. 505 505 */ 506 const int err = xhci_endpoint_clear_halt(xhci_endpoint_get(halted_ep), 0);506 const errno_t err = xhci_endpoint_clear_halt(xhci_endpoint_get(halted_ep), 0); 507 507 endpoint_del_ref(halted_ep); 508 508 if (err) { … … 526 526 527 527 528 int err;528 errno_t err; 529 529 fibril_mutex_lock(&xhci_ep->guard); 530 530
Note:
See TracChangeset
for help on using the changeset viewer.