Changeset f567bcf in mainline for uspace/lib/usb/include
- Timestamp:
- 2011-04-06T22:02:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4ca18ae
- Parents:
- 8dc762e0
- Location:
- uspace/lib/usb/include/usb/host
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/host/batch.h
r8dc762e0 rf567bcf 39 39 #include <usbhc_iface.h> 40 40 #include <usb/usb.h> 41 #include <usb/host/endpoint.h> 41 42 42 43 typedef struct usb_transfer_batch usb_transfer_batch_t; … … 60 61 ddf_fun_t *fun; 61 62 void *arg; 63 endpoint_t *ep; 62 64 void *private_data; 63 65 }; … … 78 80 void *arg, 79 81 ddf_fun_t *fun, 82 endpoint_t *ep, 80 83 void *private_data 81 84 ); -
uspace/lib/usb/include/usb/host/device_keeper.h
r8dc762e0 rf567bcf 45 45 #include <fibril_synch.h> 46 46 #include <usb/usb.h> 47 #include <usb/host/endpoint.h> 47 48 48 49 /** Number of USB address for array dimensions. */ … … 72 73 73 74 void usb_device_keeper_add_ep( 74 usb_device_keeper_t *instance, usb_address_t address, link_t *ep);75 usb_device_keeper_t *instance, usb_address_t address, endpoint_t *ep); 75 76 76 77 void usb_device_keeper_reserve_default_address( … … 82 83 usb_target_t target, 83 84 const uint8_t *setup_data); 84 85 /* 85 86 int usb_device_keeper_get_toggle(usb_device_keeper_t *instance, 86 87 usb_target_t target, usb_direction_t direction); … … 88 89 int usb_device_keeper_set_toggle(usb_device_keeper_t *instance, 89 90 usb_target_t target, usb_direction_t direction, bool toggle); 90 91 */ 91 92 usb_address_t device_keeper_get_free_address(usb_device_keeper_t *instance, 92 93 usb_speed_t speed); -
uspace/lib/usb/include/usb/host/endpoint.h
r8dc762e0 rf567bcf 47 47 size_t max_packet_size; 48 48 bool active; 49 inttoggle:1;49 unsigned toggle:1; 50 50 } endpoint_t; 51 51 … … 55 55 void endpoint_destroy(endpoint_t *instance); 56 56 57 int endpoint_toggle_get(endpoint_t *instance); 58 59 void endpoint_toggle_set(endpoint_t *instance, int toggle); 60 57 61 void endpoint_toggle_reset(link_t *ep); 62 58 63 59 64 #endif
Note:
See TracChangeset
for help on using the changeset viewer.