Changeset cac458f in mainline for uspace/drv/bus/usb/uhci/batch.c
- Timestamp:
- 2011-06-22T01:59:39Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41e2118
- Parents:
- 79506d6 (diff), f1fae414 (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/batch.c
r79506d6 rcac458f 147 147 + sizeof(qh_t); 148 148 void *data_buffer = setup + setup_size; 149 usb_target_t target =150 { .address = ep->address, .endpoint = ep->endpoint };151 149 usb_transfer_batch_init(instance, ep, buffer, data_buffer, buffer_size, 152 150 setup, setup_size, func_in, func_out, arg, fun, … … 154 152 155 153 memcpy(instance->setup_buffer, setup_buffer, setup_size); 156 usb_log_debug("Batch(%p) %d:%d memory structures ready.\n", 157 instance, target.address, target.endpoint); 154 usb_log_debug2("Batch %p " USB_TRANSFER_BATCH_FMT 155 " memory structures ready.\n", instance, 156 USB_TRANSFER_BATCH_ARGS(*instance)); 158 157 return instance; 159 158 } … … 205 204 return true; 206 205 } 206 207 #define LOG_BATCH_INITIALIZED(batch, name) \ 208 usb_log_debug2("Batch %p %s " USB_TRANSFER_BATCH_FMT " initialized.\n", \ 209 (batch), (name), USB_TRANSFER_BATCH_ARGS(*(batch))) 210 207 211 /*----------------------------------------------------------------------------*/ 208 212 /** Prepares control write transfer. … … 219 223 batch_control(instance, USB_PID_OUT, USB_PID_IN); 220 224 instance->next_step = usb_transfer_batch_call_out_and_dispose; 221 usb_log_debug("Batch(%p) CONTROL WRITE initialized.\n", instance);225 LOG_BATCH_INITIALIZED(instance, "control write"); 222 226 } 223 227 /*----------------------------------------------------------------------------*/ … … 233 237 batch_control(instance, USB_PID_IN, USB_PID_OUT); 234 238 instance->next_step = usb_transfer_batch_call_in_and_dispose; 235 usb_log_debug("Batch(%p) CONTROL READ initialized.\n", instance);239 LOG_BATCH_INITIALIZED(instance, "control read"); 236 240 } 237 241 /*----------------------------------------------------------------------------*/ … … 247 251 batch_data(instance, USB_PID_IN); 248 252 instance->next_step = usb_transfer_batch_call_in_and_dispose; 249 usb_log_debug("Batch(%p) INTERRUPT IN initialized.\n", instance);253 LOG_BATCH_INITIALIZED(instance, "interrupt in"); 250 254 } 251 255 /*----------------------------------------------------------------------------*/ … … 263 267 batch_data(instance, USB_PID_OUT); 264 268 instance->next_step = usb_transfer_batch_call_out_and_dispose; 265 usb_log_debug("Batch(%p) INTERRUPT OUT initialized.\n", instance);269 LOG_BATCH_INITIALIZED(instance, "interrupt out"); 266 270 } 267 271 /*----------------------------------------------------------------------------*/ … … 277 281 batch_data(instance, USB_PID_IN); 278 282 instance->next_step = usb_transfer_batch_call_in_and_dispose; 279 usb_log_debug("Batch(%p) BULK IN initialized.\n", instance);283 LOG_BATCH_INITIALIZED(instance, "bulk in"); 280 284 } 281 285 /*----------------------------------------------------------------------------*/ … … 293 297 batch_data(instance, USB_PID_OUT); 294 298 instance->next_step = usb_transfer_batch_call_out_and_dispose; 295 usb_log_debug("Batch(%p) BULK OUT initialized.\n", instance);299 LOG_BATCH_INITIALIZED(instance, "bulk out"); 296 300 } 297 301 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.