Changeset 20eaa82 in mainline for uspace/drv/bus/usb/xhci/hc.c


Ignore:
Timestamp:
2017-10-15T13:44:39Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2770b66
Parents:
867b375
Message:

usbhost refactoring: introduced bus→enumerate_device

File:
1 edited

Legend:

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

    r867b375 r20eaa82  
    158158                return err;
    159159
    160         hc->base = base;
     160        hc->reg_base = base;
    161161        hc->cap_regs = (xhci_cap_regs_t *)  base;
    162162        hc->op_regs  = (xhci_op_regs_t *)  (base + XHCI_REG_RD(hc->cap_regs, XHCI_CAP_LENGTH));
     
    180180
    181181        if ((err = hc_parse_ec(hc))) {
    182                 pio_disable(hc->base, RNGSZ(hc->mmio_range));
     182                pio_disable(hc->reg_base, RNGSZ(hc->mmio_range));
    183183                return err;
    184184        }
     
    619619        xhci_fini_commands(hc);
    620620        xhci_rh_fini(&hc->rh);
    621         pio_disable(hc->base, RNGSZ(hc->mmio_range));
     621        pio_disable(hc->reg_base, RNGSZ(hc->mmio_range));
    622622        usb_log_info("HC(%p): Finalized.", hc);
    623623}
Note: See TracChangeset for help on using the changeset viewer.