6 #ifndef __XEN_PCIBACK_H__
7 #define __XEN_PCIBACK_H__
12 #include <linux/list.h>
18 #define DRV_NAME "xen-pciback"
25 #define _PDEVF_op_active (0)
26 #define PDEVF_op_active (1<<(_PDEVF_op_active))
27 #define _PCIB_op_pending (1)
28 #define PCIB_op_pending (1<<(_PCIB_op_pending))
100 unsigned int *
devfn);
119 if (xen_pcibk_backend && xen_pcibk_backend->
add)
120 return xen_pcibk_backend->
add(pdev, dev, devid, publish_cb);
127 if (xen_pcibk_backend && xen_pcibk_backend->
free)
128 return xen_pcibk_backend->
release(pdev, dev);
133 unsigned int bus,
unsigned int devfn)
135 if (xen_pcibk_backend && xen_pcibk_backend->
get)
136 return xen_pcibk_backend->
get(pdev, domain, bus, devfn);
146 static inline int xen_pcibk_get_pcifront_dev(
struct pci_dev *
pcidev,
148 unsigned int *domain,
152 if (xen_pcibk_backend && xen_pcibk_backend->
find)
153 return xen_pcibk_backend->
find(pcidev, pdev, domain, bus,
160 if (xen_pcibk_backend && xen_pcibk_backend->
init)
161 return xen_pcibk_backend->
init(pdev);
165 static inline int xen_pcibk_publish_pci_roots(
struct xen_pcibk_device *pdev,
168 if (xen_pcibk_backend && xen_pcibk_backend->
publish)
169 return xen_pcibk_backend->
publish(pdev, cb);
175 if (xen_pcibk_backend && xen_pcibk_backend->
free)
176 return xen_pcibk_backend->
free(pdev);