Ignore:
File:
1 edited

Legend:

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

    r48bcf49 r9d58539  
    4343#include <proc/task.h>
    4444#include <ipc/ipc.h>
    45 #include <mm/slab.h>
    46 
    47 typedef enum {
    48         IRQ_HT_KEY_INR,
    49         IRQ_HT_KEY_MODE
    50 } irq_ht_key_t;
    51 
    52 typedef enum {
    53         IRQ_HT_MODE_CLAIM,
    54         IRQ_HT_MODE_NO_CLAIM
    55 } irq_ht_mode_t;
    5645
    5746typedef enum {
     
    8170        /** When false, notifications are not sent. */
    8271        bool notify;
    83         /** True if the structure is in irq_uspace_hash_table_table */
    84         bool hashed_in;
    8572        /** Answerbox for notifications. */
    8673        answerbox_t *answerbox;
     
    8976        /** Arguments that will be sent if the IRQ is claimed. */
    9077        uint32_t scratch[IPC_CALL_LEN];
    91         /** Top-half IRQ code. */
     78        /** Top-half pseudocode. */
    9279        irq_code_t *code;
    9380        /** Counter. */
    9481        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;
    9588} ipc_notif_cfg_t;
    9689
     
    9891 *
    9992 * If one device has multiple interrupts, there will be multiple irq_t
    100  * instantions.
     93 * instantions with the same devno.
     94 *
    10195 */
    10296typedef struct irq {
     
    118112         */
    119113        bool preack;
     114       
     115        /** Unique device number. -1 if not yet assigned. */
     116        devno_t devno;
    120117       
    121118        /** Actual IRQ number. -1 if not yet assigned. */
     
    142139extern hash_table_t irq_uspace_hash_table;
    143140
    144 extern slab_cache_t *irq_slab;
    145 
    146141extern inr_t last_inr;
    147142
Note: See TracChangeset for help on using the changeset viewer.