Changeset c6f82e5 in mainline for uspace/lib/usbhost/include/usb
- Timestamp:
- 2018-01-19T20:56:14Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7ec7b7e
- Parents:
- 69b2dfee
- Location:
- uspace/lib/usbhost/include/usb/host
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/bus.h
r69b2dfee rc6f82e5 115 115 void (*endpoint_unregister)(endpoint_t *); 116 116 void (*endpoint_destroy)(endpoint_t *); /**< Optional */ 117 void (*endpoint_toggle_reset)(endpoint_t *); /**< Optional */118 117 ssize_t (*endpoint_count_bw) (endpoint_t *, size_t); /**< Optional */ 119 118 usb_transfer_batch_t *(*batch_create)(endpoint_t *); /**< Optional */ -
uspace/lib/usbhost/include/usb/host/endpoint.h
r69b2dfee rc6f82e5 61 61 /** Reserved bandwidth. */ 62 62 size_t bandwidth; 63 /** Value of the toggle bit. Untouched by the library. */64 unsigned toggle:1;65 63 /** The currently active transfer batch. Write using methods, read under guard. */ 66 64 usb_transfer_batch_t *active_batch; -
uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h
r69b2dfee rc6f82e5 52 52 typedef struct bus bus_t; 53 53 54 /** How many toggles need to be reset */55 typedef enum {56 RESET_NONE,57 RESET_EP,58 RESET_ALL59 } toggle_reset_mode_t;60 61 54 /** Structure stores additional data needed for communication with EP */ 62 55 typedef struct usb_transfer_batch { … … 81 74 uint64_t packed; 82 75 } setup; 83 84 /** Resetting the Toggle */85 toggle_reset_mode_t toggle_reset_mode;86 76 87 77 /** Place for data to send/receive */ -
uspace/lib/usbhost/include/usb/host/utility.h
r69b2dfee rc6f82e5 44 44 #include <usb/request.h> 45 45 46 typedef void (*endpoint_reset_toggle_t)(endpoint_t *); 47 46 48 int hc_get_ep0_max_packet_size(uint16_t *, bus_t *, device_t *); 47 toggle_reset_mode_t hc_get_request_toggle_reset_mode(const usb_device_request_setup_packet_t *request);49 void hc_reset_toggles(const usb_transfer_batch_t *batch, endpoint_reset_toggle_t); 48 50 int hc_setup_virtual_root_hub(hc_device_t *); 49 51 int hc_get_device_desc(device_t *, usb_standard_device_descriptor_t *);
Note:
See TracChangeset
for help on using the changeset viewer.