diff options
-rw-r--r-- | include/dahdi/kernel.h | 8 | ||||
-rw-r--r-- | include/dahdi/user.h | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 89f0a39..82adb91 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -843,7 +843,8 @@ struct dahdi_span { 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 */ @@ -872,6 +873,11 @@ struct dahdi_span { #endif }; +static inline bool dahdi_is_digital_span(const struct dahdi_span *s) +{ + return (s->linecompat > 0); +} + struct dahdi_transcoder_channel { void *pvt; struct dahdi_transcoder *parent; diff --git a/include/dahdi/user.h b/include/dahdi/user.h index 4cdabc4..420b75f 100644 --- a/include/dahdi/user.h +++ b/include/dahdi/user.h @@ -571,7 +571,8 @@ struct dahdi_spaninfo { 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)); |