Changes in uspace/lib/usb/src/host/endpoint.c [506d330:f567bcf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/host/endpoint.c
r506d330 rf567bcf 37 37 #include <usb/host/endpoint.h> 38 38 39 int endpoint_init(endpoint_t *instance, usb_address_t address, 40 usb_endpoint_t endpoint, usb_direction_t direction, 41 usb_transfer_type_t type, usb_speed_t speed, size_t max_packet_size) 39 int endpoint_init(endpoint_t *instance, usb_transfer_type_t transfer_type, 40 usb_speed_t speed, size_t max_packet_size) 42 41 { 43 42 assert(instance); 44 instance->address = address; 45 instance->endpoint = endpoint; 46 instance->direction = direction; 47 instance->transfer_type = type; 43 link_initialize(&instance->same_device_eps); 44 instance->transfer_type = transfer_type; 48 45 instance->speed = speed; 49 46 instance->max_packet_size = max_packet_size; 50 47 instance->toggle = 0; 51 link_initialize(&instance->same_device_eps);52 48 return EOK; 53 49 } … … 80 76 instance->toggle = 0; 81 77 } 82 /*----------------------------------------------------------------------------*/83 void endpoint_toggle_reset_filtered(link_t *ep, usb_endpoint_t epn)84 {85 endpoint_t *instance =86 list_get_instance(ep, endpoint_t, same_device_eps);87 assert(instance);88 if (instance->endpoint == epn)89 instance->toggle = 0;90 }91 78 /** 92 79 * @}
Note:
See TracChangeset
for help on using the changeset viewer.