summaryrefslogtreecommitdiffstats
path: root/pci.h
diff options
context:
space:
mode:
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);