pci_32.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __SPARC_PCI_H
  3. #define __SPARC_PCI_H
  4. #ifdef __KERNEL__
  5. #include <linux/dma-mapping.h>
  6. /* Can be used to override the logic in pci_scan_bus for skipping
  7. * already-configured bus numbers - to be used for buggy BIOSes
  8. * or architectures with incomplete PCI setup by the loader.
  9. */
  10. #define pcibios_assign_all_busses() 0
  11. #define PCIBIOS_MIN_IO 0UL
  12. #define PCIBIOS_MIN_MEM 0UL
  13. #define PCI_IRQ_NONE 0xffffffff
  14. #endif /* __KERNEL__ */
  15. #ifndef CONFIG_LEON_PCI
  16. /* generic pci stuff */
  17. #include <asm-generic/pci.h>
  18. #else
  19. /*
  20. * On LEON PCI Memory space is mapped 1:1 with physical address space.
  21. *
  22. * I/O space is located at low 64Kbytes in PCI I/O space. The I/O addresses
  23. * are converted into CPU addresses to virtual addresses that are mapped with
  24. * MMU to the PCI Host PCI I/O space window which are translated to the low
  25. * 64Kbytes by the Host controller.
  26. */
  27. static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
  28. {
  29. return PCI_IRQ_NONE;
  30. }
  31. #endif
  32. #endif /* __SPARC_PCI_H */