Changeset d81ef61c in mainline for uspace/drv/usbhub/usbhub_private.h
- Timestamp:
- 2011-02-18T14:24:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50ba203
- Parents:
- fe1776c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub_private.h
rfe1776c2 rd81ef61c 77 77 * @return 78 78 */ 79 usb_hub_info_t * usb_create_hub_info(device_t * device , int hc);79 usb_hub_info_t * usb_create_hub_info(device_t * device); 80 80 81 81 /** List of hubs maanged by this driver */ … … 98 98 * @return error code 99 99 */ 100 /* 100 101 int usb_drv_sync_control_read( 101 int phone, usb_target_t target,102 usb_endpoint_pipe_t *pipe, 102 103 usb_device_request_setup_packet_t * request, 103 104 void * rcvd_buffer, size_t rcvd_size, size_t * actual_size 104 ); 105 );*/ 105 106 106 107 /** … … 115 116 * @return error code 116 117 */ 117 int usb_drv_sync_control_write(118 int phone, usb_target_t target,118 /*int usb_drv_sync_control_write( 119 usb_endpoint_pipe_t *pipe, 119 120 usb_device_request_setup_packet_t * request, 120 121 void * sent_buffer, size_t sent_size 121 ); 122 );*/ 122 123 123 124 /** … … 147 148 * @return Operation result 148 149 */ 149 static inline int usb_hub_clear_port_feature( int hc, usb_address_t address,150 static inline int usb_hub_clear_port_feature(usb_endpoint_pipe_t *pipe, 150 151 int port_index, 151 152 usb_hub_class_feature_t feature) { 152 usb_target_t target = { 153 .address = address, 154 .endpoint = 0 155 }; 153 156 154 usb_device_request_setup_packet_t clear_request = { 157 155 .request_type = USB_HUB_REQ_TYPE_CLEAR_PORT_FEATURE, … … 161 159 }; 162 160 clear_request.value = feature; 163 return usb_ drv_psync_control_write(hc, target, &clear_request,161 return usb_endpoint_pipe_control_write(pipe, &clear_request, 164 162 sizeof(clear_request), NULL, 0); 165 163 }
Note:
See TracChangeset
for help on using the changeset viewer.