Changeset 76fbd9a in mainline for uspace/drv/bus/usb/usbhub
- Timestamp:
- 2012-02-24T19:07:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a76b01b4
- Parents:
- 5837c7a
- Location:
- uspace/drv/bus/usb/usbhub
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/port.c
r5837c7a 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 * … … 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 * -
uspace/drv/bus/usb/usbhub/usbhub.c
r5837c7a r76fbd9a 165 165 return EOK; 166 166 } 167 /*----------------------------------------------------------------------------*/ 167 168 168 /** 169 169 * Turn off power to all ports. … … 176 176 return ENOTSUP; 177 177 } 178 /*----------------------------------------------------------------------------*/ 178 179 179 /** 180 180 * Remove all attached devices … … 219 219 return EOK; 220 220 } 221 /*----------------------------------------------------------------------------*/ 221 222 222 /** Callback for polling hub for changes. 223 223 * … … 256 256 return true; 257 257 } 258 /*----------------------------------------------------------------------------*/ 258 259 259 /** 260 260 * Load hub-specific information into hub_dev structure and process if needed … … 331 331 return EOK; 332 332 } 333 /*----------------------------------------------------------------------------*/ 333 334 334 /** 335 335 * Set configuration of and USB device … … 378 378 return opResult; 379 379 } 380 /*----------------------------------------------------------------------------*/ 380 381 381 /** 382 382 * Process hub over current change … … 416 416 417 417 } 418 /*----------------------------------------------------------------------------*/ 418 419 419 /** 420 420 * Process hub interrupts. … … 485 485 } 486 486 } 487 /*----------------------------------------------------------------------------*/ 487 488 488 /** 489 489 * callback called from hub polling fibril when the fibril terminates
Note:
See TracChangeset
for help on using the changeset viewer.
