1 #ifndef LINUX_PCI_ATS_H
2 #define LINUX_PCI_ATS_H
8 int pci_enable_pri(struct pci_dev
*pdev
, u32 reqs
);
9 void pci_disable_pri(struct pci_dev
*pdev
);
10 int pci_reset_pri(struct pci_dev
*pdev
);
12 #else /* CONFIG_PCI_PRI */
14 static inline int pci_enable_pri(struct pci_dev
*pdev
, u32 reqs
)
19 static inline void pci_disable_pri(struct pci_dev
*pdev
)
23 static inline int pci_reset_pri(struct pci_dev
*pdev
)
28 #endif /* CONFIG_PCI_PRI */
30 #ifdef CONFIG_PCI_PASID
32 int pci_enable_pasid(struct pci_dev
*pdev
, int features
);
33 void pci_disable_pasid(struct pci_dev
*pdev
);
34 int pci_pasid_features(struct pci_dev
*pdev
);
35 int pci_max_pasids(struct pci_dev
*pdev
);
37 #else /* CONFIG_PCI_PASID */
39 static inline int pci_enable_pasid(struct pci_dev
*pdev
, int features
)
44 static inline void pci_disable_pasid(struct pci_dev
*pdev
)
48 static inline int pci_pasid_features(struct pci_dev
*pdev
)
53 static inline int pci_max_pasids(struct pci_dev
*pdev
)
58 #endif /* CONFIG_PCI_PASID */
61 #endif /* LINUX_PCI_ATS_H*/