summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOron Peled <oron.peled@xorcom.com>2011-02-20 17:08:26 +0200
committerShaun Ruffell <sruffell@digium.com>2011-04-15 14:21:13 -0500
commita899994d442a262f084fc47ec80013ac5787296c (patch)
treecff8a5258d0d57cd365f88552995107167123f7e /include
parentb3c86b81ae638d90ee27a821e962e297ab85cbe4 (diff)
dahdi: Expose spans in sysfs.
This change will facilitate creating rules that will allow spans and channels to be accessed by named device files instead of by numbers. Signed-off-by: Oron Peled <oron.peled@xorcom.com> Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/kernel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 2f23f19..3bf11f1 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -54,6 +54,8 @@
#include <linux/skbuff.h>
#include <linux/interrupt.h>
#endif
+#include <linux/device.h>
+#include <linux/sysfs.h>
#include <linux/poll.h>
@@ -891,6 +893,7 @@ struct dahdi_device {
const char *manufacturer;
const char *location;
const char *devicetype;
+ struct device dev;
};
struct dahdi_span {
@@ -940,6 +943,7 @@ struct dahdi_span {
struct dahdi_device *parent;
struct list_head device_node;
+ struct device *span_device;
};
struct dahdi_transcoder_channel {