Changeset 83c439c in mainline for uspace/drv/uhci-hcd/iface.c
- Timestamp:
- 2011-02-12T02:12:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2806cd2
- Parents:
- 7dd3318
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/iface.c
r7dd3318 r83c439c 109 109 dev_speed_t speed = FULL_SPEED; 110 110 111 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_INTERRUPT,111 batch_t *batch = batch_get(dev, target, USB_TRANSFER_INTERRUPT, 112 112 max_packet_size, speed, data, size, NULL, 0, NULL, callback, arg); 113 if (! tracker)114 return ENOMEM; 115 tracker_interrupt_out(tracker);113 if (!batch) 114 return ENOMEM; 115 batch_interrupt_out(batch); 116 116 return EOK; 117 117 } … … 124 124 dev_speed_t speed = FULL_SPEED; 125 125 126 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_INTERRUPT,126 batch_t *batch = batch_get(dev, target, USB_TRANSFER_INTERRUPT, 127 127 max_packet_size, speed, data, size, NULL, 0, callback, NULL, arg); 128 if (! tracker)129 return ENOMEM; 130 tracker_interrupt_in(tracker);128 if (!batch) 129 return ENOMEM; 130 batch_interrupt_in(batch); 131 131 return EOK; 132 132 } … … 139 139 dev_speed_t speed = FULL_SPEED; 140 140 141 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,141 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 142 142 max_packet_size, speed, data, size, setup_data, setup_size, 143 143 NULL, callback, arg); 144 if (! tracker)145 return ENOMEM; 146 tracker_control_write(tracker);144 if (!batch) 145 return ENOMEM; 146 batch_control_write(batch); 147 147 return EOK; 148 148 } … … 155 155 dev_speed_t speed = FULL_SPEED; 156 156 157 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,157 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 158 158 max_packet_size, speed, data, size, setup_data, setup_size, callback, 159 159 NULL, arg); 160 if (! tracker)161 return ENOMEM; 162 tracker_control_read(tracker);160 if (!batch) 161 return ENOMEM; 162 batch_control_read(batch); 163 163 return EOK; 164 164 } … … 172 172 173 173 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__); 174 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,174 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 175 175 max_packet_size, speed, NULL, 0, data, size, NULL, callback, arg); 176 if (! tracker)177 return ENOMEM; 178 tracker_control_setup_old(tracker);176 if (!batch) 177 return ENOMEM; 178 batch_control_setup_old(batch); 179 179 return EOK; 180 180 } … … 188 188 189 189 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__); 190 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,190 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 191 191 max_packet_size, speed, data, size, NULL, 0, NULL, callback, arg); 192 if (! tracker)193 return ENOMEM; 194 tracker_control_write_data_old(tracker);192 if (!batch) 193 return ENOMEM; 194 batch_control_write_data_old(batch); 195 195 return EOK; 196 196 } … … 203 203 204 204 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__); 205 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,205 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 206 206 max_packet_size, speed, NULL, 0, NULL, 0, callback, NULL, arg); 207 if (! tracker)208 return ENOMEM; 209 tracker_control_write_status_old(tracker);207 if (!batch) 208 return ENOMEM; 209 batch_control_write_status_old(batch); 210 210 return EOK; 211 211 } … … 219 219 220 220 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__); 221 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,221 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 222 222 max_packet_size, speed, NULL, 0, data, size, NULL, callback, arg); 223 if (! tracker)224 return ENOMEM; 225 tracker_control_setup_old(tracker);223 if (!batch) 224 return ENOMEM; 225 batch_control_setup_old(batch); 226 226 return EOK; 227 227 } … … 235 235 236 236 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__); 237 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,237 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 238 238 max_packet_size, speed, data, size, NULL, 0, callback, NULL, arg); 239 if (! tracker)240 return ENOMEM; 241 tracker_control_read_data_old(tracker);239 if (!batch) 240 return ENOMEM; 241 batch_control_read_data_old(batch); 242 242 return EOK; 243 243 } … … 250 250 251 251 usb_log_warning("Using deprecated API %s.\n", __FUNCTION__); 252 tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,252 batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL, 253 253 max_packet_size, speed, NULL, 0, NULL, 0, NULL, callback, arg); 254 if (! tracker)255 return ENOMEM; 256 tracker_control_read_status_old(tracker);254 if (!batch) 255 return ENOMEM; 256 batch_control_read_status_old(batch); 257 257 return EOK; 258 258 }
Note:
See TracChangeset
for help on using the changeset viewer.