Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / mips / include / asm / emma / markeins.h
blobe55a67477820ec0ead971ca2da88253f26bed968
1 /*
2 * Copyright (C) NEC Electronics Corporation 2005-2006
4 * This file based on include/asm-mips/ddb5xxx/ddb5xxx.h
5 * Copyright 2001 MontaVista Software Inc.
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.
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.
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
22 #ifndef MARKEINS_H
23 #define MARKEINS_H
25 #define NUM_EMMA2RH_IRQ_SW 32
26 #define NUM_EMMA2RH_IRQ_GPIO 32
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))
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)
34 #define EMMA2RH_SW_IRQ_INT(n) (EMMA2RH_SW_IRQ_BASE + (n))
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
41 #endif /* CONFIG_MARKEINS */