Zhang Le | 3a63913 | 2008-10-27 23:33:24 +0000 | [diff] [blame] | 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 | |
Wu Zhangjin | 8e49711 | 2009-07-02 23:26:08 +0800 | [diff] [blame] | 22 | #ifndef __ASM_MACH_LOONGSON_PCI_H_ |
| 23 | #define __ASM_MACH_LOONGSON_PCI_H_ |
Wu Zhangjin | 5e983ff | 2009-07-02 23:23:03 +0800 | [diff] [blame] | 24 | |
| 25 | extern struct pci_ops bonito64_pci_ops; |
Zhang Le | 3a63913 | 2008-10-27 23:33:24 +0000 | [diff] [blame] | 26 | |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame^] | 27 | #ifdef CONFIG_LEMOTE_FULOONG2E |
| 28 | |
| 29 | /* this pci memory space is mapped by pcimap in pci.c */ |
| 30 | #define LOONGSON_PCI_MEM_START BONITO_PCILO1_BASE |
| 31 | #define LOONGSON_PCI_MEM_END (BONITO_PCILO1_BASE + 0x04000000 * 2) |
| 32 | /* this is an offset from mips_io_port_base */ |
| 33 | #define LOONGSON_PCI_IO_START 0x00004000UL |
| 34 | |
| 35 | #endif |
Zhang Le | 3a63913 | 2008-10-27 23:33:24 +0000 | [diff] [blame] | 36 | |
Wu Zhangjin | 8e49711 | 2009-07-02 23:26:08 +0800 | [diff] [blame] | 37 | #endif /* !__ASM_MACH_LOONGSON_PCI_H_ */ |