Changeset 361e61b in mainline for uspace/lib/usb/include
- Timestamp:
- 2011-03-21T14:23:15Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 55e388a1
- Parents:
- c32688d (diff), 48fe0c9 (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. - Location:
- uspace/lib/usb/include/usb
- Files:
-
- 2 added
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/classes/hub.h
rc32688d r361e61b 60 60 } usb_hub_class_feature_t; 61 61 62 /** Header of standard hub descriptor without the "variadic" part. */ 63 typedef struct { 64 /** Descriptor length. */ 65 uint8_t length; 66 /** Descriptor type (0x29). */ 67 uint8_t descriptor_type; 68 /** Number of downstream ports. */ 69 uint8_t port_count; 70 /** Characteristics bitmask. */ 71 uint16_t characteristics; 72 /** Time from power-on to stabilization of current on the port. */ 73 uint8_t power_good_time; 74 /** Maximum current requirements in mA. */ 75 uint8_t max_current; 76 } __attribute__ ((packed)) usb_hub_descriptor_header_t; 62 77 63 78 /** -
uspace/lib/usb/include/usb/dp.h
rc32688d r361e61b 77 77 usb_dp_parser_data_t *, uint8_t *, uint8_t *); 78 78 79 void usb_dp_walk_simple(uint8_t *, size_t, usb_dp_descriptor_nesting_t *, 80 void (*)(uint8_t *, size_t, void *), void *); 81 79 82 #endif 80 83 /** -
uspace/lib/usb/include/usb/host/device_keeper.h
rc32688d r361e61b 27 27 */ 28 28 29 /** @addtogroup drvusbuhci29 /** @addtogroup libusb 30 30 * @{ 31 31 */ … … 33 33 * @brief UHCI driver 34 34 */ 35 #ifndef UTILS_DEVICE_KEEPER_H36 #define UTILS_DEVICE_KEEPER_H35 #ifndef LIBUSB_HOST_DEVICE_KEEPER_H 36 #define LIBUSB_HOST_DEVICE_KEEPER_H 37 37 #include <devman.h> 38 38 #include <fibril_synch.h> … … 44 44 usb_speed_t speed; 45 45 bool occupied; 46 uint16_t toggle_status ;46 uint16_t toggle_status[2]; 47 47 devman_handle_t handle; 48 48 }; … … 63 63 64 64 void device_keeper_reset_if_need( 65 device_keeper_t *instance, usb_target_t target, const unsigned char *setup_data); 65 device_keeper_t *instance, usb_target_t target, 66 const unsigned char *setup_data); 66 67 67 int device_keeper_get_toggle(device_keeper_t *instance, usb_target_t target); 68 int device_keeper_get_toggle( 69 device_keeper_t *instance, usb_target_t target, usb_direction_t direction); 68 70 69 int device_keeper_set_toggle( 70 device_keeper_t *instance, usb_target_t target, bool toggle);71 int device_keeper_set_toggle(device_keeper_t *instance, 72 usb_target_t target, usb_direction_t direction, bool toggle); 71 73 72 74 usb_address_t device_keeper_request( -
uspace/lib/usb/include/usb/pipes.h
rc32688d r361e61b 106 106 const usb_endpoint_description_t *description; 107 107 /** Interface number the endpoint must belong to (-1 for any). */ 108 constint interface_no;108 int interface_no; 109 109 /** Found descriptor fitting the description. */ 110 110 usb_standard_endpoint_descriptor_t *descriptor; … … 123 123 124 124 int usb_device_get_assigned_interface(ddf_dev_t *); 125 usb_address_t usb_device_get_assigned_address(devman_handle_t); 125 126 126 127 int usb_endpoint_pipe_initialize(usb_endpoint_pipe_t *, … … 129 130 int usb_endpoint_pipe_initialize_default_control(usb_endpoint_pipe_t *, 130 131 usb_device_connection_t *); 132 int usb_endpoint_pipe_probe_default_control(usb_endpoint_pipe_t *); 131 133 int usb_endpoint_pipe_initialize_from_configuration(usb_endpoint_mapping_t *, 132 134 size_t, uint8_t *, size_t, usb_device_connection_t *); 133 135 int usb_endpoint_pipe_register(usb_endpoint_pipe_t *, unsigned int, 136 usb_hc_connection_t *); 137 int usb_endpoint_pipe_unregister(usb_endpoint_pipe_t *, usb_hc_connection_t *); 134 138 135 139 int usb_endpoint_pipe_start_session(usb_endpoint_pipe_t *); -
uspace/lib/usb/include/usb/request.h
rc32688d r361e61b 94 94 uint16_t, uint16_t, void *, size_t, size_t *); 95 95 96 int usb_request_get_status(usb_endpoint_pipe_t *, usb_request_recipient_t, 97 uint16_t, uint16_t *); 98 int usb_request_clear_feature(usb_endpoint_pipe_t *, usb_request_type_t, 99 usb_request_recipient_t, uint16_t, uint16_t); 100 int usb_request_set_feature(usb_endpoint_pipe_t *, usb_request_type_t, 101 usb_request_recipient_t, uint16_t, uint16_t); 96 102 int usb_request_set_address(usb_endpoint_pipe_t *, usb_address_t); 97 103 int usb_request_get_descriptor(usb_endpoint_pipe_t *, usb_request_type_t, … … 108 114 int usb_request_get_full_configuration_descriptor_alloc(usb_endpoint_pipe_t *, 109 115 int, void **, size_t *); 116 int usb_request_set_descriptor(usb_endpoint_pipe_t *, usb_request_type_t, 117 usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t); 118 int usb_request_get_configuration(usb_endpoint_pipe_t *, uint8_t *); 110 119 int usb_request_set_configuration(usb_endpoint_pipe_t *, uint8_t); 120 int usb_request_get_interface(usb_endpoint_pipe_t *, uint8_t, uint8_t *); 121 int usb_request_set_interface(usb_endpoint_pipe_t *, uint8_t, uint8_t); 111 122 112 123 int usb_request_get_supported_languages(usb_endpoint_pipe_t *,
Note:
See TracChangeset
for help on using the changeset viewer.