xref: /openbmc/linux/arch/um/include/asm/irq.h (revision e1cd7b80)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __UM_IRQ_H
3 #define __UM_IRQ_H
4 
5 #define TIMER_IRQ		0
6 #define UMN_IRQ			1
7 #define CONSOLE_IRQ		2
8 #define CONSOLE_WRITE_IRQ	3
9 #define UBD_IRQ			4
10 #define UM_ETH_IRQ		5
11 #define SSL_IRQ			6
12 #define SSL_WRITE_IRQ		7
13 #define ACCEPT_IRQ		8
14 #define MCONSOLE_IRQ		9
15 #define WINCH_IRQ		10
16 #define SIGIO_WRITE_IRQ 	11
17 #define TELNETD_IRQ 		12
18 #define XTERM_IRQ 		13
19 #define RANDOM_IRQ 		14
20 #define VIRTIO_IRQ		15
21 
22 #ifdef CONFIG_UML_NET_VECTOR
23 
24 #define VECTOR_BASE_IRQ		(VIRTIO_IRQ + 1)
25 #define VECTOR_IRQ_SPACE	8
26 
27 #define LAST_IRQ (VECTOR_IRQ_SPACE + VECTOR_BASE_IRQ - 1)
28 
29 #else
30 
31 #define LAST_IRQ VIRTIO_IRQ
32 
33 #endif
34 
35 #define NR_IRQS (LAST_IRQ + 1)
36 
37 #endif
38