18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Author:	Rory Bolt <rorybolt@pacbell.net>
48c2ecf20Sopenharmony_ci * Copyright:	(C) 2002 Rory Bolt
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef __IOP32X_IRQS_H
88c2ecf20Sopenharmony_ci#define __IOP32X_IRQS_H
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci/* Interrupts in Linux start at 1, hardware starts at 0 */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define IOP_IRQ(x) ((x) + 1)
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci/*
158c2ecf20Sopenharmony_ci * IOP80321 chipset interrupts
168c2ecf20Sopenharmony_ci */
178c2ecf20Sopenharmony_ci#define IRQ_IOP32X_DMA0_EOT	IOP_IRQ(0)
188c2ecf20Sopenharmony_ci#define IRQ_IOP32X_DMA0_EOC	IOP_IRQ(1)
198c2ecf20Sopenharmony_ci#define IRQ_IOP32X_DMA1_EOT	IOP_IRQ(2)
208c2ecf20Sopenharmony_ci#define IRQ_IOP32X_DMA1_EOC	IOP_IRQ(3)
218c2ecf20Sopenharmony_ci#define IRQ_IOP32X_AA_EOT	IOP_IRQ(6)
228c2ecf20Sopenharmony_ci#define IRQ_IOP32X_AA_EOC	IOP_IRQ(7)
238c2ecf20Sopenharmony_ci#define IRQ_IOP32X_CORE_PMON	IOP_IRQ(8)
248c2ecf20Sopenharmony_ci#define IRQ_IOP32X_TIMER0	IOP_IRQ(9)
258c2ecf20Sopenharmony_ci#define IRQ_IOP32X_TIMER1	IOP_IRQ(10)
268c2ecf20Sopenharmony_ci#define IRQ_IOP32X_I2C_0	IOP_IRQ(11)
278c2ecf20Sopenharmony_ci#define IRQ_IOP32X_I2C_1	IOP_IRQ(12)
288c2ecf20Sopenharmony_ci#define IRQ_IOP32X_MESSAGING	IOP_IRQ(13)
298c2ecf20Sopenharmony_ci#define IRQ_IOP32X_ATU_BIST	IOP_IRQ(14)
308c2ecf20Sopenharmony_ci#define IRQ_IOP32X_PERFMON	IOP_IRQ(15)
318c2ecf20Sopenharmony_ci#define IRQ_IOP32X_CORE_PMU	IOP_IRQ(16)
328c2ecf20Sopenharmony_ci#define IRQ_IOP32X_BIU_ERR	IOP_IRQ(17)
338c2ecf20Sopenharmony_ci#define IRQ_IOP32X_ATU_ERR	IOP_IRQ(18)
348c2ecf20Sopenharmony_ci#define IRQ_IOP32X_MCU_ERR	IOP_IRQ(19)
358c2ecf20Sopenharmony_ci#define IRQ_IOP32X_DMA0_ERR	IOP_IRQ(20)
368c2ecf20Sopenharmony_ci#define IRQ_IOP32X_DMA1_ERR	IOP_IRQ(21)
378c2ecf20Sopenharmony_ci#define IRQ_IOP32X_AA_ERR	IOP_IRQ(23)
388c2ecf20Sopenharmony_ci#define IRQ_IOP32X_MSG_ERR	IOP_IRQ(24)
398c2ecf20Sopenharmony_ci#define IRQ_IOP32X_SSP		IOP_IRQ(25)
408c2ecf20Sopenharmony_ci#define IRQ_IOP32X_XINT0	IOP_IRQ(27)
418c2ecf20Sopenharmony_ci#define IRQ_IOP32X_XINT1	IOP_IRQ(28)
428c2ecf20Sopenharmony_ci#define IRQ_IOP32X_XINT2	IOP_IRQ(29)
438c2ecf20Sopenharmony_ci#define IRQ_IOP32X_XINT3	IOP_IRQ(30)
448c2ecf20Sopenharmony_ci#define IRQ_IOP32X_HPI		IOP_IRQ(31)
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci#endif
47