Ignore:
File:
1 edited

Legend:

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

    rdcffe95 r56fd7cf  
    4949
    5050static int ehci_dev_add(ddf_dev_t *device);
    51 /*----------------------------------------------------------------------------*/
     51
    5252static driver_ops_t ehci_driver_ops = {
    5353        .dev_add = ehci_dev_add,
    5454};
    55 /*----------------------------------------------------------------------------*/
     55
    5656static driver_t ehci_driver = {
    5757        .name = NAME,
     
    6262};
    6363
    64 /*----------------------------------------------------------------------------*/
     64
    6565/** Initializes a new ddf driver instance of EHCI hcd.
    6666 *
     
    8484        CHECK_RET_RETURN(ret,
    8585            "Failed to get memory addresses for %" PRIun ": %s.\n",
    86             device->handle, str_error(ret));
     86            ddf_dev_get_handle(device), str_error(ret));
    8787        usb_log_info("Memory mapped regs at 0x%" PRIxn " (size %zu), IRQ %d.\n",
    8888            reg_base, reg_size, irq);
     
    104104        /* High Speed, no bandwidth */
    105105        hcd_init(ehci_hc, USB_SPEED_HIGH, 0, NULL);
    106         hc_fun->ops = &hc_ops;
     106        ddf_fun_set_ops(hc_fun,  &hc_ops);
    107107
    108108        ret = ddf_fun_bind(hc_fun);
     
    116116
    117117        usb_log_info("Controlling new EHCI device `%s' (handle %" PRIun ").\n",
    118             device->name, device->handle);
     118            ddf_dev_get_name(device), ddf_dev_get_handle(device));
    119119
    120120        return EOK;
    121121#undef CHECK_RET_RETURN
    122122}
    123 /*----------------------------------------------------------------------------*/
     123
    124124/** Initializes global driver structures (NONE).
    125125 *
Note: See TracChangeset for help on using the changeset viewer.