blob: ae5e40f67daf54ddab4d9f2f6ca7b60b328aacfd [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_PCI_64_H
2#define _ASM_X86_PCI_64_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
Linus Torvalds1da177e2005-04-16 15:20:36 -07004#ifdef __KERNEL__
5
Muli Ben-Yehuda08f1c192007-07-22 00:23:39 +03006#ifdef CONFIG_CALGARY_IOMMU
Joe Perches3cb47d72008-03-23 01:03:02 -07007static inline void *pci_iommu(struct pci_bus *bus)
Muli Ben-Yehuda08f1c192007-07-22 00:23:39 +03008{
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
Joe Perches3cb47d72008-03-23 01:03:02 -070020extern 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);
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Yinghai Lu752bea42008-03-07 15:02:50 -080025extern void dma32_reserve_bootmem(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Linus Torvalds1da177e2005-04-16 15:20:36 -070027#endif /* __KERNEL__ */
28
H. Peter Anvin1965aae2008-10-22 22:26:29 -070029#endif /* _ASM_X86_PCI_64_H */