Changes in uspace/drv/usbhub/usbhub_private.h [3954a63b:d493ac17] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub_private.h
r3954a63b rd493ac17 58 58 59 59 60 //************ 61 // 62 // convenience debug printf for usb hub 63 // 64 //************ 65 #define dprintf(level, format, ...) \ 66 usb_log_printf((level), format "\n", ##__VA_ARGS__) 67 68 60 69 /** 61 70 * Create hub structure instance … … 68 77 */ 69 78 usb_hub_info_t * usb_create_hub_info(ddf_dev_t * device); 79 80 /** List of hubs maanged by this driver */ 81 extern usb_general_list_t usb_hub_list; 82 83 /** Lock for hub list*/ 84 extern fibril_mutex_t usb_hub_list_lock; 85 86 87 /** 88 * Perform complete control read transaction 89 * 90 * Manages all three steps of transaction: setup, read and finalize 91 * @param phone 92 * @param target 93 * @param request Request packet 94 * @param rcvd_buffer Received data 95 * @param rcvd_size 96 * @param actual_size Actual size of received data 97 * @return error code 98 */ 99 /* 100 int usb_drv_sync_control_read( 101 usb_endpoint_pipe_t *pipe, 102 usb_device_request_setup_packet_t * request, 103 void * rcvd_buffer, size_t rcvd_size, size_t * actual_size 104 );*/ 105 106 /** 107 * Perform complete control write transaction 108 * 109 * Manages all three steps of transaction: setup, write and finalize 110 * @param phone 111 * @param target 112 * @param request Request packet to send data 113 * @param sent_buffer 114 * @param sent_size 115 * @return error code 116 */ 117 /*int usb_drv_sync_control_write( 118 usb_endpoint_pipe_t *pipe, 119 usb_device_request_setup_packet_t * request, 120 void * sent_buffer, size_t sent_size 121 );*/ 70 122 71 123 /** … … 95 147 * @return Operation result 96 148 */ 97 static inline int usb_hub_clear_port_feature(usb_ pipe_t *pipe,149 static inline int usb_hub_clear_port_feature(usb_endpoint_pipe_t *pipe, 98 150 int port_index, 99 151 usb_hub_class_feature_t feature) { … … 106 158 }; 107 159 clear_request.value = feature; 108 return usb_ pipe_control_write(pipe, &clear_request,160 return usb_endpoint_pipe_control_write(pipe, &clear_request, 109 161 sizeof(clear_request), NULL, 0); 110 162 } 111 163 112 164 /** 113 * create uint8_t array with serialized descriptor165 * @brief create uint8_t array with serialized descriptor 114 166 * 115 167 * @param descriptor … … 119 171 120 172 /** 121 * create deserialized desriptor structure out of serialized descriptor173 * @brief create deserialized desriptor structure out of serialized descriptor 122 174 * 123 175 * The serialized descriptor must be proper usb hub descriptor,
Note:
See TracChangeset
for help on using the changeset viewer.