1 /* 2 * (C) Copyright 2009 3 * Graeme Russ, graeme.russ@gmail.com 4 * 5 * (C) Copyright 2002 6 * Daniel Engström, Omicron Ceti AB, daniel@omicron.se 7 * 8 * SPDX-License-Identifier: GPL-2.0+ 9 */ 10 11 #ifndef __ASM_INTERRUPT_H_ 12 #define __ASM_INTERRUPT_H_ 1 13 14 #include <asm/types.h> 15 16 /* arch/x86/cpu/interrupts.c */ 17 void set_vector(u8 intnum, void *routine); 18 19 /* Architecture specific functions */ 20 void mask_irq(int irq); 21 void unmask_irq(int irq); 22 void specific_eoi(int irq); 23 24 extern char exception_stack[]; 25 26 /** 27 * configure_irq_trigger() - Configure IRQ triggering 28 * 29 * Switch the given interrupt to be level / edge triggered 30 * 31 * @param int_num legacy interrupt number (3-7, 9-15) 32 * @param is_level_triggered true for level triggered interrupt, false for 33 * edge triggered interrupt 34 */ 35 void configure_irq_trigger(int int_num, bool is_level_triggered); 36 37 void *x86_get_idt(void); 38 39 #endif 40