Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / xen / pci.h
blob424b8ea89ca81c8fda201bf0d5642c21b10e21ef
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __XEN_PCI_H__
4 #define __XEN_PCI_H__
6 #if defined(CONFIG_XEN_DOM0)
7 int xen_reset_device(const struct pci_dev *dev);
8 int xen_find_device_domain_owner(struct pci_dev *dev);
9 int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain);
10 int xen_unregister_device_domain_owner(struct pci_dev *dev);
11 #else
12 static inline int xen_reset_device(const struct pci_dev *dev)
14 return -1;
17 static inline int xen_find_device_domain_owner(struct pci_dev *dev)
19 return -1;
22 static inline int xen_register_device_domain_owner(struct pci_dev *dev,
23 uint16_t domain)
25 return -1;
28 static inline int xen_unregister_device_domain_owner(struct pci_dev *dev)
30 return -1;
32 #endif
34 #endif