summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/mmapbus.h
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-06-19 13:36:15 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-06-19 13:36:15 +0000
commit9d886a8e34490fabc3a1e3a0ebba5f8a43a6fd49 (patch)
tree8ac596c49aed7284efdb19c2b97900248436aa44 /drivers/dahdi/xpp/mmapbus.h
parent55896756afb1dc68c66712885cd310f8a11494e2 (diff)
Further XPP driver adjustments:
* More complete Kconfig. * Verification of FXO init script moved here from tools. * Perl init scripts are verified. * Correct name XppConf*ig*. * Add the files for xpp_mmap . git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4408 a0bf4364-ded3-4de4-8d8a-66a801d63aff
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