1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 #ifndef __XEN_PCI_H__ 3 #ifndef __XEN_PCI_H__ 4 #define __XEN_PCI_H__ 4 #define __XEN_PCI_H__ 5 5 6 #if defined(CONFIG_XEN_DOM0) 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_de 7 int xen_find_device_domain_owner(struct pci_dev *dev); 9 int xen_register_device_domain_owner(struct pc 8 int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain); 10 int xen_unregister_device_domain_owner(struct 9 int xen_unregister_device_domain_owner(struct pci_dev *dev); 11 #else 10 #else 12 static inline int xen_reset_device(const struc << 13 { << 14 return -1; << 15 } << 16 << 17 static inline int xen_find_device_domain_owner 11 static inline int xen_find_device_domain_owner(struct pci_dev *dev) 18 { 12 { 19 return -1; 13 return -1; 20 } 14 } 21 15 22 static inline int xen_register_device_domain_o 16 static inline int xen_register_device_domain_owner(struct pci_dev *dev, 23 17 uint16_t domain) 24 { 18 { 25 return -1; 19 return -1; 26 } 20 } 27 21 28 static inline int xen_unregister_device_domain 22 static inline int xen_unregister_device_domain_owner(struct pci_dev *dev) 29 { 23 { 30 return -1; 24 return -1; 31 } 25 } 32 #endif 26 #endif 33 27 34 #endif 28 #endif 35 29
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.