Changes in uspace/lib/usbhost/include/usb/host/endpoint.h [58563585:f527f58] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/endpoint.h
r58563585 rf527f58 88 88 } endpoint_t; 89 89 90 extern endpoint_t *endpoint_create(usb_address_t, usb_endpoint_t, 91 usb_direction_t, usb_transfer_type_t, usb_speed_t, size_t, unsigned int, 92 size_t, usb_address_t, unsigned int); 93 extern void endpoint_destroy(endpoint_t *); 90 endpoint_t * endpoint_create(usb_address_t address, usb_endpoint_t endpoint, 91 usb_direction_t direction, usb_transfer_type_t type, usb_speed_t speed, 92 size_t max_packet_size, unsigned packets, size_t bw, 93 usb_address_t tt_address, unsigned tt_port); 94 void endpoint_destroy(endpoint_t *instance); 94 95 95 extern void endpoint_add_ref(endpoint_t *);96 extern void endpoint_del_ref(endpoint_t *);96 void endpoint_add_ref(endpoint_t *instance); 97 void endpoint_del_ref(endpoint_t *instance); 97 98 98 extern void endpoint_set_hc_data(endpoint_t *, void *, int (*)(void *),99 void (*)(void *, int));100 extern void endpoint_clear_hc_data(endpoint_t *);99 void endpoint_set_hc_data(endpoint_t *instance, 100 void *data, int (*toggle_get)(void *), void (*toggle_set)(void *, int)); 101 void endpoint_clear_hc_data(endpoint_t *instance); 101 102 102 extern void endpoint_use(endpoint_t *);103 extern void endpoint_release(endpoint_t *);103 void endpoint_use(endpoint_t *instance); 104 void endpoint_release(endpoint_t *instance); 104 105 105 extern int endpoint_toggle_get(endpoint_t *);106 extern void endpoint_toggle_set(endpoint_t *, int);106 int endpoint_toggle_get(endpoint_t *instance); 107 void endpoint_toggle_set(endpoint_t *instance, int toggle); 107 108 108 109 /** list_get_instance wrapper. 109 *110 110 * @param item Pointer to link member. 111 *112 111 * @return Pointer to endpoint_t structure. 113 *114 112 */ 115 113 static inline endpoint_t * endpoint_get_instance(link_t *item) … … 118 116 } 119 117 #endif 120 121 118 /** 122 119 * @}
Note:
See TracChangeset
for help on using the changeset viewer.