imx6: add support for gw5400-a
[openwrt.git] / target / linux / imx6 / files-3.10 / arch / arm / mach-imx / msi.h
1 /*
2  * Copyright (C) 2013 Boundary Devices, Inc. All Rights Reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18
19 void imx_pcie_enable_irq(unsigned pos, int set);
20 void imx_pcie_mask_irq(unsigned pos, int set);
21 unsigned imx_pcie_msi_pending(unsigned index);
22
23 #define MSI_MATCH_ADDR  0x10000050
24 #define MXC_INT_PCIE_0      152
25 #define MXC_INT_PCIE_1      153
26 #define MXC_INT_PCIE_2      154
27 #define MXC_INT_PCIE_3      155
28
29 void imx_msi_init(void);