Changeset 92574f4 in mainline for uspace/drv/usbhub/usbhub_private.h
- Timestamp:
- 2011-02-24T12:03:27Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e7b7ebd5
- Parents:
- 4837092 (diff), a80849c (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
r4837092 r92574f4 42 42 #include <adt/list.h> 43 43 #include <bool.h> 44 #include <d river.h>44 #include <ddf/driver.h> 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 //************ … … 61 60 //************ 62 61 // 63 // convenience debug printf 62 // convenience debug printf for usb hub 64 63 // 65 64 //************ 66 65 #define dprintf(level, format, ...) \ 67 usb_dprintf(NAME, (level), format "\n", ##__VA_ARGS__) 66 usb_log_printf((level), format "\n", ##__VA_ARGS__) 67 68 68 69 69 /** … … 76 76 * @return 77 77 */ 78 usb_hub_info_t * usb_create_hub_info(d evice_t * device, int hc);78 usb_hub_info_t * usb_create_hub_info(ddf_dev_t * device); 79 79 80 80 /** List of hubs maanged by this driver */ … … 97 97 * @return error code 98 98 */ 99 /* 99 100 int usb_drv_sync_control_read( 100 int phone, usb_target_t target,101 usb_endpoint_pipe_t *pipe, 101 102 usb_device_request_setup_packet_t * request, 102 103 void * rcvd_buffer, size_t rcvd_size, size_t * actual_size 103 ); 104 );*/ 104 105 105 106 /** … … 114 115 * @return error code 115 116 */ 116 int usb_drv_sync_control_write(117 int phone, usb_target_t target,117 /*int usb_drv_sync_control_write( 118 usb_endpoint_pipe_t *pipe, 118 119 usb_device_request_setup_packet_t * request, 119 120 void * sent_buffer, size_t sent_size 120 ); 121 );*/ 121 122 122 123 /** … … 146 147 * @return Operation result 147 148 */ 148 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, 149 150 int port_index, 150 151 usb_hub_class_feature_t feature) { 151 usb_target_t target = { 152 .address = address, 153 .endpoint = 0 154 }; 152 155 153 usb_device_request_setup_packet_t clear_request = { 156 154 .request_type = USB_HUB_REQ_TYPE_CLEAR_PORT_FEATURE, … … 160 158 }; 161 159 clear_request.value = feature; 162 return usb_ drv_psync_control_write(hc, target, &clear_request,160 return usb_endpoint_pipe_control_write(pipe, &clear_request, 163 161 sizeof(clear_request), NULL, 0); 164 162 }
Note:
See TracChangeset
for help on using the changeset viewer.