#define pr_fmt(fmt) …
#define dev_fmt …
#include <linux/moduleparam.h>
#include <linux/wait.h>
#include <linux/bitops.h>
#include <xen/events.h>
#include <linux/sched.h>
#include "pciback.h"
static irqreturn_t xen_pcibk_guest_interrupt(int irq, void *dev_id);
static void xen_pcibk_control_isr(struct pci_dev *dev, int reset)
{ … }
void xen_pcibk_reset_device(struct pci_dev *dev)
{ … }
#ifdef CONFIG_PCI_MSI
static
int xen_pcibk_enable_msi(struct xen_pcibk_device *pdev,
struct pci_dev *dev, struct xen_pci_op *op)
{ … }
static
int xen_pcibk_disable_msi(struct xen_pcibk_device *pdev,
struct pci_dev *dev, struct xen_pci_op *op)
{ … }
static
int xen_pcibk_enable_msix(struct xen_pcibk_device *pdev,
struct pci_dev *dev, struct xen_pci_op *op)
{ … }
static
int xen_pcibk_disable_msix(struct xen_pcibk_device *pdev,
struct pci_dev *dev, struct xen_pci_op *op)
{ … }
#endif
static inline bool xen_pcibk_test_op_pending(struct xen_pcibk_device *pdev)
{ … }
static void xen_pcibk_test_and_schedule_op(struct xen_pcibk_device *pdev)
{ … }
static void xen_pcibk_do_one_op(struct xen_pcibk_device *pdev)
{ … }
void xen_pcibk_do_op(struct work_struct *data)
{ … }
irqreturn_t xen_pcibk_handle_event(int irq, void *dev_id)
{ … }
static irqreturn_t xen_pcibk_guest_interrupt(int irq, void *dev_id)
{ … }