https://github.com/torvalds/linux
Raw File
Tip revision: f915a3e5b0182dd7376f11337e231500a157e1f4 authored by Linus Torvalds on 19 June 2024, 01:14:48 UTC
arm64: word-at-a-time: improve byte count calculations for LE
Tip revision: f915a3e
pci.h
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef __XEN_PCI_H__
#define __XEN_PCI_H__

#if defined(CONFIG_XEN_DOM0)
int xen_find_device_domain_owner(struct pci_dev *dev);
int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain);
int xen_unregister_device_domain_owner(struct pci_dev *dev);
#else
static inline int xen_find_device_domain_owner(struct pci_dev *dev)
{
	return -1;
}

static inline int xen_register_device_domain_owner(struct pci_dev *dev,
						   uint16_t domain)
{
	return -1;
}

static inline int xen_unregister_device_domain_owner(struct pci_dev *dev)
{
	return -1;
}
#endif

#endif
back to top