Ignore:
File:
1 edited

Legend:

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

    rca207e0 r9d58539  
    4343#include <proc/task.h>
    4444#include <ipc/ipc.h>
    45 #include <mm/slab.h>
    4645
    4746typedef enum {
     
    7170        /** When false, notifications are not sent. */
    7271        bool notify;
    73         /** True if the structure is in irq_uspace_hash_table_table */
    74         bool hashed_in;
    7572        /** Answerbox for notifications. */
    7673        answerbox_t *answerbox;
     
    7976        /** Arguments that will be sent if the IRQ is claimed. */
    8077        uint32_t scratch[IPC_CALL_LEN];
    81         /** Top-half IRQ code. */
     78        /** Top-half pseudocode. */
    8279        irq_code_t *code;
    8380        /** Counter. */
    8481        size_t counter;
     82       
     83        /**
     84         * Link between IRQs that are notifying the same answerbox. The list is
     85         * protected by the answerbox irq_lock.
     86         */
     87        link_t link;
    8588} ipc_notif_cfg_t;
    8689
     
    8891 *
    8992 * If one device has multiple interrupts, there will be multiple irq_t
    90  * instantions.
     93 * instantions with the same devno.
     94 *
    9195 */
    9296typedef struct irq {
    9397        /** Hash table link. */
    94         ht_link_t link;
     98        link_t link;
    9599       
    96100        /** Lock protecting everything in this structure
     
    108112         */
    109113        bool preack;
     114       
     115        /** Unique device number. -1 if not yet assigned. */
     116        devno_t devno;
    110117       
    111118        /** Actual IRQ number. -1 if not yet assigned. */
     
    132139extern hash_table_t irq_uspace_hash_table;
    133140
    134 extern slab_cache_t *irq_slab;
    135 
    136141extern inr_t last_inr;
    137142
Note: See TracChangeset for help on using the changeset viewer.