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


Ignore:
Timestamp:
2012-12-16T17:17:37Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
395bb79
Parents:
8de2cca
Message:

ohci: Move generic hcd initialization out of device hc init.

File:
1 edited

Legend:

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

    r8de2cca rf51587f5  
    8888static int hc_init_memory(hc_t *instance);
    8989static int interrupt_emulator(hc_t *instance);
    90 static int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch);
    9190
    9291/** Get number of PIO ranges used in IRQ code.
     
    161160
    162161        list_initialize(&instance->pending_batches);
    163 
    164         hcd_init(&instance->generic, USB_SPEED_FULL,
    165             BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11);
    166         instance->generic.private_data = instance;
    167         instance->generic.schedule = hc_schedule;
    168         instance->generic.ep_add_hook = ohci_endpoint_init;
    169         instance->generic.ep_remove_hook = ohci_endpoint_fini;
    170162
    171163        ret = hc_init_memory(instance);
Note: See TracChangeset for help on using the changeset viewer.