Changeset 4c28d17 in mainline


Ignore:
Timestamp:
2011-04-09T00:28:56Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ff5ff82
Parents:
f1be95c8
Message:

OHCI scheduling

Location:
uspace/drv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hc.c

    rf1be95c8 r4c28d17  
    132132                return rh_request(&instance->rh, batch);
    133133        }
    134         /* TODO: implement */
    135         return ENOTSUP;
     134        transfer_list_add_batch(
     135            instance->transfers[batch->transfer_type], batch);
     136        return EOK;
    136137}
    137138/*----------------------------------------------------------------------------*/
     
    145146
    146147        usb_log_info("OHCI interrupt: %x.\n", status);
     148
     149        LIST_INITIALIZE(done);
     150        transfer_list_remove_finished(&instance->transfers_interrupt, &done);
     151        transfer_list_remove_finished(&instance->transfers_isochronous, &done);
     152        transfer_list_remove_finished(&instance->transfers_control, &done);
     153        transfer_list_remove_finished(&instance->transfers_bulk, &done);
     154
     155        while (!list_empty(&done)) {
     156                link_t *item = done.next;
     157                list_remove(item);
     158                usb_transfer_batch_t *batch =
     159                    list_get_instance(item, usb_transfer_batch_t, link);
     160                usb_transfer_batch_finish(batch);
     161        }
    147162
    148163        /* TODO: Check for further interrupt causes */
  • uspace/drv/uhci-hcd/hc.c

    rf1be95c8 r4c28d17  
    240240        usb_log_debug("Initialized device manager.\n");
    241241
    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);
    245244        assert(ret == EOK);
    246245
Note: See TracChangeset for help on using the changeset viewer.