1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 #ifndef __ASM_UM_PCI_H 3 #define __ASM_UM_PCI_H 4 #include <linux/types.h> 5 #include <asm/io.h> 6 7 #define PCIBIOS_MIN_IO 0 8 #define PCIBIOS_MIN_MEM 0 9 10 #define pcibios_assign_all_busses() 1 11 12 extern int isa_dma_bridge_buggy; 13 14 #ifdef CONFIG_PCI 15 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) 16 { 17 /* no legacy IRQs */ 18 return -ENODEV; 19 } 20 #endif 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 */ 29 30 #ifdef CONFIG_PCI_MSI_IRQ_DOMAIN 31 /* 32 * This is a bit of an annoying hack, and it assumes we only have 33 * the virt-pci (if anything). Which is true, but still. 34 */ 35 void *pci_root_bus_fwnode(struct pci_bus *bus); 36 #define pci_root_bus_fwnode pci_root_bus_fwnode 37 #endif 38 39 #endif /* __ASM_UM_PCI_H */ 40