x86/efi: Enforce CONFIG_RELOCATABLE for EFI boot stub
[linux/fpc-iii.git] / arch / x86 / include / asm / pci_64.h
blobfe15cfb21b9be318afde89fb7cb76a81b4536668
1 #ifndef _ASM_X86_PCI_64_H
2 #define _ASM_X86_PCI_64_H
4 #ifdef __KERNEL__
6 #ifdef CONFIG_CALGARY_IOMMU
7 static inline void *pci_iommu(struct pci_bus *bus)
9 struct pci_sysdata *sd = bus->sysdata;
10 return sd->iommu;
13 static inline void set_pci_iommu(struct pci_bus *bus, void *val)
15 struct pci_sysdata *sd = bus->sysdata;
16 sd->iommu = val;
18 #endif /* CONFIG_CALGARY_IOMMU */
20 extern int (*pci_config_read)(int seg, int bus, int dev, int fn,
21 int reg, int len, u32 *value);
22 extern int (*pci_config_write)(int seg, int bus, int dev, int fn,
23 int reg, int len, u32 value);
25 #endif /* __KERNEL__ */
27 #endif /* _ASM_X86_PCI_64_H */