summaryrefslogtreecommitdiff
path: root/drivers/dahdi/voicebus/vpmadtreg.h
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2009-04-29 17:48:39 +0000
committerShaun Ruffell <sruffell@digium.com>2009-04-29 17:48:39 +0000
commit0eab8786edae3a7cc06d9f37793aefb712358cd3 (patch)
tree7feb878aab3e215b5c2011374fb84b68326a55bd /drivers/dahdi/voicebus/vpmadtreg.h
parent1b2c87acf7f48bb85c155a026ef20a8f0be21c57 (diff)
voicebus: Move common vpmadt032 interface into voicebus module.
The voicebus library was previously linked into both the wcte12xp and wctdm24xxp drivers. It is now broken out into it's own module and the common parts of the vpmadt032 interface are now located in that module to reduce duplication between the wcte12xp and wctdm24xxp drivers. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6527 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus/vpmadtreg.h')
-rw-r--r--drivers/dahdi/voicebus/vpmadtreg.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/dahdi/voicebus/vpmadtreg.h b/drivers/dahdi/voicebus/vpmadtreg.h
new file mode 100644
index 0000000..f3a5b8c
--- /dev/null
+++ b/drivers/dahdi/voicebus/vpmadtreg.h
@@ -0,0 +1,36 @@
+/*
+ * vpmadtreg.h - Registration utility for firmware loaders.
+ *
+ * Allows drivers for boards that host VPMAD032 modules to initiate firmware
+ * loads.
+ *
+ * Written by Digium Incorporated <support@digium.com>
+ *
+ * Copyright (C) 2008-2009 Digium, Inc. All rights reserved.
+ *
+ * See http://www.asterisk.org for more information about the Asterisk
+ * project. Please do not directly contact any of the maintainers of this
+ * project for assistance; the project provides a web site, mailing lists and
+ * IRC channels for your use.
+ *
+ * This program is free software, distributed under the terms of the GNU
+ * General Public License Version 2 as published by the Free Software
+ * Foundation. See the LICENSE file included with this program for more
+ * details.
+ */
+#ifndef __VPMADTREG_H__
+#define __VPMADTREG_H__
+
+struct vpmadt032;
+struct voicebus;
+
+struct vpmadt_loader {
+ struct module *owner;
+ struct list_head node;
+ int (*load)(struct voicebus *);
+};
+
+int vpmadtreg_register(struct vpmadt_loader *loader);
+int vpmadtreg_unregister(struct vpmadt_loader *loader);
+int vpmadtreg_loadfirmware(struct voicebus *vb);
+#endif