pci.h 819 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * linux/include/asm-generic/pci.h
  3. *
  4. * Copyright (C) 2003 Russell King
  5. */
  6. #ifndef _ASM_GENERIC_PCI_H
  7. #define _ASM_GENERIC_PCI_H
  8. /**
  9. * pcibios_resource_to_bus - convert resource to PCI bus address
  10. * @dev: device which owns this resource
  11. * @region: converted bus-centric region (start,end)
  12. * @res: resource to convert
  13. *
  14. * Convert a resource to a PCI device bus address or bus window.
  15. */
  16. static inline void
  17. pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region,
  18. struct resource *res)
  19. {
  20. region->start = res->start;
  21. region->end = res->end;
  22. }
  23. #define pcibios_scan_all_fns(a, b) 0
  24. #ifndef HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ
  25. static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
  26. {
  27. return channel ? 15 : 14;
  28. }
  29. #endif /* HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ */
  30. #endif