1
2
3
4
5
6
7 #ifndef __ASM_MACH_LOONGSON64_PCI_H_
8 #define __ASM_MACH_LOONGSON64_PCI_H_
9
10 extern struct pci_ops loongson_pci_ops;
11
12
13 #define LOONGSON_PCI_IO_START 0x00004000UL
14
15 #ifdef CONFIG_CPU_SUPPORTS_ADDRWINCFG
16
17
18
19
20
21
22
23
24
25
26 #define LOONGSON_CPU_MEM_SRC 0x40000000ul
27 #define LOONGSON_PCI_MEM_DST LOONGSON_CPU_MEM_SRC
28
29 #define LOONGSON_PCI_MEM_START LOONGSON_PCI_MEM_DST
30 #define LOONGSON_PCI_MEM_END (0x80000000ul-1)
31
32 #define MMAP_CPUTOPCI_SIZE (LOONGSON_PCI_MEM_END - \
33 LOONGSON_PCI_MEM_START + 1)
34
35 #else
36
37
38 #ifdef CONFIG_CPU_LOONGSON3
39 #define LOONGSON_PCI_MEM_START 0x40000000UL
40 #define LOONGSON_PCI_MEM_END 0x7effffffUL
41 #else
42 #define LOONGSON_PCI_MEM_START LOONGSON_PCILO1_BASE
43 #define LOONGSON_PCI_MEM_END (LOONGSON_PCILO1_BASE + 0x04000000 * 2)
44 #endif
45
46 #define LOONGSON_PCI_IO_START 0x00004000UL
47
48 #endif
49
50 #endif