Changeset 867b375 in mainline for uspace/lib/usbhost/include/usb/host/ddf_helpers.h
- Timestamp:
- 2017-10-15T02:04:10Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 20eaa82
- Parents:
- d7869d7e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/ddf_helpers.h
rd7869d7e r867b375 49 49 typedef int (*claim_t)(hcd_t *, ddf_dev_t *); 50 50 typedef int (*driver_start_t)(hcd_t *, bool irq); 51 typedef int (*setup_root_hub_t)( ddf_dev_t *);51 typedef int (*setup_root_hub_t)(hcd_t *, ddf_dev_t *); 52 52 53 53 typedef void (*driver_stop_t)(hcd_t *); … … 81 81 void hcd_ddf_clean_hc(ddf_dev_t *device); 82 82 83 int hcd_setup_virtual_root_hub( ddf_dev_t *);83 int hcd_setup_virtual_root_hub(hcd_t *, ddf_dev_t *); 84 84 85 85 hcd_t *dev_to_hcd(ddf_dev_t *dev); … … 93 93 void ddf_hcd_gen_irq_handler(ipc_callid_t iid, ipc_call_t *call, ddf_dev_t *dev); 94 94 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 95 106 #endif 96 107
Note:
See TracChangeset
for help on using the changeset viewer.