Ignore:
Timestamp:
2017-10-15T13:44:39Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2770b66
Parents:
867b375
Message:

usbhost refactoring: introduced bus→enumerate_device

File:
1 edited

Legend:

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

    r867b375 r20eaa82  
    5959typedef struct {
    6060        hcd_ops_t ops;
    61         usb_speed_t hc_speed;
    6261        const char *name;
    6362
     
    8382int hcd_setup_virtual_root_hub(hcd_t *, ddf_dev_t *);
    8483
     84device_t *hcd_ddf_device_create(ddf_dev_t *, size_t);
     85void hcd_ddf_device_destroy(device_t *);
     86int hcd_ddf_device_explore(hcd_t *, device_t *);
     87
    8588hcd_t *dev_to_hcd(ddf_dev_t *dev);
    8689
     
    9396void ddf_hcd_gen_irq_handler(ipc_callid_t iid, ipc_call_t *call, ddf_dev_t *dev);
    9497
    95 /* For xHCI, we need to drive the roothub without roothub having assigned an
    96  * address. Thus we cannot create function for it, and we have to carry the
    97  * usb_dev_t somewhere.
    98  *
    99  * This is sort of hacky, but at least does not expose the internals of ddf_helpers.
    100  */
    101 typedef struct hcd_roothub hcd_roothub_t;
    102 
    103 hcd_roothub_t *hcd_roothub_create(hcd_t *, ddf_dev_t *, usb_speed_t);
    104 int hcd_roothub_new_device(hcd_roothub_t *, unsigned port);
    105 
    10698#endif
    10799
Note: See TracChangeset for help on using the changeset viewer.