18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_PCI_H 38c2ecf20Sopenharmony_ci#define __ASM_PCI_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <linux/types.h> 68c2ecf20Sopenharmony_ci#include <linux/slab.h> 78c2ecf20Sopenharmony_ci#include <linux/dma-mapping.h> 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <asm/io.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define PCIBIOS_MIN_IO 0x1000 128c2ecf20Sopenharmony_ci#define PCIBIOS_MIN_MEM 0 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* 158c2ecf20Sopenharmony_ci * Set to 1 if the kernel should re-assign all PCI bus numbers 168c2ecf20Sopenharmony_ci */ 178c2ecf20Sopenharmony_ci#define pcibios_assign_all_busses() \ 188c2ecf20Sopenharmony_ci (pci_has_flag(PCI_REASSIGN_ALL_BUS)) 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#define arch_can_pci_mmap_wc() 1 218c2ecf20Sopenharmony_ci#define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciextern int isa_dma_bridge_buggy; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#ifdef CONFIG_PCI 268c2ecf20Sopenharmony_cistatic inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) 278c2ecf20Sopenharmony_ci{ 288c2ecf20Sopenharmony_ci /* no legacy IRQ on arm64 */ 298c2ecf20Sopenharmony_ci return -ENODEV; 308c2ecf20Sopenharmony_ci} 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_cistatic inline int pci_proc_domain(struct pci_bus *bus) 338c2ecf20Sopenharmony_ci{ 348c2ecf20Sopenharmony_ci return 1; 358c2ecf20Sopenharmony_ci} 368c2ecf20Sopenharmony_ci#endif /* CONFIG_PCI */ 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#endif /* __ASM_PCI_H */ 39