xref: /openbmc/linux/arch/csky/include/asm/pci.h (revision 72ce7780)
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 extern int isa_dma_bridge_buggy;
19 
20 #ifdef CONFIG_PCI
21 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
22 {
23 	/* no legacy IRQ on csky */
24 	return -ENODEV;
25 }
26 
27 static inline int pci_proc_domain(struct pci_bus *bus)
28 {
29 	/* always show the domain in /proc */
30 	return 1;
31 }
32 #endif  /* CONFIG_PCI */
33 
34 #endif  /* __ASM_CSKY_PCI_H */
35