summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/mmapbus.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/xpp/mmapbus.h')
-rw-r--r--drivers/dahdi/xpp/mmapbus.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/mmapbus.h b/drivers/dahdi/xpp/mmapbus.h
new file mode 100644
index 0000000..98fad66
--- /dev/null
+++ b/drivers/dahdi/xpp/mmapbus.h
@@ -0,0 +1,26 @@
+#ifndef MMAPBUS_H
+#define MMAPBUS_H
+
+#include <linux/device.h>
+
+struct mmap_device {
+ char *name;
+ struct mmap_driver *driver;
+ struct device dev;
+};
+#define to_mmap_device(x) container_of(x, struct mmap_device, dev)
+
+struct mmap_driver {
+ struct module *module;
+ struct device_driver driver;
+};
+#define to_mmap_driver(x) container_of(x, struct mmap_driver, driver)
+
+int register_mmap_bus(void);
+void unregister_mmap_bus(void);
+int register_mmap_device(struct mmap_device *dev);
+void unregister_mmap_device(struct mmap_device *dev);
+int register_mmap_driver(struct mmap_driver *driver);
+void unregister_mmap_driver(struct mmap_driver *driver);
+
+#endif