xtensa: fix high memory/reserved memory collision
[cris-mirror.git] / include / linux / pci-ats.h
blob7c4b8e27268c7455c9f13234d0d2790dfb46dfc4
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LINUX_PCI_ATS_H
3 #define LINUX_PCI_ATS_H
5 #include <linux/pci.h>
7 #ifdef CONFIG_PCI_PRI
9 int pci_enable_pri(struct pci_dev *pdev, u32 reqs);
10 void pci_disable_pri(struct pci_dev *pdev);
11 void pci_restore_pri_state(struct pci_dev *pdev);
12 int pci_reset_pri(struct pci_dev *pdev);
14 #else /* CONFIG_PCI_PRI */
16 static inline int pci_enable_pri(struct pci_dev *pdev, u32 reqs)
18 return -ENODEV;
21 static inline void pci_disable_pri(struct pci_dev *pdev)
25 static inline void pci_restore_pri_state(struct pci_dev *pdev)
29 static inline int pci_reset_pri(struct pci_dev *pdev)
31 return -ENODEV;
34 #endif /* CONFIG_PCI_PRI */
36 #ifdef CONFIG_PCI_PASID
38 int pci_enable_pasid(struct pci_dev *pdev, int features);
39 void pci_disable_pasid(struct pci_dev *pdev);
40 void pci_restore_pasid_state(struct pci_dev *pdev);
41 int pci_pasid_features(struct pci_dev *pdev);
42 int pci_max_pasids(struct pci_dev *pdev);
44 #else /* CONFIG_PCI_PASID */
46 static inline int pci_enable_pasid(struct pci_dev *pdev, int features)
48 return -EINVAL;
51 static inline void pci_disable_pasid(struct pci_dev *pdev)
55 static inline void pci_restore_pasid_state(struct pci_dev *pdev)
59 static inline int pci_pasid_features(struct pci_dev *pdev)
61 return -EINVAL;
64 static inline int pci_max_pasids(struct pci_dev *pdev)
66 return -EINVAL;
69 #endif /* CONFIG_PCI_PASID */
72 #endif /* LINUX_PCI_ATS_H*/