Changes in uspace/drv/bus/usb/uhci/hc.c [b5111c46:d52ab7b] in mainline
- File:
-
- 1 edited
-
uspace/drv/bus/usb/uhci/hc.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.c
rb5111c46 rd52ab7b 230 230 * 231 231 * @param[in] instance Memory place to initialize. 232 * @param[in] HC function node233 232 * @param[in] regs Range of device's I/O control registers. 234 233 * @param[in] interrupts True if hw interrupts should be used. … … 239 238 * interrupt fibrils. 240 239 */ 241 int hc_init(hc_t *instance, ddf_fun_t *fun,addr_range_t *regs, bool interrupts)240 int hc_init(hc_t *instance, addr_range_t *regs, bool interrupts) 242 241 { 243 242 assert(regs->size >= sizeof(uhci_regs_t)); … … 267 266 } 268 267 269 instance->generic = ddf_fun_data_alloc(fun, sizeof(hcd_t)); 270 if (instance->generic == NULL) { 271 usb_log_error("Out of memory.\n"); 272 return ENOMEM; 273 } 274 275 hcd_init(instance->generic, USB_SPEED_FULL, 268 hcd_init(&instance->generic, USB_SPEED_FULL, 276 269 BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11); 277 270 278 instance->generic ->private_data = instance;279 instance->generic ->schedule = hc_schedule;280 instance->generic ->ep_add_hook = NULL;271 instance->generic.private_data = instance; 272 instance->generic.schedule = hc_schedule; 273 instance->generic.ep_add_hook = NULL; 281 274 282 275 hc_init_hw(instance);
Note:
See TracChangeset
for help on using the changeset viewer.
