Changeset c95c00e in mainline for uspace/drv/bus/usb/uhci/hc.c


Ignore:
Timestamp:
2013-01-06T02:46:00Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3848fec
Parents:
ea30cc1
Message:

uhci: Add root hub emulation.

This device uses libusbvirt and si controlled by standard usbhub driver.

File:
1 edited

Legend:

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

    rea30cc1 rc95c00e  
    130130        memcpy(cmds, uhci_irq_commands, sizeof(uhci_irq_commands));
    131131        uhci_regs_t *registers = (uhci_regs_t *) regs;
    132         cmds[0].addr = &registers->usbsts;
    133         cmds[3].addr = &registers->usbsts;
     132        cmds[0].addr = (void*)&registers->usbsts;
     133        cmds[3].addr = (void*)&registers->usbsts;
    134134
    135135        return EOK;
     
    242242        }
    243243        (void)hc_debug_checker;
     244
     245        uhci_rh_init(&instance->rh, &instance->registers->ports[0]);
    244246
    245247        return EOK;
     
    406408        assert(instance);
    407409        assert(batch);
     410
     411//      if (batch->ep->address == uhci_rh_get_address(&instance->rh))
     412//              return uhci_rh_schedule(&instance->rh, batch);
     413
    408414        uhci_transfer_batch_t *uhci_batch = uhci_transfer_batch_get(batch);
    409415        if (!uhci_batch) {
Note: See TracChangeset for help on using the changeset viewer.