summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-10-26 18:58:50 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-10-26 18:58:50 +0000
commit83af0a21bf7b0f11b142d56948f0a5c4ea19f313 (patch)
tree103b96dec56daf1621ae77e0ae3f7a8acf573603 /include
parent003582d221276735233c1155d5d64e3ee7eec4ac (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> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10274 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/kernel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 9dec702..12e8ff2 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>
@@ -905,6 +907,7 @@ struct dahdi_device {
const char *manufacturer;
const char *location;
const char *devicetype;
+ struct device dev;
};
struct dahdi_span {
@@ -954,6 +957,7 @@ struct dahdi_span {
struct dahdi_device *parent;
struct list_head device_node;
+ struct device *span_device;
};
struct dahdi_transcoder_channel {
@@ -970,6 +974,8 @@ struct dahdi_transcoder_channel {
u32 srcfmt;
};
+int dahdi_is_sync_master(const struct dahdi_span *span);
+
static inline int
dahdi_tc_is_built(struct dahdi_transcoder_channel *dtc) {
return test_bit(DAHDI_TC_FLAG_CHAN_BUILT, &dtc->flags);