Changeset 9b8958b in mainline
- Timestamp:
- 2011-10-07T17:11:07Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 75f9dcd
- Parents:
- 58edcfb
- Location:
- uspace/drv/bus/usb/ohci
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
r58edcfb r9b8958b 571 571 usb_log_debug2("OHCI HCCA initialized at %p.\n", instance->hcca); 572 572 573 unsigned i = 0; 574 for (; i < 32; ++i) { 573 for (unsigned i = 0; i < 32; ++i) { 575 574 instance->hcca->int_ep[i] = 576 575 instance->lists[USB_TRANSFER_INTERRUPT].list_head_pa; -
uspace/drv/bus/usb/ohci/ohci_batch.c
r58edcfb r9b8958b 52 52 if (!ohci_batch) 53 53 return; 54 unsigned i = 0;55 54 if (ohci_batch->tds) { 56 for ( ; i < ohci_batch->td_count; ++i) {55 for (unsigned i = 0; i < ohci_batch->td_count; ++i) { 57 56 if (i != ohci_batch->leave_td) 58 57 free32(ohci_batch->tds[i]); … … 107 106 ohci_batch->tds[0] = ohci_endpoint_get(usb_batch->ep)->td; 108 107 ohci_batch->leave_td = 0; 109 unsigned i = 1; 110 for ( ; i <= ohci_batch->td_count; ++i) {108 109 for (unsigned i = 1; i <= ohci_batch->td_count; ++i) { 111 110 ohci_batch->tds[i] = malloc32(sizeof(td_t)); 112 111 CHECK_NULL_DISPOSE_RET(ohci_batch->tds[i], … … 196 195 ohci_batch->usb_batch->transfered_size = 197 196 ohci_batch->usb_batch->buffer_size; 198 for (--i;i < ohci_batch->td_count; ++i) 197 for (--i;i < ohci_batch->td_count; ++i) { 199 198 ohci_batch->usb_batch->transfered_size 200 199 -= td_remain_size(ohci_batch->tds[i]); 200 } 201 201 202 202 /* Clear possible ED HALT */ -
uspace/drv/bus/usb/ohci/pci.c
r58edcfb r9b8958b 85 85 bool irq_found = false; 86 86 87 size_t i; 88 for (i = 0; i < hw_resources.count; i++) { 87 for (size_t i = 0; i < hw_resources.count; i++) { 89 88 hw_resource_t *res = &hw_resources.resources[i]; 90 89 switch (res->type) { -
uspace/drv/bus/usb/ohci/root_hub.c
r58edcfb r9b8958b 351 351 mask |= 1; 352 352 } 353 size_t port = 1; 354 for (; port <= instance->port_count; ++port) { 353 for (size_t port = 1; port <= instance->port_count; ++port) { 355 354 /* Write-clean bits are those that indicate change */ 356 355 if (RHPS_CHANGE_WC_MASK
Note:
See TracChangeset
for help on using the changeset viewer.