pci_64.h 645 B

12345678910111213141516171819202122232425262728
  1. #ifndef _ASM_X86_PCI_64_H
  2. #define _ASM_X86_PCI_64_H
  3. #ifdef __KERNEL__
  4. #ifdef CONFIG_CALGARY_IOMMU
  5. static inline void *pci_iommu(struct pci_bus *bus)
  6. {
  7. struct pci_sysdata *sd = bus->sysdata;
  8. return sd->iommu;
  9. }
  10. static inline void set_pci_iommu(struct pci_bus *bus, void *val)
  11. {
  12. struct pci_sysdata *sd = bus->sysdata;
  13. sd->iommu = val;
  14. }
  15. #endif /* CONFIG_CALGARY_IOMMU */
  16. extern int (*pci_config_read)(int seg, int bus, int dev, int fn,
  17. int reg, int len, u32 *value);
  18. extern int (*pci_config_write)(int seg, int bus, int dev, int fn,
  19. int reg, int len, u32 value);
  20. #endif /* __KERNEL__ */
  21. #endif /* _ASM_X86_PCI_64_H */