Changes in kernel/generic/include/ddi/irq.h [9d58539:ca207e0] in mainline
- File:
-
- 1 edited
-
kernel/generic/include/ddi/irq.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ddi/irq.h
r9d58539 rca207e0 43 43 #include <proc/task.h> 44 44 #include <ipc/ipc.h> 45 #include <mm/slab.h> 45 46 46 47 typedef enum { … … 70 71 /** When false, notifications are not sent. */ 71 72 bool notify; 73 /** True if the structure is in irq_uspace_hash_table_table */ 74 bool hashed_in; 72 75 /** Answerbox for notifications. */ 73 76 answerbox_t *answerbox; … … 76 79 /** Arguments that will be sent if the IRQ is claimed. */ 77 80 uint32_t scratch[IPC_CALL_LEN]; 78 /** Top-half pseudocode. */81 /** Top-half IRQ code. */ 79 82 irq_code_t *code; 80 83 /** Counter. */ 81 84 size_t counter; 82 83 /**84 * Link between IRQs that are notifying the same answerbox. The list is85 * protected by the answerbox irq_lock.86 */87 link_t link;88 85 } ipc_notif_cfg_t; 89 86 … … 91 88 * 92 89 * If one device has multiple interrupts, there will be multiple irq_t 93 * instantions with the same devno. 94 * 90 * instantions. 95 91 */ 96 92 typedef struct irq { 97 93 /** Hash table link. */ 98 link_t link;94 ht_link_t link; 99 95 100 96 /** Lock protecting everything in this structure … … 112 108 */ 113 109 bool preack; 114 115 /** Unique device number. -1 if not yet assigned. */116 devno_t devno;117 110 118 111 /** Actual IRQ number. -1 if not yet assigned. */ … … 139 132 extern hash_table_t irq_uspace_hash_table; 140 133 134 extern slab_cache_t *irq_slab; 135 141 136 extern inr_t last_inr; 142 137
Note:
See TracChangeset
for help on using the changeset viewer.
