irq.h (09ccf0364ca3e94aba4093707ef433ea8014e2a4) irq.h (5d38f324993f49d1226ec81efe045834b46cd85a)
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
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
20
21#ifdef CONFIG_UML_NET_VECTOR
22
21
22#ifdef CONFIG_UML_NET_VECTOR
23
23#define VECTOR_BASE_IRQ 15
24#define VECTOR_BASE_IRQ (VIRTIO_IRQ + 1)
24#define VECTOR_IRQ_SPACE 8
25
26#define LAST_IRQ (VECTOR_IRQ_SPACE + VECTOR_BASE_IRQ - 1)
27
28#else
29
25#define VECTOR_IRQ_SPACE 8
26
27#define LAST_IRQ (VECTOR_IRQ_SPACE + VECTOR_BASE_IRQ - 1)
28
29#else
30
30#define LAST_IRQ RANDOM_IRQ
31#define LAST_IRQ VIRTIO_IRQ
31
32#endif
33
34#define NR_IRQS (LAST_IRQ + 1)
35
36#endif
32
33#endif
34
35#define NR_IRQS (LAST_IRQ + 1)
36
37#endif