X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/3164991854344469bc3a9e8afd41ffd90f11a93f..a35bb9648f1a9eddb071a50ff6a4dcdb8f379f24:/lunaix-os/arch/x86/includes/asm/x86_isrm.h diff --git a/lunaix-os/arch/x86/includes/asm/x86_isrm.h b/lunaix-os/arch/x86/includes/asm/x86_isrm.h new file mode 100644 index 0000000..a2bcacd --- /dev/null +++ b/lunaix-os/arch/x86/includes/asm/x86_isrm.h @@ -0,0 +1,27 @@ +#ifndef __LUNAIX_X86_ISRM_H +#define __LUNAIX_X86_ISRM_H + +#include + +/** + * @brief Bind a given irq and associated handler to an iv + * + * @param iv iv allocated by system + */ +int +isrm_bindirq(int irq, isr_cb irq_handler); + +/** + * @brief Bind given iv with it's associated handler + * + * @param iv + * @param handler + */ +void +isrm_bindiv(int iv, isr_cb handler); + +void +isrm_irq_attach(int irq, int iv, cpu_t dest, u32_t flags); + + +#endif /* __LUNAIX_X86_ISRM_H */