leon_pci.h 473 B

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