Ignore:
File:
1 edited

Legend:

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

    r5b89d43b r7de1988c  
    132132};
    133133
    134 static pio_window_t *get_pio_window(ddf_fun_t *fun)
    135 {
    136         rh_t *rh = ddf_fun_data_get(fun);
    137        
    138         if (rh == NULL)
    139                 return NULL;
    140         return &rh->pio_window;
    141 }
    142 
    143 static pio_window_ops_t pio_window_iface = {
    144         .get_pio_window = get_pio_window
    145 };
    146 
    147134/** RH function support for uhci_rhd */
    148135static ddf_dev_ops_t rh_ops = {
    149136        .interfaces[USB_DEV_IFACE] = &usb_iface,
    150         .interfaces[HW_RES_DEV_IFACE] = &hw_res_iface,
    151         .interfaces[PIO_WINDOW_DEV_IFACE] = &pio_window_iface
     137        .interfaces[HW_RES_DEV_IFACE] = &hw_res_iface
    152138};
    153139
     
    260246        }
    261247
    262         rc = rh_init(&instance->rh, instance->rh_fun, &regs, 0x10, 4);
     248        rc = rh_init(&instance->rh, instance->rh_fun,
     249            (uintptr_t)instance->hc.registers + 0x10, 4);
    263250        if (rc != EOK) {
    264251                usb_log_error("Failed to setup UHCI root hub: %s.\n",
Note: See TracChangeset for help on using the changeset viewer.