]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - include/linux/pci-ats.h
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 void pci_restore_pri_state(struct pci_dev
*pdev
);
11 int pci_reset_pri(struct pci_dev
*pdev
);
13 #else /* CONFIG_PCI_PRI */
15 static inline int pci_enable_pri(struct pci_dev
*pdev
, u32 reqs
)
20 static inline void pci_disable_pri(struct pci_dev
*pdev
)
24 static inline void pci_restore_pri_state(struct pci_dev
*pdev
)
28 static inline int pci_reset_pri(struct pci_dev
*pdev
)
33 #endif /* CONFIG_PCI_PRI */
35 #ifdef CONFIG_PCI_PASID
37 int pci_enable_pasid(struct pci_dev
*pdev
, int features
);
38 void pci_disable_pasid(struct pci_dev
*pdev
);
39 void pci_restore_pasid_state(struct pci_dev
*pdev
);
40 int pci_pasid_features(struct pci_dev
*pdev
);
41 int pci_max_pasids(struct pci_dev
*pdev
);
43 #else /* CONFIG_PCI_PASID */
45 static inline int pci_enable_pasid(struct pci_dev
*pdev
, int features
)
50 static inline void pci_disable_pasid(struct pci_dev
*pdev
)
54 static inline void pci_restore_pasid_state(struct pci_dev
*pdev
)
58 static inline int pci_pasid_features(struct pci_dev
*pdev
)
63 static inline int pci_max_pasids(struct pci_dev
*pdev
)
68 #endif /* CONFIG_PCI_PASID */
71 #endif /* LINUX_PCI_ATS_H*/