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