Release 4.14 arch/x86/include/asm/xen/pci.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_XEN_PCI_H
#define _ASM_X86_XEN_PCI_H
#if defined(CONFIG_PCI_XEN)
extern int __init pci_xen_init(void);
extern int __init pci_xen_hvm_init(void);
#define pci_xen 1
#else
#define pci_xen 0
#define pci_xen_init (0)
static inline int pci_xen_hvm_init(void)
{
return -1;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stefano Stabellini | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
#endif
#if defined(CONFIG_XEN_DOM0)
int __init pci_xen_initial_domain(void);
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 __init pci_xen_initial_domain(void)
{
return -1;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Konrad Rzeszutek Wilk | 8 | 57.14% | 1 | 50.00% |
Jeremy Fitzhardinge | 6 | 42.86% | 1 | 50.00% |
Total | 14 | 100.00% | 2 | 100.00% |
static inline int xen_find_device_domain_owner(struct pci_dev *dev)
{
return -1;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Konrad Rzeszutek Wilk | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
static inline int xen_register_device_domain_owner(struct pci_dev *dev,
uint16_t domain)
{
return -1;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Konrad Rzeszutek Wilk | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
static inline int xen_unregister_device_domain_owner(struct pci_dev *dev)
{
return -1;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Konrad Rzeszutek Wilk | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
#endif
#if defined(CONFIG_PCI_MSI)
#if defined(CONFIG_PCI_XEN)
/* The drivers/pci/xen-pcifront.c sets this structure to
* its own functions.
*/
struct xen_pci_frontend_ops {
int (*enable_msi)(struct pci_dev *dev, int vectors[]);
void (*disable_msi)(struct pci_dev *dev);
int (*enable_msix)(struct pci_dev *dev, int vectors[], int nvec);
void (*disable_msix)(struct pci_dev *dev);
};
extern struct xen_pci_frontend_ops *xen_pci_frontend;
static inline int xen_pci_frontend_enable_msi(struct pci_dev *dev,
int vectors[])
{
if (xen_pci_frontend && xen_pci_frontend->enable_msi)
return xen_pci_frontend->enable_msi(dev, vectors);
return -ENOSYS;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alex Nixon | 36 | 94.74% | 1 | 33.33% |
Konrad Rzeszutek Wilk | 2 | 5.26% | 2 | 66.67% |
Total | 38 | 100.00% | 3 | 100.00% |
static inline void xen_pci_frontend_disable_msi(struct pci_dev *dev)
{
if (xen_pci_frontend && xen_pci_frontend->disable_msi)
xen_pci_frontend->disable_msi(dev);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alex Nixon | 27 | 100.00% | 1 | 100.00% |
Total | 27 | 100.00% | 1 | 100.00% |
static inline int xen_pci_frontend_enable_msix(struct pci_dev *dev,
int vectors[], int nvec)
{
if (xen_pci_frontend && xen_pci_frontend->enable_msix)
return xen_pci_frontend->enable_msix(dev, vectors, nvec);
return -ENOSYS;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alex Nixon | 41 | 95.35% | 1 | 33.33% |
Konrad Rzeszutek Wilk | 2 | 4.65% | 2 | 66.67% |
Total | 43 | 100.00% | 3 | 100.00% |
static inline void xen_pci_frontend_disable_msix(struct pci_dev *dev)
{
if (xen_pci_frontend && xen_pci_frontend->disable_msix)
xen_pci_frontend->disable_msix(dev);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alex Nixon | 27 | 100.00% | 1 | 100.00% |
Total | 27 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_PCI_XEN */
#endif /* CONFIG_PCI_MSI */
#endif /* _ASM_X86_XEN_PCI_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alex Nixon | 257 | 64.74% | 1 | 12.50% |
Konrad Rzeszutek Wilk | 97 | 24.43% | 4 | 50.00% |
Stefano Stabellini | 21 | 5.29% | 1 | 12.50% |
Jeremy Fitzhardinge | 21 | 5.29% | 1 | 12.50% |
Greg Kroah-Hartman | 1 | 0.25% | 1 | 12.50% |
Total | 397 | 100.00% | 8 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.