Changeset e50cd7f in mainline for uspace/lib/usb/include/usb/host/endpoint.h
- Timestamp:
- 2011-04-17T19:17:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63517c2, cfbbe1d3
- Parents:
- ef354b6 (diff), 8595577b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/host/endpoint.h
ref354b6 re50cd7f 39 39 #include <bool.h> 40 40 #include <adt/list.h> 41 #include <fibril_synch.h> 42 41 43 #include <usb/usb.h> 42 44 … … 48 50 usb_speed_t speed; 49 51 size_t max_packet_size; 50 bool active;51 52 unsigned toggle:1; 52 link_t same_device_eps; 53 fibril_mutex_t guard; 54 fibril_condvar_t avail; 55 volatile bool active; 56 struct { 57 void *data; 58 int (*toggle_get)(void *); 59 void (*toggle_set)(void *, int); 60 } hc_data; 53 61 } endpoint_t; 54 62 … … 59 67 void endpoint_destroy(endpoint_t *instance); 60 68 69 void endpoint_set_hc_data(endpoint_t *instance, 70 void *data, int (*toggle_get)(void *), void (*toggle_set)(void *, int)); 71 72 void endpoint_clear_hc_data(endpoint_t *instance); 73 74 void endpoint_use(endpoint_t *instance); 75 76 void endpoint_release(endpoint_t *instance); 77 61 78 int endpoint_toggle_get(endpoint_t *instance); 62 79 63 80 void endpoint_toggle_set(endpoint_t *instance, int toggle); 64 81 65 void endpoint_toggle_reset(link_t *ep); 66 67 void endpoint_toggle_reset_filtered(link_t *ep, usb_endpoint_t epn); 68 82 void endpoint_toggle_reset_filtered(endpoint_t *instance, usb_target_t target); 69 83 #endif 70 84 /**
Note:
See TracChangeset
for help on using the changeset viewer.