Changes in uspace/drv/bus/usb/uhci/uhci.c [b5111c46:5b89d43b] in mainline
- File:
-
- 1 edited
-
uspace/drv/bus/usb/uhci/uhci.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci.c
rb5111c46 r5b89d43b 34 34 */ 35 35 36 /* XXX Fix this */ 37 #define _DDF_DATA_IMPLANT 38 36 39 #include <errno.h> 37 40 #include <stdbool.h> … … 59 62 hc_t hc; 60 63 /** Internal driver's representation of UHCI root hub */ 61 rh_t *rh;64 rh_t rh; 62 65 } uhci_t; 63 66 … … 183 186 184 187 ddf_fun_set_ops(instance->hc_fun, &hc_ops); 188 ddf_fun_data_implant(instance->hc_fun, &instance->hc.generic); 185 189 186 190 instance->rh_fun = ddf_fun_create(device, fun_inner, "uhci_rh"); … … 192 196 193 197 ddf_fun_set_ops(instance->rh_fun, &rh_ops); 194 instance->rh = ddf_fun_data_alloc(instance->rh_fun, sizeof(rh_t));198 ddf_fun_data_implant(instance->rh_fun, &instance->rh); 195 199 196 200 addr_range_t regs; … … 232 236 } 233 237 234 rc = hc_init(&instance->hc, instance->hc_fun,®s, interrupts);238 rc = hc_init(&instance->hc, ®s, interrupts); 235 239 if (rc != EOK) { 236 240 usb_log_error("Failed to init uhci_hcd: %s.\n", str_error(rc)); … … 256 260 } 257 261 258 rc = rh_init( instance->rh, instance->rh_fun, ®s, 0x10, 4);262 rc = rh_init(&instance->rh, instance->rh_fun, ®s, 0x10, 4); 259 263 if (rc != EOK) { 260 264 usb_log_error("Failed to setup UHCI root hub: %s.\n",
Note:
See TracChangeset
for help on using the changeset viewer.
