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