[svn-commits] sruffell: linux/trunk r9130 - in /linux/trunk/include/dahdi: kernel.h user.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 13 13:36:17 CDT 2010


Author: sruffell
Date: Fri Aug 13 13:36:12 2010
New Revision: 9130

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9130
Log:
dahdi: Make it clear that 'linecompat' can be used to identify analog spans.

The linecompat member can be used by a span to identify the
global-to-the-span signalling types supported. Analog spans do not
support any span-global signalling and therefore linecompat should
always be 0.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>

Modified:
    linux/trunk/include/dahdi/kernel.h
    linux/trunk/include/dahdi/user.h

Modified: linux/trunk/include/dahdi/kernel.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/include/dahdi/kernel.h?view=diff&rev=9130&r1=9129&r2=9130
==============================================================================
--- linux/trunk/include/dahdi/kernel.h (original)
+++ linux/trunk/include/dahdi/kernel.h Fri Aug 13 13:36:12 2010
@@ -843,7 +843,8 @@
 	int irq;			/*!< IRQ for this span's hardware */
 	int lbo;			/*!< Span Line-Buildout */
 	int lineconfig;			/*!< Span line configuration */
-	int linecompat;			/*!< Span line compatibility */
+	int linecompat;			/*!< Span line compatibility (0 for
+					     analog spans)*/
 	int channels;			/*!< Number of channels in span */
 	int txlevel;			/*!< Tx level */
 	int rxlevel;			/*!< Rx level */
@@ -871,6 +872,11 @@
 	int watchstate;
 #endif	
 };
+
+static inline bool dahdi_is_digital_span(const struct dahdi_span *s)
+{
+	return (s->linecompat > 0);
+}
 
 struct dahdi_transcoder_channel {
 	void *pvt;

Modified: linux/trunk/include/dahdi/user.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/include/dahdi/user.h?view=diff&rev=9130&r1=9129&r2=9130
==============================================================================
--- linux/trunk/include/dahdi/user.h (original)
+++ linux/trunk/include/dahdi/user.h Fri Aug 13 13:36:12 2010
@@ -571,7 +571,8 @@
 	char	manufacturer[40]; /* manufacturer of span's device */
 	char	devicetype[40];	/* span's device type */
 	int	irq;		/* span's device IRQ */
-	int	linecompat;	/* signaling modes possible on this span */
+	int	linecompat;	/* span global signaling or 0 for
+				   analog spans.*/
 	char	spantype[6];	/* type of span in text form */
 } __attribute__((packed));
 




More information about the svn-commits mailing list