Changeset 8820544 in mainline for uspace/drv/bus/usb/uhci/uhci.c


Ignore:
Timestamp:
2014-08-16T00:02:04Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
35b8bfe, 8cd680c
Parents:
83f29e0
Message:

support for kernel notification multiplexing in the async framework

  • rename SYS_EVENT_* and SYS_IRQ_* syscalls to unify the terminology
  • add SYS_IPC_EVENT_UNSUBSCRIBE
  • remove IRQ handler multiplexing from DDF, the generic mechanism replaces it (unfortunatelly the order of arguments used by interrupt_handler_t needs to be permutated to align with the async framework conventions)
File:
1 edited

Legend:

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

    r83f29e0 r8820544  
    6969/** IRQ handling callback, forward status from call to diver structure.
    7070 *
    71  * @param[in] dev DDF instance of the device to use.
    7271 * @param[in] iid (Unused).
    7372 * @param[in] call Pointer to the call from kernel.
    74  */
    75 static void irq_handler(ddf_dev_t *dev, ipc_callid_t iid, ipc_call_t *call)
     73 * @param[in] dev DDF instance of the device to use.
     74 *
     75 */
     76static void irq_handler(ipc_callid_t iid, ipc_call_t *call, ddf_dev_t *dev)
    7677{
    7778        assert(dev);
     79       
    7880        uhci_t *uhci = dev_to_uhci(dev);
    7981        if (!uhci) {
     
    8183                return;
    8284        }
     85       
    8386        const uint16_t status = IPC_GET_ARG1(*call);
    8487        hc_interrupt(&uhci->hc, status);
Note: See TracChangeset for help on using the changeset viewer.