summaryrefslogtreecommitdiffstats
path: root/pci.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-02-13 09:58:16 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-02-13 09:58:16 +0100
commiteb0978fffe5d17f085a441faf68cedc24eea04e1 (patch)
tree46609bea48abf09f2221d52456fa9509c722f731 /pci.h
parentd99c2bd404e3a8c56042ef8679987ed8af8e3801 (diff)
downloadqemu-security-eb0978fffe5d17f085a441faf68cedc24eea04e1.tar.gz
split pci and cirrus code
Diffstat (limited to 'pci.h')
-rw-r--r--pci.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/pci.h b/pci.h
new file mode 100644
index 0000000..b28dabe
--- /dev/null
+++ b/pci.h
@@ -0,0 +1,9 @@
+#include <pci/pci.h>
+
+extern struct pci_access *pci;
+extern struct pci_dev *dev;
+
+void find_device(char *name,
+ unsigned int vendor,
+ unsigned int device);
+void *mmap_bar(int nr);