Changeset 83c3123 in mainline for uspace/lib/usbhost/include/usb/host/endpoint.h
- Timestamp:
- 2011-10-27T11:40:06Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7265558
- Parents:
- 4267908
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/endpoint.h
r4267908 r83c3123 36 36 #define LIBUSBHOST_HOST_ENDPOINT_H 37 37 38 #include <assert.h>39 38 #include <bool.h> 40 39 #include <adt/list.h> 41 40 #include <fibril_synch.h> 42 43 41 #include <usb/usb.h> 44 42 45 43 typedef struct endpoint { 44 link_t link; 46 45 usb_address_t address; 47 46 usb_endpoint_t endpoint; … … 50 49 usb_speed_t speed; 51 50 size_t max_packet_size; 51 size_t bandwidth; 52 52 unsigned toggle:1; 53 53 fibril_mutex_t guard; … … 62 62 } endpoint_t; 63 63 64 endpoint_t * endpoint_ get(usb_address_t address, usb_endpoint_t endpoint,64 endpoint_t * endpoint_create(usb_address_t address, usb_endpoint_t endpoint, 65 65 usb_direction_t direction, usb_transfer_type_t type, usb_speed_t speed, 66 size_t max_packet_size); 67 66 size_t max_packet_size, size_t bw); 68 67 void endpoint_destroy(endpoint_t *instance); 69 68 … … 71 70 void *data, void (*destroy_hook)(endpoint_t *), 72 71 int (*toggle_get)(void *), void (*toggle_set)(void *, int)); 73 74 72 void endpoint_clear_hc_data(endpoint_t *instance); 75 73 76 74 void endpoint_use(endpoint_t *instance); 77 78 75 void endpoint_release(endpoint_t *instance); 79 76 80 77 int endpoint_toggle_get(endpoint_t *instance); 81 82 78 void endpoint_toggle_set(endpoint_t *instance, int toggle); 83 84 79 void endpoint_toggle_reset_filtered(endpoint_t *instance, usb_target_t target); 85 80 #endif
Note:
See TracChangeset
for help on using the changeset viewer.