diff options
Diffstat (limited to 'zaptel.h')
-rw-r--r-- | zaptel.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |