提交 d4c0636c 编写于 作者: J Joerg Roedel 提交者: Jesse Barnes

PCI: Export ATS functions to modules

This patch makes the ATS functions usable for modules.
They will be used by a module implementing some advanced
AMD IOMMU features.
Reviewed-by: NBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
上级 db3c33c6
......@@ -90,6 +90,7 @@ int pci_enable_ats(struct pci_dev *dev, int ps)
return 0;
}
EXPORT_SYMBOL_GPL(pci_enable_ats);
/**
* pci_disable_ats - disable the ATS capability
......@@ -120,6 +121,7 @@ void pci_disable_ats(struct pci_dev *dev)
if (!dev->is_physfn)
ats_free_one(dev);
}
EXPORT_SYMBOL_GPL(pci_disable_ats);
/**
* pci_ats_queue_depth - query the ATS Invalidate Queue Depth
......@@ -153,3 +155,4 @@ int pci_ats_queue_depth(struct pci_dev *dev)
return PCI_ATS_CAP_QDEP(cap) ? PCI_ATS_CAP_QDEP(cap) :
PCI_ATS_MAX_QDEP;
}
EXPORT_SYMBOL_GPL(pci_ats_queue_depth);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册