Changeset 9efad54 in mainline for uspace/lib/usbhost/include
- Timestamp:
- 2018-01-06T21:15:48Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 56257ba
- Parents:
- c901632
- Location:
- uspace/lib/usbhost/include/usb/host
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/bus.h
rc901632 r9efad54 109 109 int (*device_offline)(device_t *); /**< Optional */ 110 110 endpoint_t *(*device_find_endpoint)(device_t*, usb_target_t, usb_direction_t); 111 endpoint_t *(*endpoint_create)(device_t *, const usb_endpoint_desc _t *);111 endpoint_t *(*endpoint_create)(device_t *, const usb_endpoint_descriptors_t *); 112 112 113 113 /* Operations on endpoint */ … … 163 163 const char *); 164 164 165 int bus_endpoint_add(device_t *, const usb_endpoint_desc _t *, endpoint_t **);165 int bus_endpoint_add(device_t *, const usb_endpoint_descriptors_t *, endpoint_t **); 166 166 endpoint_t *bus_find_endpoint(device_t *, usb_target_t, usb_direction_t); 167 167 int bus_endpoint_remove(endpoint_t *); -
uspace/lib/usbhost/include/usb/host/endpoint.h
rc901632 r9efad54 46 46 #include <usb/usb.h> 47 47 #include <usb/host/bus.h> 48 #include <usbhc_iface.h> 48 49 49 50 typedef struct bus bus_t; … … 59 60 /** Reference count. */ 60 61 atomic_t refcnt; 61 /** Enpoint number */62 usb_endpoint_t endpoint;63 /** Communication direction. */64 usb_direction_t direction;65 /** USB transfer type. */66 usb_transfer_type_t transfer_type;67 /** Maximum size of data packets. */68 size_t max_packet_size;69 /** Additional opportunities per uframe */70 unsigned packets;71 62 /** Reserved bandwidth. */ 72 63 size_t bandwidth; … … 80 71 fibril_condvar_t avail; 81 72 73 /** Enpoint number */ 74 usb_endpoint_t endpoint; 75 /** Communication direction. */ 76 usb_direction_t direction; 77 /** USB transfer type. */ 78 usb_transfer_type_t transfer_type; 79 /** Maximum size of one packet */ 80 size_t max_packet_size; 81 82 /** Maximum size of one transfer */ 83 size_t max_transfer_size; 84 /** Number of packats that can be sent in one service interval (not necessarily uframe) */ 85 unsigned packets_per_uframe; 86 82 87 /* This structure is meant to be extended by overriding. */ 83 88 } endpoint_t; 84 89 85 extern void endpoint_init(endpoint_t *, device_t *, const usb_endpoint_desc _t *);90 extern void endpoint_init(endpoint_t *, device_t *, const usb_endpoint_descriptors_t *); 86 91 87 92 extern void endpoint_add_ref(endpoint_t *);
Note:
See TracChangeset
for help on using the changeset viewer.