X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/9daf4fcdae88f72af60aeb0c7722841af02233d4..836d44ecb7a2c37427f6baf8b25e872e9e943d5b:/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 index b486080..4d6fb44 100644 --- a/lunaix-os/arch/x86/includes/asm/x86_isrm.h +++ b/lunaix-os/arch/x86/includes/asm/x86_isrm.h @@ -3,14 +3,6 @@ #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 * @@ -39,4 +31,28 @@ isrm_ivosalloc(isr_cb handler); int isrm_ivexalloc(isr_cb handler); +/** + * @brief Release a iv resource + * + * @param iv + */ +void +isrm_ivfree(int iv); + +/** + * @brief Get the handler associated with the given iv + * + * @param iv + * @return isr_cb + */ +isr_cb +isrm_get(int iv); + +ptr_t +isrm_get_payload(const struct hart_state*); + +void +isrm_set_payload(int iv, ptr_t); + + #endif /* __LUNAIX_X86_ISRM_H */