xref: /openbmc/linux/arch/csky/include/asm/pci.h (revision f619d235)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __ASM_CSKY_PCI_H
4 #define __ASM_CSKY_PCI_H
5 
6 #include <linux/types.h>
7 #include <linux/slab.h>
8 #include <linux/dma-mapping.h>
9 
10 #include <asm/io.h>
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 */
27 
28 #endif  /* __ASM_CSKY_PCI_H */
29