summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-08-15 18:42:22 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-08-15 18:42:22 +0000
commit5fa04d49d299ca4dfb211a67e42f15e28a6eeaf6 (patch)
treefb3b97609c4a61ddaafd4939937f796dcc352821 /zaptel.h
parent5ef86be417c154b7679e4c1905036c760b74cd28 (diff)
Add support for looping back a single channel
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1310 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.h')
-rw-r--r--zaptel.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/zaptel.h b/zaptel.h
index 1c034b9..22679d2 100644
--- a/zaptel.h
+++ b/zaptel.h
@@ -614,6 +614,12 @@ struct zt_versioninfo {
#define ZT_GETVERSION _IOR(ZT_CODE, 57, struct zt_versioninfo)
/*
+ * Put the channel in loopback mode (receive from the channel is
+ * transmitted back on the interface)
+ */
+#define ZT_LOOPBACK _IOW(ZT_CODE, 58, int)
+
+/*
* 60-80 are reserved for private drivers
* 80-85 are reserved for dynamic span stuff
*/
@@ -1070,7 +1076,7 @@ struct zt_chan {
u_char swritechunk[ZT_MAX_CHUNKSIZE]; /* Buffer to be written */
u_char *readchunk; /* Actual place to read from */
u_char sreadchunk[ZT_MAX_CHUNKSIZE]; /* Preallocated static area */
-
+
/* Pointer to tx and rx gain tables */
u_char *rxgain;
u_char *txgain;
@@ -1281,6 +1287,7 @@ typedef enum {
#define ZT_FLAG_T1PPP (1 << 15)
#define ZT_FLAG_SIGFREEZE (1 << 16) /* Freeze signalling */
#define ZT_FLAG_NOSTDTXRX (1 << 17) /* Do NOT do standard transmit and receive on every interrupt */
+#define ZT_FLAG_LOOPED (1 << 18) /* Loopback the receive data from the channel to the transmit */
struct zt_span {
spinlock_t lock;