162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
362306a36Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
462306a36Sopenharmony_ci * for more details.
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * Copyright (C) 2000 Harald Koerfgen
762306a36Sopenharmony_ci */
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#ifndef __ASM_IP32_INTS_H
1062306a36Sopenharmony_ci#define __ASM_IP32_INTS_H
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#include <asm/irq.h>
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci/*
1562306a36Sopenharmony_ci * This list reflects the assignment of interrupt numbers to
1662306a36Sopenharmony_ci * interrupting events.	 Order is fairly irrelevant to handling
1762306a36Sopenharmony_ci * priority.  This differs from irix.
1862306a36Sopenharmony_ci */
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_cienum ip32_irq_no {
2162306a36Sopenharmony_ci	/*
2262306a36Sopenharmony_ci	 * CPU interrupts are 0 ... 7
2362306a36Sopenharmony_ci	 */
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci	CRIME_IRQ_BASE			= MIPS_CPU_IRQ_BASE + 8,
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci	/*
2862306a36Sopenharmony_ci	 * MACE
2962306a36Sopenharmony_ci	 */
3062306a36Sopenharmony_ci	MACE_VID_IN1_IRQ		= CRIME_IRQ_BASE,
3162306a36Sopenharmony_ci	MACE_VID_IN2_IRQ,
3262306a36Sopenharmony_ci	MACE_VID_OUT_IRQ,
3362306a36Sopenharmony_ci	MACE_ETHERNET_IRQ,
3462306a36Sopenharmony_ci	/* SUPERIO, MISC, and AUDIO are MACEISA */
3562306a36Sopenharmony_ci	__MACE_SUPERIO,
3662306a36Sopenharmony_ci	__MACE_MISC,
3762306a36Sopenharmony_ci	__MACE_AUDIO,
3862306a36Sopenharmony_ci	MACE_PCI_BRIDGE_IRQ,
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci	/*
4162306a36Sopenharmony_ci	 * MACEPCI
4262306a36Sopenharmony_ci	 */
4362306a36Sopenharmony_ci	MACEPCI_SCSI0_IRQ,
4462306a36Sopenharmony_ci	MACEPCI_SCSI1_IRQ,
4562306a36Sopenharmony_ci	MACEPCI_SLOT0_IRQ,
4662306a36Sopenharmony_ci	MACEPCI_SLOT1_IRQ,
4762306a36Sopenharmony_ci	MACEPCI_SLOT2_IRQ,
4862306a36Sopenharmony_ci	MACEPCI_SHARED0_IRQ,
4962306a36Sopenharmony_ci	MACEPCI_SHARED1_IRQ,
5062306a36Sopenharmony_ci	MACEPCI_SHARED2_IRQ,
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ci	/*
5362306a36Sopenharmony_ci	 * CRIME
5462306a36Sopenharmony_ci	 */
5562306a36Sopenharmony_ci	CRIME_GBE0_IRQ,
5662306a36Sopenharmony_ci	CRIME_GBE1_IRQ,
5762306a36Sopenharmony_ci	CRIME_GBE2_IRQ,
5862306a36Sopenharmony_ci	CRIME_GBE3_IRQ,
5962306a36Sopenharmony_ci	CRIME_CPUERR_IRQ,
6062306a36Sopenharmony_ci	CRIME_MEMERR_IRQ,
6162306a36Sopenharmony_ci	CRIME_RE_EMPTY_E_IRQ,
6262306a36Sopenharmony_ci	CRIME_RE_FULL_E_IRQ,
6362306a36Sopenharmony_ci	CRIME_RE_IDLE_E_IRQ,
6462306a36Sopenharmony_ci	CRIME_RE_EMPTY_L_IRQ,
6562306a36Sopenharmony_ci	CRIME_RE_FULL_L_IRQ,
6662306a36Sopenharmony_ci	CRIME_RE_IDLE_L_IRQ,
6762306a36Sopenharmony_ci	CRIME_SOFT0_IRQ,
6862306a36Sopenharmony_ci	CRIME_SOFT1_IRQ,
6962306a36Sopenharmony_ci	CRIME_SOFT2_IRQ,
7062306a36Sopenharmony_ci	CRIME_SYSCORERR_IRQ		= CRIME_SOFT2_IRQ,
7162306a36Sopenharmony_ci	CRIME_VICE_IRQ,
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci	/*
7462306a36Sopenharmony_ci	 * MACEISA
7562306a36Sopenharmony_ci	 */
7662306a36Sopenharmony_ci	MACEISA_AUDIO_SW_IRQ,
7762306a36Sopenharmony_ci	MACEISA_AUDIO_SC_IRQ,
7862306a36Sopenharmony_ci	MACEISA_AUDIO1_DMAT_IRQ,
7962306a36Sopenharmony_ci	MACEISA_AUDIO1_OF_IRQ,
8062306a36Sopenharmony_ci	MACEISA_AUDIO2_DMAT_IRQ,
8162306a36Sopenharmony_ci	MACEISA_AUDIO2_MERR_IRQ,
8262306a36Sopenharmony_ci	MACEISA_AUDIO3_DMAT_IRQ,
8362306a36Sopenharmony_ci	MACEISA_AUDIO3_MERR_IRQ,
8462306a36Sopenharmony_ci	MACEISA_RTC_IRQ,
8562306a36Sopenharmony_ci	MACEISA_KEYB_IRQ,
8662306a36Sopenharmony_ci	/* MACEISA_KEYB_POLL is not an IRQ */
8762306a36Sopenharmony_ci	__MACEISA_KEYB_POLL,
8862306a36Sopenharmony_ci	MACEISA_MOUSE_IRQ,
8962306a36Sopenharmony_ci	/* MACEISA_MOUSE_POLL is not an IRQ */
9062306a36Sopenharmony_ci	__MACEISA_MOUSE_POLL,
9162306a36Sopenharmony_ci	MACEISA_TIMER0_IRQ,
9262306a36Sopenharmony_ci	MACEISA_TIMER1_IRQ,
9362306a36Sopenharmony_ci	MACEISA_TIMER2_IRQ,
9462306a36Sopenharmony_ci	MACEISA_PARALLEL_IRQ,
9562306a36Sopenharmony_ci	MACEISA_PAR_CTXA_IRQ,
9662306a36Sopenharmony_ci	MACEISA_PAR_CTXB_IRQ,
9762306a36Sopenharmony_ci	MACEISA_PAR_MERR_IRQ,
9862306a36Sopenharmony_ci	MACEISA_SERIAL1_IRQ,
9962306a36Sopenharmony_ci	MACEISA_SERIAL1_TDMAT_IRQ,
10062306a36Sopenharmony_ci	MACEISA_SERIAL1_TDMAPR_IRQ,
10162306a36Sopenharmony_ci	MACEISA_SERIAL1_TDMAME_IRQ,
10262306a36Sopenharmony_ci	MACEISA_SERIAL1_RDMAT_IRQ,
10362306a36Sopenharmony_ci	MACEISA_SERIAL1_RDMAOR_IRQ,
10462306a36Sopenharmony_ci	MACEISA_SERIAL2_IRQ,
10562306a36Sopenharmony_ci	MACEISA_SERIAL2_TDMAT_IRQ,
10662306a36Sopenharmony_ci	MACEISA_SERIAL2_TDMAPR_IRQ,
10762306a36Sopenharmony_ci	MACEISA_SERIAL2_TDMAME_IRQ,
10862306a36Sopenharmony_ci	MACEISA_SERIAL2_RDMAT_IRQ,
10962306a36Sopenharmony_ci	MACEISA_SERIAL2_RDMAOR_IRQ,
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_ci	IP32_IRQ_MAX			= MACEISA_SERIAL2_RDMAOR_IRQ
11262306a36Sopenharmony_ci};
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_ci#endif /* __ASM_IP32_INTS_H */
115