Ignore:
Timestamp:
2012-12-16T16:26:30Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8de2cca
Parents:
f29931c
Message:

ohci, libusbhost: Move root hub registration to libusbhost.

Root hub controlled by generic usb hub driver is the way mentioned in the specs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/hcd.h

    rf29931c r4daee7a  
    7474 */
    7575static inline void hcd_init(hcd_t *hcd, usb_speed_t max_speed, size_t bandwidth,
    76     size_t (*bw_count)(usb_speed_t, usb_transfer_type_t, size_t, size_t))
     76    bw_count_func_t bw_count)
    7777{
    7878        assert(hcd);
     
    8383        hcd->ep_add_hook = NULL;
    8484        hcd->ep_remove_hook = NULL;
     85}
     86
     87static inline void hcd_set_implementation(hcd_t *hcd, void *data,
     88    schedule_hook_t schedule, ep_add_hook_t add_hook, ep_remove_hook_t rem_hook)
     89{
     90        assert(hcd);
     91        hcd->private_data = data;
     92        hcd->schedule = schedule;
     93        hcd->ep_add_hook = add_hook;
     94        hcd->ep_remove_hook = rem_hook;
     95
    8596}
    8697
     
    98109}
    99110
     111int hcd_register_hub(hcd_t *instance, usb_address_t *address, ddf_fun_t *hub_fun);
     112
     113
    100114/** Data retrieve wrapper.
    101115 * @param fun ddf function, non-null.
     
    107121}
    108122
     123
    109124extern usbhc_iface_t hcd_iface;
    110125
Note: See TracChangeset for help on using the changeset viewer.