Changeset 3e200736 in mainline for uspace/drv/bus/usb/ehci/hc.c
- Timestamp:
- 2014-01-18T21:34:32Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a5361fb
- Parents:
- e26a9d95
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/hc.c
re26a9d95 r3e200736 92 92 static void hc_start(hc_t *instance); 93 93 static int hc_init_memory(hc_t *instance); 94 static int interrupt_emulator(hc_t *instance);95 94 96 95 /** Generate IRQ code. … … 191 190 hc_gain_control(instance); 192 191 193 if (!interrupts) {194 instance->interrupt_emulator =195 fibril_create((int(*)(void*))interrupt_emulator, instance);196 fibril_add_ready(instance->interrupt_emulator);197 }198 199 192 ehci_rh_init( 200 193 &instance->rh, instance->caps, instance->registers, "ehci rh"); … … 256 249 } 257 250 258 /** Check status register regularly259 *260 * @param[in] instance EHCI hc driver structure.261 * @return Error code262 */263 int interrupt_emulator(hc_t *instance)264 {265 assert(instance);266 usb_log_info("Started interrupt emulator.\n");267 while (1) {268 // const uint32_t status = instance->registers->interrupt_status;269 // instance->registers->interrupt_status = status;270 // hc_interrupt(instance, status);271 async_usleep(10000);272 }273 return EOK;274 }275 276 251 /** Turn off any (BIOS)driver that might be in control of the device. 277 252 *
Note:
See TracChangeset
for help on using the changeset viewer.