Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
markeins.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) NEC Electronics Corporation 2005-2006
3  *
4  * This file based on include/asm-mips/ddb5xxx/ddb5xxx.h
5  * Copyright 2001 MontaVista Software Inc.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */
21 
22 #ifndef MARKEINS_H
23 #define MARKEINS_H
24 
25 #define NUM_EMMA2RH_IRQ_SW 32
26 #define NUM_EMMA2RH_IRQ_GPIO 32
27 
28 #define EMMA2RH_SW_CASCADE (EMMA2RH_IRQ_INT(7) - EMMA2RH_IRQ_INT(0))
29 #define EMMA2RH_GPIO_CASCADE (EMMA2RH_IRQ_INT(46) - EMMA2RH_IRQ_INT(0))
30 
31 #define EMMA2RH_SW_IRQ_BASE (EMMA2RH_IRQ_BASE + NUM_EMMA2RH_IRQ)
32 #define EMMA2RH_GPIO_IRQ_BASE (EMMA2RH_SW_IRQ_BASE + NUM_EMMA2RH_IRQ_SW)
33 
34 #define EMMA2RH_SW_IRQ_INT(n) (EMMA2RH_SW_IRQ_BASE + (n))
35 
36 #define MARKEINS_PCI_IRQ_INTA EMMA2RH_GPIO_IRQ_BASE+15
37 #define MARKEINS_PCI_IRQ_INTB EMMA2RH_GPIO_IRQ_BASE+16
38 #define MARKEINS_PCI_IRQ_INTC EMMA2RH_GPIO_IRQ_BASE+17
39 #define MARKEINS_PCI_IRQ_INTD EMMA2RH_GPIO_IRQ_BASE+18
40 
41 #endif /* CONFIG_MARKEINS */