Changeset 0f6b50f in mainline for uspace/lib


Ignore:
Timestamp:
2017-10-19T20:00:08Z (8 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1fd2f81
Parents:
60af4cdb
Message:

Added DDF device to HCD initialization to prepare RH data structures before it is started.

Location:
uspace/lib/usbhost
Files:
2 edited

Legend:

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

    r60af4cdb r0f6b50f  
    4545#include <device/hw_res_parsed.h>
    4646
    47 typedef int (*driver_init_t)(hcd_t *, const hw_res_list_parsed_t *);
     47typedef int (*driver_init_t)(hcd_t *, const hw_res_list_parsed_t *, ddf_dev_t *);
    4848typedef int (*irq_code_gen_t)(irq_code_t *, hcd_t *, const hw_res_list_parsed_t *);
    4949typedef int (*claim_t)(hcd_t *, ddf_dev_t *);
  • uspace/lib/usbhost/src/ddf_helpers.c

    r60af4cdb r0f6b50f  
    782782
    783783        if (driver->init)
    784                 ret = driver->init(hcd, &hw_res);
     784                ret = driver->init(hcd, &hw_res, device);
    785785        if (ret != EOK) {
    786786                usb_log_error("Failed to init HCD.\n");
Note: See TracChangeset for help on using the changeset viewer.