Changeset 1ef93fa in mainline


Ignore:
Timestamp:
2011-07-10T23:06:20Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a00768c
Parents:
4d62aa0
Message:

OHCI: Start hw during driver initialization. Do not expose start function.

Location:
uspace/drv/bus/usb/ohci
Files:
3 edited

Legend:

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

    r4d62aa0 r1ef93fa  
    5656};
    5757
     58static void hc_start(hc_t *instance);
    5859static int interrupt_emulator(hc_t *instance);
    5960static void hc_gain_control(hc_t *instance);
     
    157158
    158159        rh_init(&instance->rh, instance->registers);
     160        hc_start(instance);
    159161
    160162        return EOK;
     
    433435
    434436        if (status & I_UE) {
    435                 hc_start_hw(instance);
     437                hc_start(instance);
    436438        }
    437439
     
    524526 * @param[in] instance OHCI hc driver structure.
    525527 */
    526 void hc_start_hw(hc_t *instance)
     528void hc_start(hc_t *instance)
    527529{
    528530        /* OHCI guide page 42 */
  • uspace/drv/bus/usb/ohci/hc.h

    r4d62aa0 r1ef93fa  
    8282    irq_cmd_t cmds[], size_t cmd_size, uintptr_t regs, size_t reg_size);
    8383int hc_init(hc_t *instance, uintptr_t regs, size_t reg_size, bool interrupts);
    84 void hc_start_hw(hc_t *instance);
    8584int hc_register_hub(hc_t *instance, ddf_fun_t *hub_fun);
    8685
  • uspace/drv/bus/usb/ohci/ohci.c

    r4d62aa0 r1ef93fa  
    247247            "Failed to add OHCI to HC class: %s.\n", str_error(ret));
    248248
    249         hc_start_hw(&instance->hc);
    250249        hc_register_hub(&instance->hc, instance->rh_fun);
    251250        return EOK;
Note: See TracChangeset for help on using the changeset viewer.