Changeset 90dd59dc in mainline for uspace/drv/bus/usb/ohci/hc.c


Ignore:
Timestamp:
2011-08-25T13:04:59Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
23b0fe8
Parents:
4f0e510
Message:

ohci: implement schedule function, finish batch initialization

File:
1 edited

Legend:

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

    r4f0e510 r90dd59dc  
    163163}
    164164/*----------------------------------------------------------------------------*/
     165static int schedule(hcd_t *hcd, usb_transfer_batch_t *batch)
     166{
     167        assert(hcd);
     168        return hc_schedule(hcd->private_data, batch);
     169}
     170/*----------------------------------------------------------------------------*/
    165171/** Initialize OHCI hc driver structure
    166172 *
     
    195201
    196202        ret = hcd_init(&instance->generic, BANDWIDTH_AVAILABLE_USB11);
    197         instance->generic.schedule = NULL;
     203        instance->generic.private_data = instance;
     204        instance->generic.schedule = schedule;
    198205        instance->generic.batch_init_hook = batch_init_ohci;
    199206        instance->generic.ep_add_hook = NULL;
Note: See TracChangeset for help on using the changeset viewer.