18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci#ifndef __ASM_CSKY_PCI_H 48c2ecf20Sopenharmony_ci#define __ASM_CSKY_PCI_H 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include <linux/types.h> 78c2ecf20Sopenharmony_ci#include <linux/slab.h> 88c2ecf20Sopenharmony_ci#include <linux/dma-mapping.h> 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#include <asm/io.h> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define PCIBIOS_MIN_IO 0 138c2ecf20Sopenharmony_ci#define PCIBIOS_MIN_MEM 0 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci/* C-SKY shim does not initialize PCI bus */ 168c2ecf20Sopenharmony_ci#define pcibios_assign_all_busses() 1 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciextern int isa_dma_bridge_buggy; 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#ifdef CONFIG_PCI 218c2ecf20Sopenharmony_cistatic inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) 228c2ecf20Sopenharmony_ci{ 238c2ecf20Sopenharmony_ci /* no legacy IRQ on csky */ 248c2ecf20Sopenharmony_ci return -ENODEV; 258c2ecf20Sopenharmony_ci} 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_cistatic inline int pci_proc_domain(struct pci_bus *bus) 288c2ecf20Sopenharmony_ci{ 298c2ecf20Sopenharmony_ci /* always show the domain in /proc */ 308c2ecf20Sopenharmony_ci return 1; 318c2ecf20Sopenharmony_ci} 328c2ecf20Sopenharmony_ci#endif /* CONFIG_PCI */ 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#endif /* __ASM_CSKY_PCI_H */ 35