mirror of https://gitee.com/openkylin/linux.git
PCI/ATS: Export symbols of PASID functions
The Arm SMMUv3 driver uses pci_{enable,disable}_pasid() and related functions. Export them to allow the driver to be built as a module. Acked-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
fa1c76df5d
commit
7682ce2b12
|
@ -366,6 +366,7 @@ int pci_enable_pasid(struct pci_dev *pdev, int features)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(pci_enable_pasid);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pci_disable_pasid - Disable the PASID capability
|
* pci_disable_pasid - Disable the PASID capability
|
||||||
|
@ -390,6 +391,7 @@ void pci_disable_pasid(struct pci_dev *pdev)
|
||||||
|
|
||||||
pdev->pasid_enabled = 0;
|
pdev->pasid_enabled = 0;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(pci_disable_pasid);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pci_restore_pasid_state - Restore PASID capabilities
|
* pci_restore_pasid_state - Restore PASID capabilities
|
||||||
|
@ -441,6 +443,7 @@ int pci_pasid_features(struct pci_dev *pdev)
|
||||||
|
|
||||||
return supported;
|
return supported;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(pci_pasid_features);
|
||||||
|
|
||||||
#define PASID_NUMBER_SHIFT 8
|
#define PASID_NUMBER_SHIFT 8
|
||||||
#define PASID_NUMBER_MASK (0x1f << PASID_NUMBER_SHIFT)
|
#define PASID_NUMBER_MASK (0x1f << PASID_NUMBER_SHIFT)
|
||||||
|
@ -469,4 +472,5 @@ int pci_max_pasids(struct pci_dev *pdev)
|
||||||
|
|
||||||
return (1 << supported);
|
return (1 << supported);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(pci_max_pasids);
|
||||||
#endif /* CONFIG_PCI_PASID */
|
#endif /* CONFIG_PCI_PASID */
|
||||||
|
|
Loading…
Reference in New Issue