Changeset 8820544 in mainline for uspace/drv/bus/usb/ohci/ohci.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/ohci/ohci.c

    r83f29e0 r8820544  
    5959/** IRQ handling callback, identifies device
    6060 *
    61  * @param[in] dev DDF instance of the device to use.
    6261 * @param[in] iid (Unused).
    6362 * @param[in] call Pointer to the call that represents interrupt.
    64  */
    65 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)
    6667{
    6768        assert(dev);
    68 
     69       
    6970        ohci_t *ohci = dev_to_ohci(dev);
    7071        if (!ohci) {
     
    7273                return;
    7374        }
     75       
    7476        const uint16_t status = IPC_GET_ARG1(*call);
    7577        hc_interrupt(&ohci->hc, status);
Note: See TracChangeset for help on using the changeset viewer.