Changeset 1ef93fa in mainline
- Timestamp:
- 2011-07-10T23:06:20Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a00768c
- Parents:
- 4d62aa0
- Location:
- uspace/drv/bus/usb/ohci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
r4d62aa0 r1ef93fa 56 56 }; 57 57 58 static void hc_start(hc_t *instance); 58 59 static int interrupt_emulator(hc_t *instance); 59 60 static void hc_gain_control(hc_t *instance); … … 157 158 158 159 rh_init(&instance->rh, instance->registers); 160 hc_start(instance); 159 161 160 162 return EOK; … … 433 435 434 436 if (status & I_UE) { 435 hc_start _hw(instance);437 hc_start(instance); 436 438 } 437 439 … … 524 526 * @param[in] instance OHCI hc driver structure. 525 527 */ 526 void hc_start _hw(hc_t *instance)528 void hc_start(hc_t *instance) 527 529 { 528 530 /* OHCI guide page 42 */ -
uspace/drv/bus/usb/ohci/hc.h
r4d62aa0 r1ef93fa 82 82 irq_cmd_t cmds[], size_t cmd_size, uintptr_t regs, size_t reg_size); 83 83 int hc_init(hc_t *instance, uintptr_t regs, size_t reg_size, bool interrupts); 84 void hc_start_hw(hc_t *instance);85 84 int hc_register_hub(hc_t *instance, ddf_fun_t *hub_fun); 86 85 -
uspace/drv/bus/usb/ohci/ohci.c
r4d62aa0 r1ef93fa 247 247 "Failed to add OHCI to HC class: %s.\n", str_error(ret)); 248 248 249 hc_start_hw(&instance->hc);250 249 hc_register_hub(&instance->hc, instance->rh_fun); 251 250 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.