Changeset 8e8b84f in mainline for uspace/drv/uhci-hcd
- Timestamp:
- 2011-04-09T11:01:44Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5410c04, 7b715892
- Parents:
- 61727bf (diff), 39db23f (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. - Location:
- uspace/drv/uhci-hcd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/batch.c
r61727bf r8e8b84f 103 103 usb_target_t target = 104 104 { .address = ep->address, .endpoint = ep->endpoint }; 105 usb_transfer_batch_init(instance, target, 106 ep->transfer_type, ep->speed, ep->max_packet_size, 107 buffer, NULL, buffer_size, NULL, setup_size, func_in, 108 func_out, arg, fun, ep, NULL); 105 usb_transfer_batch_init(instance, target, ep->transfer_type, ep->speed, 106 ep->max_packet_size, buffer, NULL, buffer_size, NULL, setup_size, 107 func_in, func_out, arg, fun, ep, NULL); 109 108 110 109 111 110 uhci_batch_t *data = malloc(sizeof(uhci_batch_t)); 112 CHECK_NULL_DISPOSE_RETURN(instance, 113 "Failed to allocate batch instance.\n"); 111 CHECK_NULL_DISPOSE_RETURN(data, "Failed to allocate batch data.\n"); 114 112 bzero(data, sizeof(uhci_batch_t)); 115 113 instance->private_data = data; -
uspace/drv/uhci-hcd/hc.c
r61727bf r8e8b84f 240 240 usb_log_debug("Initialized device manager.\n"); 241 241 242 ret = 243 usb_endpoint_manager_init(&instance->ep_manager, 244 BANDWIDTH_AVAILABLE_USB11); 242 ret = usb_endpoint_manager_init(&instance->ep_manager, 243 BANDWIDTH_AVAILABLE_USB11); 245 244 assert(ret == EOK); 246 245 -
uspace/drv/uhci-hcd/iface.c
r61727bf r8e8b84f 206 206 const usb_speed_t speed = 207 207 usb_device_keeper_get_speed(&hc->manager, address); 208 const size_t size = 209 (transfer_type == USB_TRANSFER_INTERRUPT 210 || transfer_type == USB_TRANSFER_ISOCHRONOUS) ? 211 max_packet_size : 0; 208 const size_t size = max_packet_size; 212 209 int ret; 213 210
Note:
See TracChangeset
for help on using the changeset viewer.
