Changeset 5d915b7 in mainline for uspace/drv/bus/usb/uhci/uhci_batch.c
- Timestamp:
- 2011-09-14T14:25:07Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e3d17f
- Parents:
- 1e647c7d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci_batch.c
r1e647c7d r5d915b7 134 134 memcpy(dest, usb_batch->setup_buffer, usb_batch->setup_size); 135 135 dest += usb_batch->setup_size; 136 /* Copy generic data ifunless they are provided by the device */136 /* Copy generic data unless they are provided by the device */ 137 137 if (usb_batch->ep->direction != USB_DIRECTION_IN) { 138 138 memcpy(dest, usb_batch->buffer, usb_batch->buffer_size); … … 142 142 " memory structures ready.\n", usb_batch, 143 143 USB_TRANSFER_BATCH_ARGS(*usb_batch)); 144 144 145 assert( 145 146 batch_setup[usb_batch->ep->transfer_type][usb_batch->ep->direction]); … … 215 216 assert(uhci_batch); 216 217 assert(uhci_batch->usb_batch); 218 assert(uhci_batch->usb_batch->ep); 219 assert(uhci_batch->usb_batch->ep->direction == USB_DIRECTION_OUT || 220 uhci_batch->usb_batch->ep->direction == USB_DIRECTION_IN); 221 217 222 static const usb_packet_id pids[] = { 218 223 [USB_DIRECTION_IN] = USB_PID_IN, 219 224 [USB_DIRECTION_OUT] = USB_PID_OUT, 220 225 }; 221 assert(uhci_batch->usb_batch->ep->direction == USB_DIRECTION_OUT ||222 uhci_batch->usb_batch->ep->direction == USB_DIRECTION_IN);223 226 224 227 const usb_packet_id pid = pids[uhci_batch->usb_batch->ep->direction];
Note:
See TracChangeset
for help on using the changeset viewer.