File tree Expand file tree Collapse file tree 5 files changed +40
-54
lines changed Expand file tree Collapse file tree 5 files changed +40
-54
lines changed Original file line number Diff line number Diff line change 9
9
#include <asm/io.h>
10
10
11
11
#define PCIBIOS_MIN_IO 0x1000
12
- #define PCIBIOS_MIN_MEM 0
13
12
14
13
/*
15
14
* Set to 1 if the kernel should re-assign all PCI bus numbers
18
17
(pci_has_flag(PCI_REASSIGN_ALL_BUS))
19
18
20
19
#define arch_can_pci_mmap_wc () 1
21
- #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
22
20
23
- #ifdef CONFIG_PCI
24
- static inline int pci_proc_domain (struct pci_bus * bus )
25
- {
26
- return 1 ;
27
- }
28
- #endif /* CONFIG_PCI */
21
+ /* Generic PCI */
22
+ #include <asm-generic/pci.h>
29
23
30
24
#endif /* __ASM_PCI_H */
Original file line number Diff line number Diff line change 9
9
10
10
#include <asm/io.h>
11
11
12
- #define PCIBIOS_MIN_IO 0
13
- #define PCIBIOS_MIN_MEM 0
14
-
15
- /* C-SKY shim does not initialize PCI bus */
16
- #define pcibios_assign_all_busses () 1
17
-
18
- #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
19
-
20
- #ifdef CONFIG_PCI
21
- static inline int pci_proc_domain (struct pci_bus * bus )
22
- {
23
- /* always show the domain in /proc */
24
- return 1 ;
25
- }
26
- #endif /* CONFIG_PCI */
12
+ /* Generic PCI */
13
+ #include <asm-generic/pci.h>
27
14
28
15
#endif /* __ASM_CSKY_PCI_H */
Original file line number Diff line number Diff line change 12
12
13
13
#include <asm/io.h>
14
14
15
- #define PCIBIOS_MIN_IO 0
16
- #define PCIBIOS_MIN_MEM 0
17
-
18
- /* RISC-V shim does not initialize PCI bus */
19
- #define pcibios_assign_all_busses () 1
20
-
21
- #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
22
-
23
- #ifdef CONFIG_PCI
24
- static inline int pci_proc_domain (struct pci_bus * bus )
25
- {
26
- /* always show the domain in /proc */
27
- return 1 ;
28
- }
29
-
30
- #ifdef CONFIG_NUMA
31
-
15
+ #if defined(CONFIG_PCI ) && defined(CONFIG_NUMA )
32
16
static inline int pcibus_to_node (struct pci_bus * bus )
33
17
{
34
18
return dev_to_node (& bus -> dev );
@@ -38,8 +22,9 @@ static inline int pcibus_to_node(struct pci_bus *bus)
38
22
cpu_all_mask : \
39
23
cpumask_of_node(pcibus_to_node(bus)))
40
24
#endif
41
- #endif /* CONFIG_NUMA */
25
+ #endif /* defined(CONFIG_PCI) && defined( CONFIG_NUMA) */
42
26
43
- #endif /* CONFIG_PCI */
27
+ /* Generic PCI */
28
+ #include <asm-generic/pci.h>
44
29
45
30
#endif /* _ASM_RISCV_PCI_H */
Original file line number Diff line number Diff line change 4
4
#include <linux/types.h>
5
5
#include <asm/io.h>
6
6
7
- #define PCIBIOS_MIN_IO 0
8
- #define PCIBIOS_MIN_MEM 0
9
-
10
- #define pcibios_assign_all_busses () 1
11
-
12
- #ifdef CONFIG_PCI_DOMAINS
13
- static inline int pci_proc_domain (struct pci_bus * bus )
14
- {
15
- /* always show the domain in /proc */
16
- return 1 ;
17
- }
18
- #endif /* CONFIG_PCI */
7
+ /* Generic PCI */
8
+ #include <asm-generic/pci.h>
19
9
20
10
#ifdef CONFIG_PCI_MSI_IRQ_DOMAIN
21
11
/*
Original file line number Diff line number Diff line change
1
+ /* SPDX-License-Identifier: GPL-2.0-only */
2
+
3
+ #ifndef __ASM_GENERIC_PCI_H
4
+ #define __ASM_GENERIC_PCI_H
5
+
6
+ #ifndef PCIBIOS_MIN_IO
7
+ #define PCIBIOS_MIN_IO 0
8
+ #endif
9
+
10
+ #ifndef PCIBIOS_MIN_MEM
11
+ #define PCIBIOS_MIN_MEM 0
12
+ #endif
13
+
14
+ #ifndef pcibios_assign_all_busses
15
+ /* For bootloaders that do not initialize the PCI bus */
16
+ #define pcibios_assign_all_busses () 1
17
+ #endif
18
+
19
+ /* Enable generic resource mapping code in drivers/pci/ */
20
+ #define ARCH_GENERIC_PCI_MMAP_RESOURCE
21
+
22
+ #ifdef CONFIG_PCI_DOMAINS
23
+ static inline int pci_proc_domain (struct pci_bus * bus )
24
+ {
25
+ /* always show the domain in /proc */
26
+ return 1 ;
27
+ }
28
+ #endif /* CONFIG_PCI_DOMAINS */
29
+
30
+ #endif /* __ASM_GENERIC_PCI_H */
You can’t perform that action at this time.
0 commit comments