aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/ats.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2011-09-27 09:57:14 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-10-14 12:05:34 -0400
commitd4c0636c2107010f0ef8c4dfbb1d6368ae3b3ed9 (patch)
tree06ed57fc41718971fdf540f1034b0df31e3290dc /drivers/pci/ats.c
parentdb3c33c6d3fa04ee46b491e9d75d0d3b4798d074 (diff)
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: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/ats.c')
-rw-r--r--drivers/pci/ats.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c
index ae4bf87afb0..5ceff3e16e1 100644
--- a/drivers/pci/ats.c
+++ b/drivers/pci/ats.c
@@ -90,6 +90,7 @@ int pci_enable_ats(struct pci_dev *dev, int ps)
90 90
91 return 0; 91 return 0;
92} 92}
93EXPORT_SYMBOL_GPL(pci_enable_ats);
93 94
94/** 95/**
95 * pci_disable_ats - disable the ATS capability 96 * pci_disable_ats - disable the ATS capability
@@ -120,6 +121,7 @@ void pci_disable_ats(struct pci_dev *dev)
120 if (!dev->is_physfn) 121 if (!dev->is_physfn)
121 ats_free_one(dev); 122 ats_free_one(dev);
122} 123}
124EXPORT_SYMBOL_GPL(pci_disable_ats);
123 125
124/** 126/**
125 * pci_ats_queue_depth - query the ATS Invalidate Queue Depth 127 * pci_ats_queue_depth - query the ATS Invalidate Queue Depth
@@ -153,3 +155,4 @@ int pci_ats_queue_depth(struct pci_dev *dev)
153 return PCI_ATS_CAP_QDEP(cap) ? PCI_ATS_CAP_QDEP(cap) : 155 return PCI_ATS_CAP_QDEP(cap) ? PCI_ATS_CAP_QDEP(cap) :
154 PCI_ATS_MAX_QDEP; 156 PCI_ATS_MAX_QDEP;
155} 157}
158EXPORT_SYMBOL_GPL(pci_ats_queue_depth);