1 #ifndef __LUNAIX_X86_ISRM_H
2 #define __LUNAIX_X86_ISRM_H
4 #include <asm-generic/isrm.h>
7 * @brief Bind given iv with it's associated handler
13 isrm_bindiv(int iv, isr_cb handler);
16 isrm_irq_attach(int irq, int iv, cpu_t dest, u32_t flags);
19 * @brief Allocate an iv resource for os services
24 isrm_ivosalloc(isr_cb handler);
27 * @brief Allocate an iv resource for external events
32 isrm_ivexalloc(isr_cb handler);
35 * @brief Release a iv resource
43 * @brief Get the handler associated with the given iv
52 isrm_get_payload(const struct hart_state*);
55 isrm_set_payload(int iv, ptr_t);
58 #endif /* __LUNAIX_X86_ISRM_H */