aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/pci.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-07-04 17:52:50 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-07-04 17:52:50 +0100
commitf83baa47ecfe37e392d5bda49ad1e8f242c434a9 (patch)
treedeb9eb573663a8c0429347351b578a65ababc080 /xen/include/xen/pci.h
parentffd9d82c69e26b9c2b3bac6ec769b77dffa06e60 (diff)
downloadxen-f83baa47ecfe37e392d5bda49ad1e8f242c434a9.tar.gz
xen-f83baa47ecfe37e392d5bda49ad1e8f242c434a9.tar.bz2
xen-f83baa47ecfe37e392d5bda49ad1e8f242c434a9.zip
Add hypercall for adding and removing PCI devices
The add hypercall will add a new PCI device and register it. The remove hypercall will remove the pci_dev strucure for the device. The IOMMU hardware (if present) will be notifed as well. Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com> Signed-off-by: Joshua LeVasseur <joshua.levasseur@netronome.com>
Diffstat (limited to 'xen/include/xen/pci.h')
-rw-r--r--xen/include/xen/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h
index bf7c066fe8..f60c5855d7 100644
--- a/xen/include/xen/pci.h
+++ b/xen/include/xen/pci.h
@@ -56,6 +56,8 @@ void free_pdev(struct pci_dev *pdev);
struct pci_dev *pci_lock_pdev(int bus, int devfn);
struct pci_dev *pci_lock_domain_pdev(struct domain *d, int bus, int devfn);
+int pci_add_device(u8 bus, u8 devfn);
+int pci_remove_device(u8 bus, u8 devfn);
uint8_t pci_conf_read8(
unsigned int bus, unsigned int dev, unsigned int func, unsigned int reg);