Skip to content

Commit

Permalink
PCI: Export ATS functions to modules
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joerg Roedel authored and Jesse Barnes committed Oct 14, 2011
1 parent db3c33c commit d4c0636
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/pci/ats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);

0 comments on commit d4c0636

Please sign in to comment.