Changeset 6cd9aa6 in mainline for kernel/generic/src/ddi/irq.c


Ignore:
Timestamp:
2009-02-15T23:13:55Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
17f168e
Parents:
fa09449
Message:

IRQ handlers are using one superfluous argument and an unused elipsis.
On the other hand, IRQ claim functions would need to be passed the instance
argument.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/irq.c

    rfa09449 r6cd9aa6  
    4040 * This code is designed to support:
    4141 * - multiple devices sharing single IRQ
    42  * - multiple IRQs per signle device
     42 * - multiple IRQs per single device
     43 * - multiple instances of the same device
    4344 *
    4445 *
     
    145146        irq->claim = NULL;
    146147        irq->handler = NULL;
    147         irq->arg = NULL;
     148        irq->instance = NULL;
    148149        irq->cir = NULL;
    149150        irq->cir_arg = NULL;
     
    307308        if (devno == -1) {
    308309                /* Invoked by irq_dispatch_and_lock(). */
    309                 rv = ((irq->inr == inr) && (irq->claim() == IRQ_ACCEPT));
     310                rv = ((irq->inr == inr) &&
     311                    (irq->claim(irq->instance) == IRQ_ACCEPT));
    310312        } else {
    311313                /* Invoked by irq_find_and_lock(). */
     
    366368        if (devno == -1) {
    367369                /* Invoked by irq_dispatch_and_lock() */
    368                 rv = (irq->claim() == IRQ_ACCEPT);
     370                rv = (irq->claim(irq->instance) == IRQ_ACCEPT);
    369371        } else {
    370372                /* Invoked by irq_find_and_lock() */
Note: See TracChangeset for help on using the changeset viewer.