Changes in uspace/drv/bus/usb/usbhub/port.c [6e3c005:76fbd9a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/port.c
r6e3c005 r76fbd9a 71 71 return EOK; 72 72 } 73 /*----------------------------------------------------------------------------*/ 73 74 74 /** 75 75 * Clear feature on hub port. … … 93 93 sizeof(clear_request), NULL, 0); 94 94 } 95 /*----------------------------------------------------------------------------*/ 95 96 96 /** 97 97 * Set feature on hub port. … … 115 115 sizeof(clear_request), NULL, 0); 116 116 } 117 /*----------------------------------------------------------------------------*/ 117 118 118 /** 119 119 * Mark reset process as failed due to external reasons … … 130 130 fibril_mutex_unlock(&port->mutex); 131 131 } 132 /*----------------------------------------------------------------------------*/ 132 133 133 /** 134 134 * Process interrupts on given port … … 246 246 port->port_number, status); 247 247 } 248 /*----------------------------------------------------------------------------*/ 248 249 249 /** 250 250 * routine called when a device on port has been removed … … 300 300 return EOK; 301 301 } 302 /*----------------------------------------------------------------------------*/ 302 303 303 /** 304 304 * Process port reset change … … 336 336 } 337 337 } 338 /*----------------------------------------------------------------------------*/ 338 339 339 /** Retrieve port status. 340 340 * … … 353 353 .request = USB_HUB_REQUEST_GET_STATUS, 354 354 .value = 0, 355 .index = port->port_number,355 .index = uint16_host2usb(port->port_number), 356 356 .length = sizeof(usb_port_status_t), 357 357 }; … … 376 376 return EOK; 377 377 } 378 /*----------------------------------------------------------------------------*/ 378 379 379 /** Callback for enabling a specific port. 380 380 * … … 408 408 return port->reset_okay ? EOK : ESTALL; 409 409 } 410 /*----------------------------------------------------------------------------*/ 410 411 411 /** Fibril for adding a new device. 412 412 * … … 455 455 return rc; 456 456 } 457 /*----------------------------------------------------------------------------*/ 457 458 458 /** Start device adding when connection change is detected. 459 459 *
Note:
See TracChangeset
for help on using the changeset viewer.