Changeset 8d2760f in mainline for kernel/generic/include/ddi/irq.h


Ignore:
Timestamp:
2008-11-29T20:24:47Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
57e76cb
Parents:
dfd77382
Message:

Add additional members to the irq_t structure so that an interrupt-driven driver
does not need to know how to clear the level interrupt. The z8530 was modified
in this way and is much more generic. The ns16550 driver has also been modified,
but awaits testing. The sparc64 interrupt mapping and dispatch code is now using
the new info and calls the clear-interrupt-routine itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ddi/irq.h

    rdfd77382 r8d2760f  
    8484typedef void (* irq_handler_t)(struct irq *irq, void *arg, ...);
    8585
     86/** Type for function used to clear the interrupt. */
     87typedef void (* cir_t)(void *arg, inr_t inr);
     88
    8689/** IPC notification config structure.
    8790 *
     
    145148        void *arg;
    146149
     150        /** Clear interrupt routine. */
     151        cir_t cir;
     152        /** First argument to the clear interrupt routine. */
     153        void *cir_arg;
     154
    147155        /** Notification configuration structure. */
    148156        ipc_notif_cfg_t notif_cfg;
Note: See TracChangeset for help on using the changeset viewer.