Ignore:
File:
1 edited

Legend:

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

    r8820544 r7de1988c  
    3434 */
    3535
     36/* XXX Fix this */
     37#define _DDF_DATA_IMPLANT
     38
    3639#include <errno.h>
    3740#include <str_error.h>
     
    5962/** IRQ handling callback, identifies device
    6063 *
     64 * @param[in] dev DDF instance of the device to use.
    6165 * @param[in] iid (Unused).
    6266 * @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 */
     68static void irq_handler(ddf_dev_t *dev, ipc_callid_t iid, ipc_call_t *call)
    6769{
    6870        assert(dev);
    69        
     71
    7072        ohci_t *ohci = dev_to_ohci(dev);
    7173        if (!ohci) {
     
    7375                return;
    7476        }
    75        
    7677        const uint16_t status = IPC_GET_ARG1(*call);
    7778        hc_interrupt(&ohci->hc, status);
     
    164165
    165166        ddf_fun_set_ops(instance->hc_fun, &hc_ops);
     167        ddf_fun_data_implant(instance->hc_fun, &instance->hc);
    166168
    167169        instance->rh_fun = ddf_fun_create(device, fun_inner, "ohci_rh");
     
    212214        }
    213215
    214         rc = hc_init(&instance->hc, instance->hc_fun, &regs, interrupts);
     216        rc = hc_init(&instance->hc, &regs, interrupts);
    215217        if (rc != EOK) {
    216218                usb_log_error("Failed to init ohci_hcd: %s.\n", str_error(rc));
Note: See TracChangeset for help on using the changeset viewer.