Changes in uspace/drv/bus/usb/uhci/uhci.c [5b89d43b:7de1988c] in mainline
- File:
-
- 1 edited
-
uspace/drv/bus/usb/uhci/uhci.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci.c
r5b89d43b r7de1988c 132 132 }; 133 133 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_window145 };146 147 134 /** RH function support for uhci_rhd */ 148 135 static ddf_dev_ops_t rh_ops = { 149 136 .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 152 138 }; 153 139 … … 260 246 } 261 247 262 rc = rh_init(&instance->rh, instance->rh_fun, ®s, 0x10, 4); 248 rc = rh_init(&instance->rh, instance->rh_fun, 249 (uintptr_t)instance->hc.registers + 0x10, 4); 263 250 if (rc != EOK) { 264 251 usb_log_error("Failed to setup UHCI root hub: %s.\n",
Note:
See TracChangeset
for help on using the changeset viewer.
