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