Changeset 6832245 in mainline for uspace/lib/usbhost/include/usb/host/endpoint.h
- Timestamp:
- 2017-12-14T23:01:57Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 837d53d
- Parents:
- bd05140
- git-author:
- Ondřej Hlavatý <aearsis@…> (2017-12-14 23:01:54)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2017-12-14 23:01:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/endpoint.h
rbd05140 r6832245 45 45 #include <stdbool.h> 46 46 #include <usb/usb.h> 47 #include <usb/host/bus.h> 47 48 48 49 typedef struct bus bus_t; … … 54 55 /** Part of linked list. */ 55 56 link_t link; 56 /** Managing bus*/57 bus_t *bus;57 /** USB device */ 58 device_t *device; 58 59 /** Reference count. */ 59 60 atomic_t refcnt; 60 /** USB device */61 device_t *device;62 61 /** Enpoint number */ 63 62 usb_endpoint_t endpoint; … … 84 83 } endpoint_t; 85 84 86 extern void endpoint_init(endpoint_t *, bus_t *);85 extern void endpoint_init(endpoint_t *, device_t *, const usb_endpoint_desc_t *); 87 86 88 87 extern void endpoint_add_ref(endpoint_t *); … … 103 102 void endpoint_abort(endpoint_t *); 104 103 104 /* Manage the toggle bit */ 105 105 extern int endpoint_toggle_get(endpoint_t *); 106 106 extern void endpoint_toggle_set(endpoint_t *, bool); 107 108 /* Calculate bandwidth */ 109 ssize_t endpoint_count_bw(endpoint_t *, size_t); 110 111 static inline bus_t *endpoint_get_bus(endpoint_t *ep) 112 { 113 return ep->device->bus; 114 } 107 115 108 116 /** list_get_instance wrapper.
Note:
See TracChangeset
for help on using the changeset viewer.