Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 741bcdeb in mainline for uspace/drv/bus/usb/ehci/main.c


Ignore:
Timestamp:
2017-10-13T09:21:22Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
c0e4b5b2
Parents:
e6b9182
Message:

WIP usbhost refactoring: ehci completed

vhc to go…

File:
1 edited

Legend:

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

    re6b9182 r741bcdeb  
    4848#include "res.h"
    4949#include "hc.h"
    50 #include "ehci_endpoint.h"
    5150
    5251#define NAME "ehci"
     
    6766        .ops = {
    6867                .schedule       = ehci_hc_schedule,
    69                 .ep_add_hook    = ehci_endpoint_init,
    70                 .ep_remove_hook = ehci_endpoint_fini,
    7168                .irq_hook       = ehci_hc_interrupt,
    7269                .status_hook    = ehci_hc_status,
     
    8683        const int ret = hc_init(instance, res);
    8784        if (ret == EOK) {
    88                 hcd_set_implementation(hcd, instance, &ehci_hc_driver.ops);
     85                hcd_set_implementation(hcd, instance, &ehci_hc_driver.ops, &instance->bus.base.base);
    8986        } else {
    9087                free(instance);
     
    116113
    117114        free(hc);
    118         hcd_set_implementation(hcd, NULL, NULL);
     115        hcd_set_implementation(hcd, NULL, NULL, NULL);
    119116}
    120117
Note: See TracChangeset for help on using the changeset viewer.