xref: /openbmc/u-boot/arch/x86/include/asm/interrupt.h (revision f77dd6d7)
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 /* arch/x86/lib/interrupts.c */
20 void disable_irq(int irq);
21 void enable_irq(int irq);
22 
23 /* Architecture specific functions */
24 void mask_irq(int irq);
25 void unmask_irq(int irq);
26 void specific_eoi(int irq);
27 
28 extern char exception_stack[];
29 
30 /**
31  * configure_irq_trigger() - Configure IRQ triggering
32  *
33  * Switch the given interrupt to be level / edge triggered
34  *
35  * @param int_num legacy interrupt number (3-7, 9-15)
36  * @param is_level_triggered true for level triggered interrupt, false for
37  *	edge triggered interrupt
38  */
39 void configure_irq_trigger(int int_num, bool is_level_triggered);
40 
41 #endif
42