add ability to do intr-binding based on given device tree node
[lunaix-os.git] / lunaix-os / arch / generic / includes / asm-generic / isrm.h
index e8117bb4ed7f350e9c530a45b29adc259f9b1dd2..88c1db03b9b655b948bf1efe54e03eca7209f678 100644 (file)
@@ -26,6 +26,8 @@ typedef struct {
 #define msi_addr(msiv)   ((msiv).msi_addr)
 #define msi_data(msiv)   ((msiv).msi_data)
 #define msi_vect(msiv)   ((msiv).mapped_iv)
+#define check_msiv_invalid(msiv)  (msi_vect(msiv) == -1)
+#define invalid_msi_vector  ((msi_vector_t) { (ptr_t)-1, (reg_t)-1, -1 });
 
 void
 isrm_init();
@@ -68,7 +70,7 @@ isrm_msialloc(isr_cb handler);
  * @param node
  */
 int
-isrm_bind_dtnode(struct dt_intr_node* node);
+isrm_bind_dtnode(struct dt_intr_node* node, isr_cb handler);
 
 /**
  * @brief Get the handler associated with the given iv