xref: /kernel/linux/linux-5.10/arch/um/include/asm/irq.h (revision 8c2ecf20)
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __UM_IRQ_H
38c2ecf20Sopenharmony_ci#define __UM_IRQ_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#define TIMER_IRQ		0
68c2ecf20Sopenharmony_ci#define UMN_IRQ			1
78c2ecf20Sopenharmony_ci#define CONSOLE_IRQ		2
88c2ecf20Sopenharmony_ci#define CONSOLE_WRITE_IRQ	3
98c2ecf20Sopenharmony_ci#define UBD_IRQ			4
108c2ecf20Sopenharmony_ci#define UM_ETH_IRQ		5
118c2ecf20Sopenharmony_ci#define SSL_IRQ			6
128c2ecf20Sopenharmony_ci#define SSL_WRITE_IRQ		7
138c2ecf20Sopenharmony_ci#define ACCEPT_IRQ		8
148c2ecf20Sopenharmony_ci#define MCONSOLE_IRQ		9
158c2ecf20Sopenharmony_ci#define WINCH_IRQ		10
168c2ecf20Sopenharmony_ci#define SIGIO_WRITE_IRQ 	11
178c2ecf20Sopenharmony_ci#define TELNETD_IRQ 		12
188c2ecf20Sopenharmony_ci#define XTERM_IRQ 		13
198c2ecf20Sopenharmony_ci#define RANDOM_IRQ 		14
208c2ecf20Sopenharmony_ci#define VIRTIO_IRQ		15
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#ifdef CONFIG_UML_NET_VECTOR
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#define VECTOR_BASE_IRQ		(VIRTIO_IRQ + 1)
258c2ecf20Sopenharmony_ci#define VECTOR_IRQ_SPACE	8
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#define LAST_IRQ (VECTOR_IRQ_SPACE + VECTOR_BASE_IRQ - 1)
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#else
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#define LAST_IRQ VIRTIO_IRQ
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci#endif
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#define NR_IRQS (LAST_IRQ + 1)
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#endif
38