576487c004705c367b78e5496622a308160a941b
[firefly-linux-kernel-4.4.55.git] / arch / mips / include / asm / mach-loongson / pci.h
1 /*
2  * Copyright (c) 2008 Zhang Le <r0bertz@gentoo.org>
3  *
4  * This program is free software; you can redistribute it
5  * and/or modify it under the terms of the GNU General
6  * Public License as published by the Free Software
7  * Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be
11  * useful, but WITHOUT ANY WARRANTY; without even the implied
12  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  * PURPOSE.  See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU General Public
17  * License along with this program; if not, write to the Free
18  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA
19  * 02139, USA.
20  */
21
22 #ifndef __ASM_MACH_LOONGSON_PCI_H_
23 #define __ASM_MACH_LOONGSON_PCI_H_
24
25 extern struct pci_ops loongson_pci_ops;
26
27 #ifdef CONFIG_LEMOTE_FULOONG2E
28
29 /* this pci memory space is mapped by pcimap in pci.c */
30 #define LOONGSON_PCI_MEM_START  LOONGSON_PCILO1_BASE
31 #define LOONGSON_PCI_MEM_END    (LOONGSON_PCILO1_BASE + 0x04000000 * 2)
32 /* this is an offset from mips_io_port_base */
33 #define LOONGSON_PCI_IO_START   0x00004000UL
34
35 #endif
36
37 #endif /* !__ASM_MACH_LOONGSON_PCI_H_ */