162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * Cobalt IRQ definitions.
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
562306a36Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
662306a36Sopenharmony_ci * for more details.
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci * Copyright (C) 1997 Cobalt Microserver
962306a36Sopenharmony_ci * Copyright (C) 1997, 2003 Ralf Baechle
1062306a36Sopenharmony_ci * Copyright (C) 2001-2003 Liam Davies (ldavies@agile.tv)
1162306a36Sopenharmony_ci * Copyright (C) 2007 Yoichi Yuasa <yuasa@linux-mips.org>
1262306a36Sopenharmony_ci */
1362306a36Sopenharmony_ci#ifndef _ASM_COBALT_IRQ_H
1462306a36Sopenharmony_ci#define _ASM_COBALT_IRQ_H
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci/*
1762306a36Sopenharmony_ci * i8259 interrupts used on Cobalt:
1862306a36Sopenharmony_ci *
1962306a36Sopenharmony_ci *	8  - RTC
2062306a36Sopenharmony_ci *	9  - PCI slot
2162306a36Sopenharmony_ci *	14 - IDE0
2262306a36Sopenharmony_ci *	15 - IDE1(no connector on board)
2362306a36Sopenharmony_ci */
2462306a36Sopenharmony_ci#define I8259A_IRQ_BASE			0
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci#define PCISLOT_IRQ			(I8259A_IRQ_BASE + 9)
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci/*
2962306a36Sopenharmony_ci * CPU interrupts used on Cobalt:
3062306a36Sopenharmony_ci *
3162306a36Sopenharmony_ci *	0 - Software interrupt 0 (unused)
3262306a36Sopenharmony_ci *	1 - Software interrupt 0 (unused)
3362306a36Sopenharmony_ci *	2 - cascade GT64111
3462306a36Sopenharmony_ci *	3 - ethernet or SCSI host controller
3562306a36Sopenharmony_ci *	4 - ethernet
3662306a36Sopenharmony_ci *	5 - 16550 UART
3762306a36Sopenharmony_ci *	6 - cascade i8259
3862306a36Sopenharmony_ci *	7 - CP0 counter
3962306a36Sopenharmony_ci */
4062306a36Sopenharmony_ci#define MIPS_CPU_IRQ_BASE		16
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci#define GT641XX_CASCADE_IRQ		(MIPS_CPU_IRQ_BASE + 2)
4362306a36Sopenharmony_ci#define RAQ2_SCSI_IRQ			(MIPS_CPU_IRQ_BASE + 3)
4462306a36Sopenharmony_ci#define ETH0_IRQ			(MIPS_CPU_IRQ_BASE + 3)
4562306a36Sopenharmony_ci#define QUBE1_ETH0_IRQ			(MIPS_CPU_IRQ_BASE + 4)
4662306a36Sopenharmony_ci#define ETH1_IRQ			(MIPS_CPU_IRQ_BASE + 4)
4762306a36Sopenharmony_ci#define SERIAL_IRQ			(MIPS_CPU_IRQ_BASE + 5)
4862306a36Sopenharmony_ci#define SCSI_IRQ			(MIPS_CPU_IRQ_BASE + 5)
4962306a36Sopenharmony_ci#define I8259_CASCADE_IRQ		(MIPS_CPU_IRQ_BASE + 6)
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci#define GT641XX_IRQ_BASE		24
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci#include <asm/irq_gt641xx.h>
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci#define NR_IRQS					(GT641XX_PCI_INT3_IRQ + 1)
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ci#endif /* _ASM_COBALT_IRQ_H */
58