From 83af0a21bf7b0f11b142d56948f0a5c4ea19f313 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 26 Oct 2011 18:58:50 +0000 Subject: 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 Signed-off-by: Shaun Ruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10274 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- include/dahdi/kernel.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 #include #endif +#include +#include #include @@ -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); -- cgit v1.2.3