summaryrefslogtreecommitdiffstats
path: root/driver/pcidriver.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/pcidriver.h')
-rw-r--r--driver/pcidriver.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/driver/pcidriver.h b/driver/pcidriver.h
new file mode 100644
index 0000000..d64c80a
--- /dev/null
+++ b/driver/pcidriver.h
@@ -0,0 +1,11 @@
+#ifndef _PCIDRIVER_H
+#define _PCIDRIVER_H
+
+/**
+ * Evaluates if the supplied user-space address is actually BAR mapping.
+ * @param[in] address - the user-space address
+ * @return - the hardware address of BAR or 0 if the \p address is not BAR mapping
+ */
+extern unsigned long pcidriver_resolve_bar(unsigned long address);
+
+#endif /* _PCIDRIVER_H */ \ No newline at end of file