Changeset da7c0a9 in mainline for uspace/drv/usbhub/usbhub_private.h
- Timestamp:
- 2011-02-20T22:51:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b476347
- Parents:
- 063ead6f (diff), d37b235 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub_private.h
r063ead6f rda7c0a9 45 45 #include <fibril_synch.h> 46 46 47 #include <usb/classes/hub.h> 47 48 #include <usb/usb.h> 48 49 #include <usb/usbdrv.h> 49 #include <usb/classes/hub.h> 50 #include <usb/devreq.h>50 51 //#include <usb/devreq.h> 51 52 #include <usb/debug.h> 52 53 … … 77 78 * @return 78 79 */ 79 usb_hub_info_t * usb_create_hub_info(device_t * device , int hc);80 usb_hub_info_t * usb_create_hub_info(device_t * device); 80 81 81 82 /** List of hubs maanged by this driver */ … … 98 99 * @return error code 99 100 */ 101 /* 100 102 int usb_drv_sync_control_read( 101 int phone, usb_target_t target,103 usb_endpoint_pipe_t *pipe, 102 104 usb_device_request_setup_packet_t * request, 103 105 void * rcvd_buffer, size_t rcvd_size, size_t * actual_size 104 ); 106 );*/ 105 107 106 108 /** … … 115 117 * @return error code 116 118 */ 117 int usb_drv_sync_control_write(118 int phone, usb_target_t target,119 /*int usb_drv_sync_control_write( 120 usb_endpoint_pipe_t *pipe, 119 121 usb_device_request_setup_packet_t * request, 120 122 void * sent_buffer, size_t sent_size 121 ); 123 );*/ 122 124 123 125 /** … … 147 149 * @return Operation result 148 150 */ 149 static inline int usb_hub_clear_port_feature( int hc, usb_address_t address,151 static inline int usb_hub_clear_port_feature(usb_endpoint_pipe_t *pipe, 150 152 int port_index, 151 153 usb_hub_class_feature_t feature) { 152 usb_target_t target = { 153 .address = address, 154 .endpoint = 0 155 }; 154 156 155 usb_device_request_setup_packet_t clear_request = { 157 156 .request_type = USB_HUB_REQ_TYPE_CLEAR_PORT_FEATURE, … … 161 160 }; 162 161 clear_request.value = feature; 163 return usb_ drv_psync_control_write(hc, target, &clear_request,162 return usb_endpoint_pipe_control_write(pipe, &clear_request, 164 163 sizeof(clear_request), NULL, 0); 165 164 }
Note:
See TracChangeset
for help on using the changeset viewer.