Changeset 2e85b3c in mainline for uspace/drv/uhci-hcd/iface.c
- Timestamp:
- 2011-02-16T18:22:43Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4c87aa9
- Parents:
- 600733e (diff), ec59693 (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/uhci-hcd/iface.c
r600733e r2e85b3c 103 103 /*----------------------------------------------------------------------------*/ 104 104 static int interrupt_out(device_t *dev, usb_target_t target, 105 void *data, size_tsize,106 usbhc_iface_transfer_out_callback_t callback, void *arg)107 { 108 size_t max_packet_size = 8; 105 size_t max_packet_size, 106 void *data, size_t size, 107 usbhc_iface_transfer_out_callback_t callback, void *arg) 108 { 109 109 dev_speed_t speed = FULL_SPEED; 110 110 … … 118 118 /*----------------------------------------------------------------------------*/ 119 119 static int interrupt_in(device_t *dev, usb_target_t target, 120 void *data, size_tsize,121 usbhc_iface_transfer_in_callback_t callback, void *arg)122 { 123 size_t max_packet_size = 4; 120 size_t max_packet_size, 121 void *data, size_t size, 122 usbhc_iface_transfer_in_callback_t callback, void *arg) 123 { 124 124 dev_speed_t speed = FULL_SPEED; 125 125 … … 133 133 /*----------------------------------------------------------------------------*/ 134 134 static int control_write(device_t *dev, usb_target_t target, 135 size_t max_packet_size, 135 136 void *setup_data, size_t setup_size, void *data, size_t size, 136 137 usbhc_iface_transfer_out_callback_t callback, void *arg) 137 138 { 138 size_t max_packet_size = 8;139 139 dev_speed_t speed = FULL_SPEED; 140 140 … … 149 149 /*----------------------------------------------------------------------------*/ 150 150 static int control_read(device_t *dev, usb_target_t target, 151 size_t max_packet_size, 151 152 void *setup_data, size_t setup_size, void *data, size_t size, 152 153 usbhc_iface_transfer_in_callback_t callback, void *arg) 153 154 { 154 size_t max_packet_size = 8;155 155 dev_speed_t speed = FULL_SPEED; 156 156 … … 165 165 /*----------------------------------------------------------------------------*/ 166 166 static int control_write_setup(device_t *dev, usb_target_t target, 167 void *data, size_t size, 168 usbhc_iface_transfer_out_callback_t callback, void *arg) 167 size_t max_packet_size, 168 void *data, size_t size, 169 usbhc_iface_transfer_out_callback_t callback, void *arg) 170 { 171 dev_speed_t speed = FULL_SPEED; 172 173 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__); 174 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 175 max_packet_size, speed, NULL, 0, data, size, NULL, callback, arg); 176 if (!batch) 177 return ENOMEM; 178 batch_control_setup_old(batch); 179 return EOK; 180 } 181 /*----------------------------------------------------------------------------*/ 182 static int control_write_data(device_t *dev, usb_target_t target, 183 size_t max_packet_size, 184 void *data, size_t size, 185 usbhc_iface_transfer_out_callback_t callback, void *arg) 186 { 187 dev_speed_t speed = FULL_SPEED; 188 189 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__); 190 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 191 max_packet_size, speed, data, size, NULL, 0, NULL, callback, arg); 192 if (!batch) 193 return ENOMEM; 194 batch_control_write_data_old(batch); 195 return EOK; 196 } 197 /*----------------------------------------------------------------------------*/ 198 static int control_write_status(device_t *dev, usb_target_t target, 199 usbhc_iface_transfer_in_callback_t callback, void *arg) 169 200 { 170 201 size_t max_packet_size = 8; … … 173 204 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__); 174 205 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 206 max_packet_size, speed, NULL, 0, NULL, 0, callback, NULL, arg); 207 if (!batch) 208 return ENOMEM; 209 batch_control_write_status_old(batch); 210 return EOK; 211 } 212 /*----------------------------------------------------------------------------*/ 213 static int control_read_setup(device_t *dev, usb_target_t target, 214 size_t max_packet_size, 215 void *data, size_t size, 216 usbhc_iface_transfer_out_callback_t callback, void *arg) 217 { 218 dev_speed_t speed = FULL_SPEED; 219 220 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__); 221 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 175 222 max_packet_size, speed, NULL, 0, data, size, NULL, callback, arg); 176 223 if (!batch) … … 180 227 } 181 228 /*----------------------------------------------------------------------------*/ 182 static int control_write_data(device_t *dev, usb_target_t target,183 void *data, size_t size,184 usbhc_iface_transfer_out_callback_t callback, void *arg)185 {186 size_t max_packet_size = 8;187 dev_speed_t speed = FULL_SPEED;188 189 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__);190 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,191 max_packet_size, speed, data, size, NULL, 0, NULL, callback, arg);192 if (!batch)193 return ENOMEM;194 batch_control_write_data_old(batch);195 return EOK;196 }197 /*----------------------------------------------------------------------------*/198 static int control_write_status(device_t *dev, usb_target_t target,199 usbhc_iface_transfer_in_callback_t callback, void *arg)200 {201 size_t max_packet_size = 8;202 dev_speed_t speed = FULL_SPEED;203 204 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__);205 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,206 max_packet_size, speed, NULL, 0, NULL, 0, callback, NULL, arg);207 if (!batch)208 return ENOMEM;209 batch_control_write_status_old(batch);210 return EOK;211 }212 /*----------------------------------------------------------------------------*/213 static int control_read_setup(device_t *dev, usb_target_t target,214 void *data, size_t size,215 usbhc_iface_transfer_out_callback_t callback, void *arg)216 {217 size_t max_packet_size = 8;218 dev_speed_t speed = FULL_SPEED;219 220 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__);221 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,222 max_packet_size, speed, NULL, 0, data, size, NULL, callback, arg);223 if (!batch)224 return ENOMEM;225 batch_control_setup_old(batch);226 return EOK;227 }228 /*----------------------------------------------------------------------------*/229 229 static int control_read_data(device_t *dev, usb_target_t target, 230 void *data, size_tsize,231 usbhc_iface_transfer_in_callback_t callback, void *arg)232 { 233 size_t max_packet_size = 8; 230 size_t max_packet_size, 231 void *data, size_t size, 232 usbhc_iface_transfer_in_callback_t callback, void *arg) 233 { 234 234 dev_speed_t speed = FULL_SPEED; 235 235
Note:
See TracChangeset
for help on using the changeset viewer.