Changeset 91b60499 in mainline for kernel/generic/include/ddi/irq.h
- Timestamp:
- 2017-09-30T06:29:42Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 300f4c4
- Parents:
- d076f16 (diff), 6636fb19 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ddi/irq.h
rd076f16 r91b60499 43 43 #include <proc/task.h> 44 44 #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; 45 56 46 57 typedef enum { … … 70 81 /** When false, notifications are not sent. */ 71 82 bool notify; 83 /** True if the structure is in irq_uspace_hash_table_table */ 84 bool hashed_in; 72 85 /** Answerbox for notifications. */ 73 86 answerbox_t *answerbox; … … 76 89 /** Arguments that will be sent if the IRQ is claimed. */ 77 90 uint32_t scratch[IPC_CALL_LEN]; 78 /** Top-half pseudocode. */91 /** Top-half IRQ code. */ 79 92 irq_code_t *code; 80 93 /** Counter. */ 81 94 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 95 } ipc_notif_cfg_t; 89 96 … … 91 98 * 92 99 * If one device has multiple interrupts, there will be multiple irq_t 93 * instantions with the same devno. 94 * 100 * instantions. 95 101 */ 96 102 typedef struct irq { … … 112 118 */ 113 119 bool preack; 114 115 /** Unique device number. -1 if not yet assigned. */116 devno_t devno;117 120 118 121 /** Actual IRQ number. -1 if not yet assigned. */ … … 139 142 extern hash_table_t irq_uspace_hash_table; 140 143 144 extern slab_cache_t *irq_slab; 145 141 146 extern inr_t last_inr; 142 147
Note:
See TracChangeset
for help on using the changeset viewer.