pci.h 863 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Atheros 724x PCI support
  3. *
  4. * Copyright (C) 2011 René Bolldorf <xsecute@googlemail.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License version 2 as published
  8. * by the Free Software Foundation.
  9. */
  10. #ifndef _ATH79_PCI_H
  11. #define _ATH79_PCI_H
  12. struct ath79_pci_irq {
  13. u8 slot;
  14. u8 pin;
  15. int irq;
  16. };
  17. #ifdef CONFIG_PCI
  18. void ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map);
  19. void ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *dev));
  20. int ath79_register_pci(void);
  21. #else
  22. static inline void
  23. ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map) {}
  24. static inline void
  25. ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *)) {}
  26. static inline int ath79_register_pci(void) { return 0; }
  27. #endif
  28. #endif /* _ATH79_PCI_H */