]> err.no Git - linux-2.6/blobdiff - include/asm-x86_64/pci.h
ocfs2: Unlock mutex in local alloc failure case
[linux-2.6] / include / asm-x86_64 / pci.h
index bda94fd5176f43a70c431f0079aeb6715d30a78e..5da8cb0c0599fccc883992354929238aa8700bd1 100644 (file)
@@ -5,6 +5,27 @@
 
 #ifdef __KERNEL__
 
+struct pci_sysdata {
+       int             node;           /* NUMA node */
+       void*           iommu;          /* IOMMU private data */
+};
+
+extern struct pci_bus *pci_scan_bus_with_sysdata(int busno);
+
+#ifdef CONFIG_CALGARY_IOMMU
+static inline void* pci_iommu(struct pci_bus *bus)
+{
+       struct pci_sysdata *sd = bus->sysdata;
+       return sd->iommu;
+}
+
+static inline void set_pci_iommu(struct pci_bus *bus, void *val)
+{
+       struct pci_sysdata *sd = bus->sysdata;
+       sd->iommu = val;
+}
+#endif /* CONFIG_CALGARY_IOMMU */
+
 #include <linux/mm.h> /* for struct page */
 
 /* Can be used to override the logic in pci_scan_bus for skipping