Changeset 41924f30 in mainline for uspace/lib/usbhost/include/usb/host/hcd.h
- Timestamp:
- 2017-10-12T14:07:27Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a5976973
- Parents:
- 7e74911
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r7e74911 r41924f30 38 38 39 39 #include <usb/host/endpoint.h> 40 #include <usb/host/ usb_bus.h>40 #include <usb/host/bus.h> 41 41 #include <usb/host/usb_transfer_batch.h> 42 42 #include <usb/usb.h> … … 71 71 struct hcd { 72 72 /** Endpoint manager. */ 73 usb_bus_tbus;73 bus_t *bus; 74 74 75 75 /** Interrupt replacement fibril */ … … 78 78 /** Driver implementation */ 79 79 hcd_ops_t ops; 80 80 81 /** Device specific driver data. */ 81 82 void * driver_data; 82 83 }; 83 84 84 extern void hcd_init(hcd_t * , usb_speed_t, size_t, bw_count_func_t);85 extern void hcd_init(hcd_t *); 85 86 86 87 static inline void hcd_set_implementation(hcd_t *hcd, void *data, 87 const hcd_ops_t *ops )88 const hcd_ops_t *ops, bus_t *bus) 88 89 { 89 90 assert(hcd); … … 91 92 hcd->driver_data = data; 92 93 hcd->ops = *ops; 94 hcd->bus = bus; 93 95 } else { 94 96 memset(&hcd->ops, 0, sizeof(hcd->ops));
Note:
See TracChangeset
for help on using the changeset viewer.