/arch/x86/include/asm/pci_64.h
C++ Header | 27 lines | 21 code | 6 blank | 0 comment | 0 complexity | 38cf1d9335ab2527d0ef653f803bcd13 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
1#ifndef _ASM_X86_PCI_64_H 2#define _ASM_X86_PCI_64_H 3 4#ifdef __KERNEL__ 5 6#ifdef CONFIG_CALGARY_IOMMU 7static inline void *pci_iommu(struct pci_bus *bus) 8{ 9 struct pci_sysdata *sd = bus->sysdata; 10 return sd->iommu; 11} 12 13static inline void set_pci_iommu(struct pci_bus *bus, void *val) 14{ 15 struct pci_sysdata *sd = bus->sysdata; 16 sd->iommu = val; 17} 18#endif /* CONFIG_CALGARY_IOMMU */ 19 20extern int (*pci_config_read)(int seg, int bus, int dev, int fn, 21 int reg, int len, u32 *value); 22extern int (*pci_config_write)(int seg, int bus, int dev, int fn, 23 int reg, int len, u32 value); 24 25#endif /* __KERNEL__ */ 26 27#endif /* _ASM_X86_PCI_64_H */