Changeset 72cf064 in mainline for uspace/drv/bus/usb/usbhub/port.c
- Timestamp:
- 2012-08-13T17:17:04Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 33fee91
- Parents:
- f4a8734 (diff), 4820360 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/port.c
rf4a8734 r72cf064 70 70 return EOK; 71 71 } 72 /*----------------------------------------------------------------------------*/ 72 73 73 /** 74 74 * Clear feature on hub port. … … 92 92 sizeof(clear_request), NULL, 0); 93 93 } 94 /*----------------------------------------------------------------------------*/ 94 95 95 /** 96 96 * Set feature on hub port. … … 114 114 sizeof(clear_request), NULL, 0); 115 115 } 116 /*----------------------------------------------------------------------------*/ 116 117 117 /** 118 118 * Mark reset process as failed due to external reasons … … 129 129 fibril_mutex_unlock(&port->mutex); 130 130 } 131 /*----------------------------------------------------------------------------*/ 131 132 132 /** 133 133 * Process interrupts on given port … … 245 245 port->port_number, status); 246 246 } 247 /*----------------------------------------------------------------------------*/ 247 248 248 /** 249 249 * routine called when a device on port has been removed … … 299 299 return EOK; 300 300 } 301 /*----------------------------------------------------------------------------*/ 301 302 302 /** 303 303 * Process port reset change … … 335 335 } 336 336 } 337 /*----------------------------------------------------------------------------*/ 337 338 338 /** Retrieve port status. 339 339 * … … 352 352 .request = USB_HUB_REQUEST_GET_STATUS, 353 353 .value = 0, 354 .index = port->port_number,354 .index = uint16_host2usb(port->port_number), 355 355 .length = sizeof(usb_port_status_t), 356 356 }; … … 375 375 return EOK; 376 376 } 377 /*----------------------------------------------------------------------------*/ 377 378 378 /** Callback for enabling a specific port. 379 379 * … … 407 407 return port->reset_okay ? EOK : ESTALL; 408 408 } 409 /*----------------------------------------------------------------------------*/ 409 410 410 /** Fibril for adding a new device. 411 411 * … … 454 454 return rc; 455 455 } 456 /*----------------------------------------------------------------------------*/ 456 457 457 /** Start device adding when connection change is detected. 458 458 *
Note:
See TracChangeset
for help on using the changeset viewer.