2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2004-2008 Cavium Networks
8 #ifndef __OCTEON_IRQ_H__
9 #define __OCTEON_IRQ_H__
11 #define NR_IRQS OCTEON_IRQ_LAST
12 #define MIPS_CPU_IRQ_BASE OCTEON_IRQ_SW0
15 /* 1 - 8 represent the 8 MIPS standard interrupt sources */
18 /* CIU0, CUI2, CIU4 are 3, 4, 5 */
22 /* sources in CIU_INTX_EN0 */
24 OCTEON_IRQ_WDOG0
= OCTEON_IRQ_WORKQ0
+ 64,
25 OCTEON_IRQ_MBOX0
= OCTEON_IRQ_WDOG0
+ 32,
45 #ifndef CONFIG_PCI_MSI
51 /* 256 - 511 represent the MSI interrupts 0-255 */
52 #define OCTEON_IRQ_MSI_BIT0 (256)
54 #define OCTEON_IRQ_MSI_LAST (OCTEON_IRQ_MSI_BIT0 + 255)
55 #define OCTEON_IRQ_LAST (OCTEON_IRQ_MSI_LAST + 1)