Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
irq.h
Go to the documentation of this file.
1 /*
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
4  * for more details.
5  *
6  * Copyright (C) 2004-2008 Cavium Networks
7  */
8 #ifndef __OCTEON_IRQ_H__
9 #define __OCTEON_IRQ_H__
10 
11 #define NR_IRQS OCTEON_IRQ_LAST
12 #define MIPS_CPU_IRQ_BASE OCTEON_IRQ_SW0
13 
14 enum octeon_irq {
15 /* 1 - 8 represent the 8 MIPS standard interrupt sources */
18 /* CIU0, CUI2, CIU4 are 3, 4, 5 */
22 /* sources in CIU_INTX_EN0 */
37 
46 #ifndef CONFIG_PCI_MSI
48 #endif
49 };
50 
51 #ifdef CONFIG_PCI_MSI
52 /* 256 - 511 represent the MSI interrupts 0-255 */
53 #define OCTEON_IRQ_MSI_BIT0 (256)
54 
55 #define OCTEON_IRQ_MSI_LAST (OCTEON_IRQ_MSI_BIT0 + 255)
56 #define OCTEON_IRQ_LAST (OCTEON_IRQ_MSI_LAST + 1)
57 #endif
58 
59 #endif