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

Changeset 2c49b81b in mainline


Ignore:
Timestamp:
2011-05-07T10:34:48Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
8594505
Parents:
28216a0
Message:

All USB host controllers added to usbhc DDF class

Location:
uspace
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ehci-hcd/main.c

    r28216a0 r2c49b81b  
    9797        }
    9898        hc_fun->ops = &hc_ops;
     99
    99100        ret = ddf_fun_bind(hc_fun);
    100 
    101101        CHECK_RET_RETURN(ret,
    102102            "Failed to bind EHCI function: %s.\n",
     103            str_error(ret));
     104        ret = ddf_fun_add_to_class(hc_fun, USB_HC_DDF_CLASS_NAME);
     105        CHECK_RET_RETURN(ret,
     106            "Failed to add EHCI to HC class: %s.\n",
    103107            str_error(ret));
    104108
  • uspace/drv/ohci/ohci.c

    r28216a0 r2c49b81b  
    188188            "Failed(%d) to bind OHCI device function: %s.\n",
    189189            ret, str_error(ret));
     190        ret = ddf_fun_add_to_class(instance->hc_fun, USB_HC_DDF_CLASS_NAME);
     191        CHECK_RET_DEST_FUN_RETURN(ret,
     192            "Failed to add OHCI to HC class: %s.\n", str_error(ret));
     193
    190194#undef CHECK_RET_HC_RETURN
    191195
  • uspace/drv/uhci-hcd/uhci.c

    r28216a0 r2c49b81b  
    210210            "Failed(%d) to bind UHCI device function: %s.\n",
    211211            ret, str_error(ret));
     212        ret = ddf_fun_add_to_class(instance->hc_fun, USB_HC_DDF_CLASS_NAME);
     213        CHECK_RET_DEST_FUN_RETURN(ret,
     214            "Failed to add UHCI to HC class: %s.\n", str_error(ret));
     215
    212216#undef CHECK_RET_HC_RETURN
    213217
  • uspace/drv/vhc/main.c

    r28216a0 r2c49b81b  
    104104        }
    105105
    106         rc = ddf_fun_add_to_class(hc, "usbhc");
     106        rc = ddf_fun_add_to_class(hc, USB_HC_DDF_CLASS_NAME);
    107107        if (rc != EOK) {
    108108                usb_log_fatal("Failed to add function to HC class: %s.\n",
  • uspace/lib/usb/include/usb/usb.h

    r28216a0 r2c49b81b  
    172172} usb_packet_id;
    173173
     174/** Class name for USB host controllers. */
     175#define USB_HC_DDF_CLASS_NAME "usbhc"
     176
    174177#endif
    175178/**
Note: See TracChangeset for help on using the changeset viewer.