Changeset 3e200736 in mainline for uspace/drv/bus/usb/ehci/hc.c


Ignore:
Timestamp:
2014-01-18T21:34:32Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a5361fb
Parents:
e26a9d95
Message:

uhci,ohci, ehci: Move interrupt replacement fibril to libusbhost

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/hc.c

    re26a9d95 r3e200736  
    9292static void hc_start(hc_t *instance);
    9393static int hc_init_memory(hc_t *instance);
    94 static int interrupt_emulator(hc_t *instance);
    9594
    9695/** Generate IRQ code.
     
    191190        hc_gain_control(instance);
    192191
    193         if (!interrupts) {
    194                 instance->interrupt_emulator =
    195                     fibril_create((int(*)(void*))interrupt_emulator, instance);
    196                 fibril_add_ready(instance->interrupt_emulator);
    197         }
    198 
    199192        ehci_rh_init(
    200193            &instance->rh, instance->caps, instance->registers, "ehci rh");
     
    256249}
    257250
    258 /** Check status register regularly
    259  *
    260  * @param[in] instance EHCI hc driver structure.
    261  * @return Error code
    262  */
    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 
    276251/** Turn off any (BIOS)driver that might be in control of the device.
    277252 *
Note: See TracChangeset for help on using the changeset viewer.