18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * include/asm-mips/vr41xx/irq.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Interrupt numbers for NEC VR4100 series.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 1999 Michael Klar
88c2ecf20Sopenharmony_ci * Copyright (C) 2001, 2002 Paul Mundt
98c2ecf20Sopenharmony_ci * Copyright (C) 2002 MontaVista Software, Inc.
108c2ecf20Sopenharmony_ci * Copyright (C) 2002 TimeSys Corp.
118c2ecf20Sopenharmony_ci * Copyright (C) 2003-2006 Yoichi Yuasa <yuasa@linux-mips.org>
128c2ecf20Sopenharmony_ci */
138c2ecf20Sopenharmony_ci#ifndef __NEC_VR41XX_IRQ_H
148c2ecf20Sopenharmony_ci#define __NEC_VR41XX_IRQ_H
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci/*
178c2ecf20Sopenharmony_ci * CPU core Interrupt Numbers
188c2ecf20Sopenharmony_ci */
198c2ecf20Sopenharmony_ci#define MIPS_CPU_IRQ_BASE	0
208c2ecf20Sopenharmony_ci#define MIPS_CPU_IRQ(x)		(MIPS_CPU_IRQ_BASE + (x))
218c2ecf20Sopenharmony_ci#define MIPS_SOFTINT0_IRQ	MIPS_CPU_IRQ(0)
228c2ecf20Sopenharmony_ci#define MIPS_SOFTINT1_IRQ	MIPS_CPU_IRQ(1)
238c2ecf20Sopenharmony_ci#define INT0_IRQ		MIPS_CPU_IRQ(2)
248c2ecf20Sopenharmony_ci#define INT1_IRQ		MIPS_CPU_IRQ(3)
258c2ecf20Sopenharmony_ci#define INT2_IRQ		MIPS_CPU_IRQ(4)
268c2ecf20Sopenharmony_ci#define INT3_IRQ		MIPS_CPU_IRQ(5)
278c2ecf20Sopenharmony_ci#define INT4_IRQ		MIPS_CPU_IRQ(6)
288c2ecf20Sopenharmony_ci#define TIMER_IRQ		MIPS_CPU_IRQ(7)
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci/*
318c2ecf20Sopenharmony_ci * SYINT1 Interrupt Numbers
328c2ecf20Sopenharmony_ci */
338c2ecf20Sopenharmony_ci#define SYSINT1_IRQ_BASE	8
348c2ecf20Sopenharmony_ci#define SYSINT1_IRQ(x)		(SYSINT1_IRQ_BASE + (x))
358c2ecf20Sopenharmony_ci#define BATTRY_IRQ		SYSINT1_IRQ(0)
368c2ecf20Sopenharmony_ci#define POWER_IRQ		SYSINT1_IRQ(1)
378c2ecf20Sopenharmony_ci#define RTCLONG1_IRQ		SYSINT1_IRQ(2)
388c2ecf20Sopenharmony_ci#define ELAPSEDTIME_IRQ		SYSINT1_IRQ(3)
398c2ecf20Sopenharmony_ci/* RFU */
408c2ecf20Sopenharmony_ci#define PIU_IRQ			SYSINT1_IRQ(5)
418c2ecf20Sopenharmony_ci#define AIU_IRQ			SYSINT1_IRQ(6)
428c2ecf20Sopenharmony_ci#define KIU_IRQ			SYSINT1_IRQ(7)
438c2ecf20Sopenharmony_ci#define GIUINT_IRQ		SYSINT1_IRQ(8)
448c2ecf20Sopenharmony_ci#define SIU_IRQ			SYSINT1_IRQ(9)
458c2ecf20Sopenharmony_ci#define BUSERR_IRQ		SYSINT1_IRQ(10)
468c2ecf20Sopenharmony_ci#define SOFTINT_IRQ		SYSINT1_IRQ(11)
478c2ecf20Sopenharmony_ci#define CLKRUN_IRQ		SYSINT1_IRQ(12)
488c2ecf20Sopenharmony_ci#define DOZEPIU_IRQ		SYSINT1_IRQ(13)
498c2ecf20Sopenharmony_ci#define SYSINT1_IRQ_LAST	DOZEPIU_IRQ
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci/*
528c2ecf20Sopenharmony_ci * SYSINT2 Interrupt Numbers
538c2ecf20Sopenharmony_ci */
548c2ecf20Sopenharmony_ci#define SYSINT2_IRQ_BASE	24
558c2ecf20Sopenharmony_ci#define SYSINT2_IRQ(x)		(SYSINT2_IRQ_BASE + (x))
568c2ecf20Sopenharmony_ci#define RTCLONG2_IRQ		SYSINT2_IRQ(0)
578c2ecf20Sopenharmony_ci#define LED_IRQ			SYSINT2_IRQ(1)
588c2ecf20Sopenharmony_ci#define HSP_IRQ			SYSINT2_IRQ(2)
598c2ecf20Sopenharmony_ci#define TCLOCK_IRQ		SYSINT2_IRQ(3)
608c2ecf20Sopenharmony_ci#define FIR_IRQ			SYSINT2_IRQ(4)
618c2ecf20Sopenharmony_ci#define CEU_IRQ			SYSINT2_IRQ(4)	/* same number as FIR_IRQ */
628c2ecf20Sopenharmony_ci#define DSIU_IRQ		SYSINT2_IRQ(5)
638c2ecf20Sopenharmony_ci#define PCI_IRQ			SYSINT2_IRQ(6)
648c2ecf20Sopenharmony_ci#define SCU_IRQ			SYSINT2_IRQ(7)
658c2ecf20Sopenharmony_ci#define CSI_IRQ			SYSINT2_IRQ(8)
668c2ecf20Sopenharmony_ci#define BCU_IRQ			SYSINT2_IRQ(9)
678c2ecf20Sopenharmony_ci#define ETHERNET_IRQ		SYSINT2_IRQ(10)
688c2ecf20Sopenharmony_ci#define SYSINT2_IRQ_LAST	ETHERNET_IRQ
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci/*
718c2ecf20Sopenharmony_ci * GIU Interrupt Numbers
728c2ecf20Sopenharmony_ci */
738c2ecf20Sopenharmony_ci#define GIU_IRQ_BASE		40
748c2ecf20Sopenharmony_ci#define GIU_IRQ(x)		(GIU_IRQ_BASE + (x))	/* IRQ 40-71 */
758c2ecf20Sopenharmony_ci#define GIU_IRQ_LAST		GIU_IRQ(31)
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ci/*
788c2ecf20Sopenharmony_ci * VRC4173 Interrupt Numbers
798c2ecf20Sopenharmony_ci */
808c2ecf20Sopenharmony_ci#define VRC4173_IRQ_BASE	72
818c2ecf20Sopenharmony_ci#define VRC4173_IRQ(x)		(VRC4173_IRQ_BASE + (x))
828c2ecf20Sopenharmony_ci#define VRC4173_USB_IRQ		VRC4173_IRQ(0)
838c2ecf20Sopenharmony_ci#define VRC4173_PCMCIA2_IRQ	VRC4173_IRQ(1)
848c2ecf20Sopenharmony_ci#define VRC4173_PCMCIA1_IRQ	VRC4173_IRQ(2)
858c2ecf20Sopenharmony_ci#define VRC4173_PS2CH2_IRQ	VRC4173_IRQ(3)
868c2ecf20Sopenharmony_ci#define VRC4173_PS2CH1_IRQ	VRC4173_IRQ(4)
878c2ecf20Sopenharmony_ci#define VRC4173_PIU_IRQ		VRC4173_IRQ(5)
888c2ecf20Sopenharmony_ci#define VRC4173_AIU_IRQ		VRC4173_IRQ(6)
898c2ecf20Sopenharmony_ci#define VRC4173_KIU_IRQ		VRC4173_IRQ(7)
908c2ecf20Sopenharmony_ci#define VRC4173_GIU_IRQ		VRC4173_IRQ(8)
918c2ecf20Sopenharmony_ci#define VRC4173_AC97_IRQ	VRC4173_IRQ(9)
928c2ecf20Sopenharmony_ci#define VRC4173_AC97INT1_IRQ	VRC4173_IRQ(10)
938c2ecf20Sopenharmony_ci/* RFU */
948c2ecf20Sopenharmony_ci#define VRC4173_DOZEPIU_IRQ	VRC4173_IRQ(13)
958c2ecf20Sopenharmony_ci#define VRC4173_IRQ_LAST	VRC4173_DOZEPIU_IRQ
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci#endif /* __NEC_VR41XX_IRQ_H */
98