Changeset 76fbd9a in mainline for uspace/drv/bus/usb/ohci/hc.c
- Timestamp:
- 2012-02-24T19:07:44Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a76b01b4
- Parents:
- 5837c7a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
r5837c7a r76fbd9a 68 68 static int interrupt_emulator(hc_t *instance); 69 69 static int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 70 /*----------------------------------------------------------------------------*/ 70 71 71 /** Get number of PIO ranges used in IRQ code. 72 72 * @return Number of ranges. … … 76 76 return sizeof(ohci_pio_ranges) / sizeof(irq_pio_range_t); 77 77 } 78 /*----------------------------------------------------------------------------*/ 79 /*----------------------------------------------------------------------------*/ 78 79 80 80 /** Get number of commands used in IRQ code. 81 81 * @return Number of commands. … … 85 85 return sizeof(ohci_irq_commands) / sizeof(irq_cmd_t); 86 86 } 87 /*----------------------------------------------------------------------------*/ 87 88 88 /** Generate IRQ code. 89 89 * @param[out] ranges PIO ranges buffer. … … 116 116 return EOK; 117 117 } 118 /*----------------------------------------------------------------------------*/ 118 119 119 /** Announce OHCI root hub to the DDF 120 120 * … … 175 175 #undef CHECK_RET_RELEASE 176 176 } 177 /*----------------------------------------------------------------------------*/ 177 178 178 /** Initialize OHCI hc driver structure 179 179 * … … 228 228 return EOK; 229 229 } 230 /*----------------------------------------------------------------------------*/ 230 231 231 void hc_enqueue_endpoint(hc_t *instance, const endpoint_t *ep) 232 232 { … … 261 261 } 262 262 } 263 /*----------------------------------------------------------------------------*/ 263 264 264 void hc_dequeue_endpoint(hc_t *instance, const endpoint_t *ep) 265 265 { … … 296 296 } 297 297 } 298 /*----------------------------------------------------------------------------*/ 298 299 299 /** Add USB transfer to the schedule. 300 300 * … … 338 338 return EOK; 339 339 } 340 /*----------------------------------------------------------------------------*/ 340 341 341 /** Interrupt handling routine 342 342 * … … 384 384 385 385 } 386 /*----------------------------------------------------------------------------*/ 386 387 387 /** Check status register regularly 388 388 * … … 402 402 return EOK; 403 403 } 404 /*----------------------------------------------------------------------------*/ 404 405 405 /** Turn off any (BIOS)driver that might be in control of the device. 406 406 * … … 465 465 async_usleep(50000); 466 466 } 467 /*----------------------------------------------------------------------------*/ 467 468 468 /** OHCI hw initialization routine. 469 469 * … … 537 537 OHCI_RD(instance->registers->control)); 538 538 } 539 /*----------------------------------------------------------------------------*/ 539 540 540 /** Initialize schedule queues 541 541 * … … 571 571 return EOK; 572 572 } 573 /*----------------------------------------------------------------------------*/ 573 574 574 /** Initialize memory structures used by the OHCI hcd. 575 575 *
Note:
See TracChangeset
for help on using the changeset viewer.