Changes in uspace/drv/usbhub/usbhub_private.h [0f21c0c:6f8f808] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub_private.h
r0f21c0c r6f8f808 45 45 #include <fibril_synch.h> 46 46 47 #include <usb/usb.h> 48 #include <usb/usbdrv.h> 47 49 #include <usb/classes/hub.h> 48 #include <usb/ usb.h>50 #include <usb/devreq.h> 49 51 #include <usb/debug.h> 50 #include <usb/request.h>51 52 52 53 //************ … … 76 77 * @return 77 78 */ 78 usb_hub_info_t * usb_create_hub_info(device_t * device );79 usb_hub_info_t * usb_create_hub_info(device_t * device, int hc); 79 80 80 81 /** List of hubs maanged by this driver */ … … 97 98 * @return error code 98 99 */ 99 /*100 100 int usb_drv_sync_control_read( 101 usb_endpoint_pipe_t *pipe,101 int phone, usb_target_t target, 102 102 usb_device_request_setup_packet_t * request, 103 103 void * rcvd_buffer, size_t rcvd_size, size_t * actual_size 104 ); */104 ); 105 105 106 106 /** … … 115 115 * @return error code 116 116 */ 117 /*int usb_drv_sync_control_write(118 usb_endpoint_pipe_t *pipe,117 int usb_drv_sync_control_write( 118 int phone, usb_target_t target, 119 119 usb_device_request_setup_packet_t * request, 120 120 void * sent_buffer, size_t sent_size 121 ); */121 ); 122 122 123 123 /** … … 147 147 * @return Operation result 148 148 */ 149 static inline int usb_hub_clear_port_feature( usb_endpoint_pipe_t *pipe,149 static inline int usb_hub_clear_port_feature(int hc, usb_address_t address, 150 150 int port_index, 151 151 usb_hub_class_feature_t feature) { 152 152 usb_target_t target = { 153 .address = address, 154 .endpoint = 0 155 }; 153 156 usb_device_request_setup_packet_t clear_request = { 154 157 .request_type = USB_HUB_REQ_TYPE_CLEAR_PORT_FEATURE, … … 158 161 }; 159 162 clear_request.value = feature; 160 return usb_ endpoint_pipe_control_write(pipe, &clear_request,163 return usb_drv_psync_control_write(hc, target, &clear_request, 161 164 sizeof(clear_request), NULL, 0); 162 165 }
Note:
See TracChangeset
for help on using the changeset viewer.