Changeset 15d0046 in mainline for uspace/drv/bus/usb/ohci/ohci.c


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

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

    r8db09e4 r15d0046  
    3434 */
    3535
    36 /* XXX Fix this */
    37 #define _DDF_DATA_IMPLANT
    38 
    3936#include <errno.h>
    4037#include <str_error.h>
     
    6259/** IRQ handling callback, identifies device
    6360 *
    64  * @param[in] dev DDF instance of the device to use.
    6561 * @param[in] iid (Unused).
    6662 * @param[in] call Pointer to the call that represents interrupt.
    67  */
    68 static void irq_handler(ddf_dev_t *dev, ipc_callid_t iid, ipc_call_t *call)
     63 * @param[in] dev DDF instance of the device to use.
     64 *
     65 */
     66static void irq_handler(ipc_callid_t iid, ipc_call_t *call, ddf_dev_t *dev)
    6967{
    7068        assert(dev);
    71 
     69       
    7270        ohci_t *ohci = dev_to_ohci(dev);
    7371        if (!ohci) {
     
    7573                return;
    7674        }
     75       
    7776        const uint16_t status = IPC_GET_ARG1(*call);
    7877        hc_interrupt(&ohci->hc, status);
     
    165164
    166165        ddf_fun_set_ops(instance->hc_fun, &hc_ops);
    167         ddf_fun_data_implant(instance->hc_fun, &instance->hc);
    168166
    169167        instance->rh_fun = ddf_fun_create(device, fun_inner, "ohci_rh");
     
    214212        }
    215213
    216         rc = hc_init(&instance->hc, &regs, interrupts);
     214        rc = hc_init(&instance->hc, instance->hc_fun, &regs, interrupts);
    217215        if (rc != EOK) {
    218216                usb_log_error("Failed to init ohci_hcd: %s.\n", str_error(rc));
Note: See TracChangeset for help on using the changeset viewer.