Changes in / [103cf26:3746bfe] in mainline


Ignore:
Location:
uspace/drv/ehci-hcd
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ehci-hcd/Makefile

    r103cf26 r3746bfe  
    3333
    3434SOURCES = \
    35         hc_iface.c \
    3635        main.c \
    3736        pci.c
  • uspace/drv/ehci-hcd/main.c

    r103cf26 r3746bfe  
    4444
    4545#include "pci.h"
    46 #include "ehci.h"
     46
     47#define NAME "ehci-hcd"
    4748
    4849static int ehci_add_device(ddf_dev_t *device);
     
    5657        .driver_ops = &ehci_driver_ops
    5758};
    58 static ddf_dev_ops_t hc_ops = {
    59         .interfaces[USBHC_DEV_IFACE] = &ehci_hc_iface,
    60 };
    61 
    6259/*----------------------------------------------------------------------------*/
    6360/** Initializes a new ddf driver instance of EHCI hcd.
     
    7471        return ret; \
    7572}
     73
     74        usb_log_info("uhci_add_device() called\n");
    7675
    7776        uintptr_t mem_reg_base = 0;
     
    9089            "Failed(%d) disable legacy USB: %s.\n", ret, str_error(ret));
    9190
    92         ddf_fun_t *hc_fun = ddf_fun_create(device, fun_exposed, "ehci-hc");
    93         if (hc_fun == NULL) {
    94                 usb_log_error("Failed to create EHCI function.\n");
    95                 return ENOMEM;
    96         }
    97         hc_fun->ops = &hc_ops;
    98         ret = ddf_fun_bind(hc_fun);
    99 
    100         CHECK_RET_RETURN(ret,
    101             "Failed to bind EHCI function: %s.\n",
    102             str_error(ret));
    103 
    104         usb_log_info("Controlling new EHCI device `%s' (handle %llu).\n",
    105             device->name, device->handle);
    106 
    10791        return EOK;
    10892#undef CHECK_RET_RETURN
     
    119103int main(int argc, char *argv[])
    120104{
    121         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     105        usb_log_enable(USB_LOG_LEVEL_ERROR, NAME);
    122106        return ddf_driver_main(&ehci_driver);
    123107}
Note: See TracChangeset for help on using the changeset viewer.