pci_64.h 687 B

1234567891011121314151617181920212223242526272829
  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. extern void dma32_reserve_bootmem(void);
  21. #endif /* __KERNEL__ */
  22. #endif /* _ASM_X86_PCI_64_H */