leon_pci.h 512 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * asm/leon_pci.h
  4. *
  5. * Copyright (C) 2011 Aeroflex Gaisler AB, Daniel Hellstrom
  6. */
  7. #ifndef _ASM_LEON_PCI_H_
  8. #define _ASM_LEON_PCI_H_
  9. /* PCI related definitions */
  10. struct leon_pci_info {
  11. struct pci_ops *ops;
  12. struct resource io_space;
  13. struct resource mem_space;
  14. struct resource busn;
  15. int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin);
  16. };
  17. void leon_pci_init(struct platform_device *ofdev,
  18. struct leon_pci_info *info);
  19. #endif /* _ASM_LEON_PCI_H_ */