Changes in uspace/drv/bus/usb/ohci/ohci.c [8820544:7de1988c] in mainline
- File:
-
- 1 edited
-
uspace/drv/bus/usb/ohci/ohci.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci.c
r8820544 r7de1988c 34 34 */ 35 35 36 /* XXX Fix this */ 37 #define _DDF_DATA_IMPLANT 38 36 39 #include <errno.h> 37 40 #include <str_error.h> … … 59 62 /** IRQ handling callback, identifies device 60 63 * 64 * @param[in] dev DDF instance of the device to use. 61 65 * @param[in] iid (Unused). 62 66 * @param[in] call Pointer to the call that represents interrupt. 63 * @param[in] dev DDF instance of the device to use. 64 * 65 */ 66 static void irq_handler(ipc_callid_t iid, ipc_call_t *call, ddf_dev_t *dev) 67 */ 68 static void irq_handler(ddf_dev_t *dev, ipc_callid_t iid, ipc_call_t *call) 67 69 { 68 70 assert(dev); 69 71 70 72 ohci_t *ohci = dev_to_ohci(dev); 71 73 if (!ohci) { … … 73 75 return; 74 76 } 75 76 77 const uint16_t status = IPC_GET_ARG1(*call); 77 78 hc_interrupt(&ohci->hc, status); … … 164 165 165 166 ddf_fun_set_ops(instance->hc_fun, &hc_ops); 167 ddf_fun_data_implant(instance->hc_fun, &instance->hc); 166 168 167 169 instance->rh_fun = ddf_fun_create(device, fun_inner, "ohci_rh"); … … 212 214 } 213 215 214 rc = hc_init(&instance->hc, instance->hc_fun,®s, interrupts);216 rc = hc_init(&instance->hc, ®s, interrupts); 215 217 if (rc != EOK) { 216 218 usb_log_error("Failed to init ohci_hcd: %s.\n", str_error(rc));
Note:
See TracChangeset
for help on using the changeset viewer.
