[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.224.58.39: ~ $
#ifndef __LINUX_IXJUSER_H
#define __LINUX_IXJUSER_H

/******************************************************************************
 *
 *    ixjuser.h
 *
 * Device Driver for Quicknet Technologies, Inc.'s Telephony cards
 * including the Internet PhoneJACK, Internet PhoneJACK Lite,
 * Internet PhoneJACK PCI, Internet LineJACK, Internet PhoneCARD and
 * SmartCABLE
 *
 *    (c) Copyright 1999-2001  Quicknet Technologies, Inc.
 *
 *    This program is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU General Public License
 *    as published by the Free Software Foundation; either version
 *    2 of the License, or (at your option) any later version.
 *
 * Author:          Ed Okerson, <eokerson@quicknet.net>
 *    
 * Contributors:    Greg Herlein, <gherlein@quicknet.net>
 *                  David W. Erhart, <derhart@quicknet.net>
 *                  John Sellers, <jsellers@quicknet.net>
 *                  Mike Preston, <mpreston@quicknet.net>
 *
 * More information about the hardware related to this driver can be found
 * at our website:    http://www.quicknet.net
 *
 * Fixes:
 *
 * IN NO EVENT SHALL QUICKNET TECHNOLOGIES, INC. BE LIABLE TO ANY PARTY FOR
 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
 * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF QUICKNET
 * TECHNOLOGIES, INC.HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * QUICKNET TECHNOLOGIES, INC. SPECIFICALLY DISCLAIMS ANY WARRANTIES,
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
 * ON AN "AS IS" BASIS, AND QUICKNET TECHNOLOGIES, INC. HAS NO OBLIGATION 
 * TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 *
 *****************************************************************************/

#include <linux/telephony.h>


/******************************************************************************
*
* IOCTL's used for the Quicknet Telephony Cards
*
* If you use the IXJCTL_TESTRAM command, the card must be power cycled to
* reset the SRAM values before further use.
*
******************************************************************************/

#define IXJCTL_DSP_RESET 		_IO  ('q', 0xC0)

#define IXJCTL_RING                     PHONE_RING
#define IXJCTL_HOOKSTATE                PHONE_HOOKSTATE
#define IXJCTL_MAXRINGS			PHONE_MAXRINGS
#define IXJCTL_RING_CADENCE		PHONE_RING_CADENCE
#define IXJCTL_RING_START		PHONE_RING_START
#define IXJCTL_RING_STOP		PHONE_RING_STOP

#define IXJCTL_CARDTYPE			_IOR ('q', 0xC1, int)
#define IXJCTL_SERIAL			_IOR ('q', 0xC2, int)
#define IXJCTL_DSP_TYPE                 _IOR ('q', 0xC3, int)
#define IXJCTL_DSP_VERSION              _IOR ('q', 0xC4, int)
#define IXJCTL_VERSION              	_IOR ('q', 0xDA, char *)
#define IXJCTL_DSP_IDLE			_IO  ('q', 0xC5)
#define IXJCTL_TESTRAM			_IO  ('q', 0xC6)

/******************************************************************************
*
* This group of IOCTLs deal with the record settings of the DSP
*
* The IXJCTL_REC_DEPTH command sets the internal buffer depth of the DSP.
* Setting a lower depth reduces latency, but increases the demand of the
* application to service the driver without frame loss.  The DSP has 480
* bytes of physical buffer memory for the record channel so the true
* maximum limit is determined by how many frames will fit in the buffer.
*
* 1 uncompressed (480 byte) 16-bit linear frame.
* 2 uncompressed (240 byte) 8-bit A-law/mu-law frames.
* 15 TrueSpeech 8.5 frames.
* 20 TrueSpeech 6.3,5.3,4.8 or 4.1 frames.
*
* The default in the driver is currently set to 2 frames.
*
* The IXJCTL_REC_VOLUME and IXJCTL_PLAY_VOLUME commands both use a Q8
* number as a parameter, 0x100 scales the signal by 1.0, 0x200 scales the
* signal by 2.0, 0x80 scales the signal by 0.5.  No protection is given
* against over-scaling, if the multiplication factor times the input
* signal exceeds 16 bits, overflow distortion will occur.  The default
* setting is 0x100 (1.0).
*
* The IXJCTL_REC_LEVEL returns the average signal level (not r.m.s.) on
* the most recently recorded frame as a 16 bit value.
******************************************************************************/

#define IXJCTL_REC_CODEC                PHONE_REC_CODEC
#define IXJCTL_REC_START                PHONE_REC_START
#define IXJCTL_REC_STOP                 PHONE_REC_STOP
#define IXJCTL_REC_DEPTH		PHONE_REC_DEPTH
#define IXJCTL_FRAME			PHONE_FRAME
#define IXJCTL_REC_VOLUME		PHONE_REC_VOLUME
#define IXJCTL_REC_LEVEL		PHONE_REC_LEVEL

typedef enum {
	f300_640 = 4, f300_500, f1100, f350, f400, f480, f440, f620, f20_50,
	f133_200, f300, f300_420, f330, f300_425, f330_440, f340, f350_400,
	f350_440, f350_450, f360, f380_420, f392, f400_425, f400_440, f400_450,
	f420, f425, f425_450, f425_475, f435, f440_450, f440_480, f445, f450,
	f452, f475, f480_620, f494, f500, f520, f523, f525, f540_660, f587,
	f590, f600, f660, f700, f740, f750, f750_1450, f770, f800, f816, f850,
	f857_1645, f900, f900_1300, f935_1215, f941_1477, f942, f950, f950_1400,
	f975, f1000, f1020, f1050, f1100_1750, f1140, f1200, f1209, f1330, f1336,
	lf1366, f1380, f1400, f1477, f1600, f1633_1638, f1800, f1860
} IXJ_FILTER_FREQ;

typedef struct {
	unsigned int filter;
	IXJ_FILTER_FREQ freq;
	char enable;
} IXJ_FILTER;

typedef struct {
	char enable;
	char en_filter;
	unsigned int filter;
	unsigned int on1;
	unsigned int off1;
	unsigned int on2;
	unsigned int off2;
	unsigned int on3;
	unsigned int off3;
} IXJ_FILTER_CADENCE;

#define IXJCTL_SET_FILTER		_IOW ('q', 0xC7, IXJ_FILTER *)
#define IXJCTL_SET_FILTER_RAW		_IOW ('q', 0xDD, IXJ_FILTER_RAW *)
#define IXJCTL_GET_FILTER_HIST		_IOW ('q', 0xC8, int)
#define IXJCTL_FILTER_CADENCE		_IOW ('q', 0xD6, IXJ_FILTER_CADENCE *)
#define IXJCTL_PLAY_CID			_IO  ('q', 0xD7)
/******************************************************************************
*
* This IOCTL allows you to reassign values in the tone index table.  The
* tone table has 32 entries (0 - 31), but the driver only allows entries
* 13 - 27 to be modified, entry 0 is reserved for silence and 1 - 12 are
* the standard DTMF digits and 28 - 31 are the DTMF tones for A, B, C & D.
* The positions used internally for Call Progress Tones are as follows:
*    Dial Tone   - 25
*    Ring Back   - 26
*    Busy Signal - 27
*
* The freq values are calculated as:
* freq = cos(2 * PI * frequency / 8000)
*
* The most commonly needed values are already calculated and listed in the
* enum IXJ_TONE_FREQ.  Each tone index can have two frequencies with
* different gains, if you are only using a single frequency set the unused
* one to 0.
*
* The gain values range from 0 to 15 indicating +6dB to -24dB in 2dB
* increments.
*
******************************************************************************/

typedef enum {
	hz20 = 0x7ffa,
	hz50 = 0x7fe5,
	hz133 = 0x7f4c,
	hz200 = 0x7e6b,
	hz261 = 0x7d50,		/* .63 C1  */
	hz277 = 0x7cfa,		/* .18 CS1 */
	hz293 = 0x7c9f,		/* .66 D1  */
	hz300 = 0x7c75,
	hz311 = 0x7c32,		/* .13 DS1 */
	hz329 = 0x7bbf,		/* .63 E1  */
	hz330 = 0x7bb8,
	hz340 = 0x7b75,
	hz349 = 0x7b37,		/* .23 F1  */
	hz350 = 0x7b30,
	hz360 = 0x7ae9,
	hz369 = 0x7aa8,		/* .99 FS1 */
	hz380 = 0x7a56,
	hz392 = 0x79fa,		/* .00 G1  */
	hz400 = 0x79bb,
	hz415 = 0x7941,		/* .30 GS1 */
	hz420 = 0x7918,
	hz425 = 0x78ee,
	hz435 = 0x7899,
	hz440 = 0x786d,		/* .00 A1  */
	hz445 = 0x7842,
	hz450 = 0x7815,
	hz452 = 0x7803,
	hz466 = 0x7784,		/* .16 AS1 */
	hz475 = 0x7731,
	hz480 = 0x7701,
	hz493 = 0x7685,		/* .88 B1  */
	hz494 = 0x767b,
	hz500 = 0x7640,
	hz520 = 0x7578,
	hz523 = 0x7559,		/* .25 C2  */
	hz525 = 0x7544,
	hz540 = 0x74a7,
	hz554 = 0x7411,		/* .37 CS2 */
	hz587 = 0x72a1,		/* .33 D2  */
	hz590 = 0x727f,
	hz600 = 0x720b,
	hz620 = 0x711e,
	hz622 = 0x7106,		/* .25 DS2 */
	hz659 = 0x6f3b,		/* .26 E2  */
	hz660 = 0x6f2e,
	hz698 = 0x6d3d,		/* .46 F2  */
	hz700 = 0x6d22,
	hz739 = 0x6b09,		/* .99 FS2 */
	hz740 = 0x6afa,
	hz750 = 0x6a6c,
	hz770 = 0x694b,
	hz783 = 0x688b,		/* .99 G2  */
	hz800 = 0x678d,
	hz816 = 0x6698,
	hz830 = 0x65bf,		/* .61 GS2 */
	hz850 = 0x6484,
	hz857 = 0x6414,
	hz880 = 0x629f,		/* .00 A2  */
	hz900 = 0x6154,
	hz932 = 0x5f35,		/* .33 AS2 */
	hz935 = 0x5f01,
	hz941 = 0x5e9a,
	hz942 = 0x5e88,
	hz950 = 0x5dfd,
	hz975 = 0x5c44,
	hz1000 = 0x5a81,
	hz1020 = 0x5912,
	hz1050 = 0x56e2,
	hz1100 = 0x5320,
	hz1140 = 0x5007,
	hz1200 = 0x4b3b,
	hz1209 = 0x4a80,
	hz1215 = 0x4a02,
	hz1250 = 0x471c,
	hz1300 = 0x42e0,
	hz1330 = 0x4049,
	hz1336 = 0x3fc4,
	hz1366 = 0x3d22,
	hz1380 = 0x3be4,
	hz1400 = 0x3a1b,
	hz1450 = 0x3596,
	hz1477 = 0x331c,
	hz1500 = 0x30fb,
	hz1600 = 0x278d,
	hz1633 = 0x2462,
	hz1638 = 0x23e7,
	hz1645 = 0x233a,
	hz1750 = 0x18f8,
	hz1800 = 0x1405,
	hz1860 = 0xe0b,
	hz2100 = 0xf5f6,
	hz2130 = 0xf2f5,
	hz2450 = 0xd3b3,
	hz2750 = 0xb8e4
} IXJ_FREQ;

typedef enum {
	C1 = hz261,
	CS1 = hz277,
	D1 = hz293,
	DS1 = hz311,
	E1 = hz329,
	F1 = hz349,
	FS1 = hz369,
	G1 = hz392,
	GS1 = hz415,
	A1 = hz440,
	AS1 = hz466,
	B1 = hz493,
	C2 = hz523,
	CS2 = hz554,
	D2 = hz587,
	DS2 = hz622,
	E2 = hz659,
	F2 = hz698,
	FS2 = hz739,
	G2 = hz783,
	GS2 = hz830,
	A2 = hz880,
	AS2 = hz932,
} IXJ_NOTE;

typedef struct {
	int tone_index;
	int freq0;
	int gain0;
	int freq1;
	int gain1;
} IXJ_TONE;

#define IXJCTL_INIT_TONE		_IOW ('q', 0xC9, IXJ_TONE *)

/******************************************************************************
*
* The IXJCTL_TONE_CADENCE ioctl defines tone sequences used for various
* Call Progress Tones (CPT).  This is accomplished by setting up an array of
* IXJ_CADENCE_ELEMENT structures that sequentially define the states of
* the tone sequence.  The tone_on_time and tone_off time are in
* 250 microsecond intervals.  A pointer to this array is passed to the
* driver as the ce element of an IXJ_CADENCE structure.  The elements_used
* must be set to the number of IXJ_CADENCE_ELEMENTS in the array.  The
* termination variable defines what to do at the end of a cadence, the
* options are to play the cadence once and stop, to repeat the last
* element of the cadence indefinitely, or to repeat the entire cadence
* indefinitely.  The ce variable is a pointer to the array of IXJ_TONE
* structures.  If the freq0 variable is non-zero, the tone table contents
* for the tone_index are updated to the frequencies and gains defined.  It
* should be noted that DTMF tones cannot be reassigned, so if DTMF tone
* table indexes are used in a cadence the frequency and gain variables will
* be ignored.
*
* If the array elements contain frequency parameters the driver will
* initialize the needed tone table elements and begin playing the tone,
* there is no preset limit on the number of elements in the cadence.  If
* there is more than one frequency used in the cadence, sequential elements
* of different frequencies MUST use different tone table indexes.  Only one
* cadence can be played at a time.  It is possible to build complex
* cadences with multiple frequencies using 2 tone table indexes by
* alternating between them.
*
******************************************************************************/

typedef struct {
	int index;
	int tone_on_time;
	int tone_off_time;
	int freq0;
	int gain0;
	int freq1;
	int gain1;
} IXJ_CADENCE_ELEMENT;

typedef enum {
	PLAY_ONCE,
	REPEAT_LAST_ELEMENT,
	REPEAT_ALL
} IXJ_CADENCE_TERM;

typedef struct {
	int elements_used;
	IXJ_CADENCE_TERM termination;
	IXJ_CADENCE_ELEMENT *ce;
} IXJ_CADENCE;

#define IXJCTL_TONE_CADENCE		_IOW ('q', 0xCA, IXJ_CADENCE *)
/******************************************************************************
*
* This group of IOCTLs deal with the playback settings of the DSP
*
******************************************************************************/

#define IXJCTL_PLAY_CODEC               PHONE_PLAY_CODEC
#define IXJCTL_PLAY_START               PHONE_PLAY_START
#define IXJCTL_PLAY_STOP                PHONE_PLAY_STOP
#define IXJCTL_PLAY_DEPTH		PHONE_PLAY_DEPTH
#define IXJCTL_PLAY_VOLUME		PHONE_PLAY_VOLUME
#define IXJCTL_PLAY_LEVEL		PHONE_PLAY_LEVEL

/******************************************************************************
*
* This group of IOCTLs deal with the Acoustic Echo Cancellation settings
* of the DSP
*
* Issuing the IXJCTL_AEC_START command with a value of AEC_OFF has the
* same effect as IXJCTL_AEC_STOP.  This is to simplify slider bar
* controls.  IXJCTL_AEC_GET_LEVEL returns the current setting of the AEC.
******************************************************************************/
#define IXJCTL_AEC_START		_IOW ('q', 0xCB, int)
#define IXJCTL_AEC_STOP			_IO  ('q', 0xCC)
#define IXJCTL_AEC_GET_LEVEL		_IO  ('q', 0xCD)

#define AEC_OFF   0
#define AEC_LOW   1
#define AEC_MED   2
#define AEC_HIGH  3
#define AEC_AUTO  4
#define AEC_AGC   5
/******************************************************************************
*
* Call Progress Tones, DTMF, etc.
* IXJCTL_DTMF_OOB determines if DTMF signaling is sent as Out-Of-Band
* only.  If you pass a 1, DTMF is suppressed from the audio stream.
* Tone on and off times are in 250 microsecond intervals so
* ioctl(ixj1, IXJCTL_SET_TONE_ON_TIME, 360);
* will set the tone on time of board ixj1 to 360 * 250us = 90ms
* the default values of tone on and off times is 840 or 210ms
******************************************************************************/

#define IXJCTL_DTMF_READY		PHONE_DTMF_READY
#define IXJCTL_GET_DTMF                 PHONE_GET_DTMF
#define IXJCTL_GET_DTMF_ASCII           PHONE_GET_DTMF_ASCII
#define IXJCTL_DTMF_OOB			PHONE_DTMF_OOB
#define IXJCTL_EXCEPTION		PHONE_EXCEPTION
#define IXJCTL_PLAY_TONE		PHONE_PLAY_TONE
#define IXJCTL_SET_TONE_ON_TIME		PHONE_SET_TONE_ON_TIME
#define IXJCTL_SET_TONE_OFF_TIME	PHONE_SET_TONE_OFF_TIME
#define IXJCTL_GET_TONE_ON_TIME		PHONE_GET_TONE_ON_TIME
#define IXJCTL_GET_TONE_OFF_TIME	PHONE_GET_TONE_OFF_TIME
#define IXJCTL_GET_TONE_STATE		PHONE_GET_TONE_STATE
#define IXJCTL_BUSY			PHONE_BUSY
#define IXJCTL_RINGBACK			PHONE_RINGBACK
#define IXJCTL_DIALTONE			PHONE_DIALTONE
#define IXJCTL_CPT_STOP			PHONE_CPT_STOP

/******************************************************************************
* LineJACK specific IOCTLs
*
* The lsb 4 bits of the LED argument represent the state of each of the 4
* LED's on the LineJACK
******************************************************************************/

#define IXJCTL_SET_LED			_IOW ('q', 0xCE, int)
#define IXJCTL_MIXER			_IOW ('q', 0xCF, int)

/******************************************************************************
* 
* The master volume controls use attenuation with 32 levels from 0 to -62dB
* with steps of 2dB each, the defines should be OR'ed together then sent
* as the parameter to the mixer command to change the mixer settings.
* 
******************************************************************************/
#define MIXER_MASTER_L		0x0000
#define MIXER_MASTER_R		0x0100
#define ATT00DB			0x00
#define ATT02DB			0x01
#define ATT04DB			0x02
#define ATT06DB			0x03
#define ATT08DB			0x04
#define ATT10DB			0x05
#define ATT12DB			0x06
#define ATT14DB			0x07
#define ATT16DB			0x08
#define ATT18DB			0x09
#define ATT20DB			0x0A
#define ATT22DB			0x0B
#define ATT24DB			0x0C
#define ATT26DB			0x0D
#define ATT28DB			0x0E
#define ATT30DB			0x0F
#define ATT32DB			0x10
#define ATT34DB			0x11
#define ATT36DB			0x12
#define ATT38DB			0x13
#define ATT40DB			0x14
#define ATT42DB			0x15
#define ATT44DB			0x16
#define ATT46DB			0x17
#define ATT48DB			0x18
#define ATT50DB			0x19
#define ATT52DB			0x1A
#define ATT54DB			0x1B
#define ATT56DB			0x1C
#define ATT58DB			0x1D
#define ATT60DB			0x1E
#define ATT62DB			0x1F
#define MASTER_MUTE		0x80

/******************************************************************************
* 
* The input volume controls use gain with 32 levels from +12dB to -50dB
* with steps of 2dB each, the defines should be OR'ed together then sent
* as the parameter to the mixer command to change the mixer settings.
* 
******************************************************************************/
#define MIXER_PORT_CD_L		0x0600
#define MIXER_PORT_CD_R		0x0700
#define MIXER_PORT_LINE_IN_L	0x0800
#define MIXER_PORT_LINE_IN_R	0x0900
#define MIXER_PORT_POTS_REC	0x0C00
#define MIXER_PORT_MIC		0x0E00

#define GAIN12DB		0x00
#define GAIN10DB		0x01
#define GAIN08DB		0x02
#define GAIN06DB		0x03
#define GAIN04DB		0x04
#define GAIN02DB		0x05
#define GAIN00DB		0x06
#define GAIN_02DB		0x07
#define GAIN_04DB		0x08
#define GAIN_06DB		0x09
#define GAIN_08DB		0x0A
#define GAIN_10DB		0x0B
#define GAIN_12DB		0x0C
#define GAIN_14DB		0x0D
#define GAIN_16DB		0x0E
#define GAIN_18DB		0x0F
#define GAIN_20DB		0x10
#define GAIN_22DB		0x11
#define GAIN_24DB		0x12
#define GAIN_26DB		0x13
#define GAIN_28DB		0x14
#define GAIN_30DB		0x15
#define GAIN_32DB		0x16
#define GAIN_34DB		0x17
#define GAIN_36DB		0x18
#define GAIN_38DB		0x19
#define GAIN_40DB		0x1A
#define GAIN_42DB		0x1B
#define GAIN_44DB		0x1C
#define GAIN_46DB		0x1D
#define GAIN_48DB		0x1E
#define GAIN_50DB		0x1F
#define INPUT_MUTE		0x80

/******************************************************************************
* 
* The POTS volume control use attenuation with 8 levels from 0dB to -28dB
* with steps of 4dB each, the defines should be OR'ed together then sent
* as the parameter to the mixer command to change the mixer settings.
* 
******************************************************************************/
#define MIXER_PORT_POTS_PLAY	0x0F00

#define POTS_ATT_00DB		0x00
#define POTS_ATT_04DB		0x01
#define POTS_ATT_08DB		0x02
#define POTS_ATT_12DB		0x03
#define POTS_ATT_16DB		0x04
#define POTS_ATT_20DB		0x05
#define POTS_ATT_24DB		0x06
#define POTS_ATT_28DB		0x07
#define POTS_MUTE		0x80

/******************************************************************************
* 
* The DAA controls the interface to the PSTN port.  The driver loads the
* US coefficients by default, so if you live in a different country you
* need to load the set for your countries phone system.
* 
******************************************************************************/
#define IXJCTL_DAA_COEFF_SET		_IOW ('q', 0xD0, int)

#define DAA_US 		1	/*PITA 8kHz */
#define DAA_UK 		2	/*ISAR34 8kHz */
#define DAA_FRANCE 	3	/* */
#define DAA_GERMANY	4
#define DAA_AUSTRALIA	5
#define DAA_JAPAN	6

/******************************************************************************
* 
* Use IXJCTL_PORT to set or query the port the card is set to.  If the
* argument is set to PORT_QUERY, the return value of the ioctl will
* indicate which port is currently in use, otherwise it will change the
* port.
* 
******************************************************************************/
#define IXJCTL_PORT			_IOW ('q', 0xD1, int)

#define PORT_QUERY	0
#define PORT_POTS	1
#define PORT_PSTN	2
#define PORT_SPEAKER	3
#define PORT_HANDSET	4

#define IXJCTL_PSTN_SET_STATE		PHONE_PSTN_SET_STATE
#define IXJCTL_PSTN_GET_STATE		PHONE_PSTN_GET_STATE

#define PSTN_ON_HOOK	0
#define PSTN_RINGING	1
#define PSTN_OFF_HOOK	2
#define PSTN_PULSE_DIAL	3

/******************************************************************************
* 
* The DAA Analog GAIN sets 2 parameters at one time, the receive gain (AGRR), 
* and the transmit gain (AGX).  OR together the components and pass them
* as the parameter to IXJCTL_DAA_AGAIN.  The default setting is both at 0dB.
* 
******************************************************************************/
#define IXJCTL_DAA_AGAIN		_IOW ('q', 0xD2, int)

#define AGRR00DB	0x00	/* Analog gain in receive direction 0dB */
#define AGRR3_5DB	0x10	/* Analog gain in receive direction 3.5dB */
#define AGRR06DB	0x30	/* Analog gain in receive direction 6dB */

#define AGX00DB		0x00	/* Analog gain in transmit direction 0dB */
#define AGX_6DB		0x04	/* Analog gain in transmit direction -6dB */
#define AGX3_5DB	0x08	/* Analog gain in transmit direction 3.5dB */
#define AGX_2_5B	0x0C	/* Analog gain in transmit direction -2.5dB */

#define IXJCTL_PSTN_LINETEST		_IO  ('q', 0xD3)

#define IXJCTL_CID			_IOR ('q', 0xD4, PHONE_CID *)
#define IXJCTL_VMWI			_IOR ('q', 0xD8, int)
#define IXJCTL_CIDCW			_IOW ('q', 0xD9, PHONE_CID *)
/******************************************************************************
* 
* The wink duration is tunable with this ioctl.  The default wink duration  
* is 320ms.  You do not need to use this ioctl if you do not require a
* different wink duration.
* 
******************************************************************************/
#define IXJCTL_WINK_DURATION		PHONE_WINK_DURATION

/******************************************************************************
* 
* This ioctl will connect the POTS port to the PSTN port on the LineJACK
* In order for this to work properly the port selection should be set to
* the PSTN port with IXJCTL_PORT prior to calling this ioctl.  This will
* enable conference calls between PSTN callers and network callers.
* Passing a 1 to this ioctl enables the POTS<->PSTN connection while
* passing a 0 turns it back off.
* 
******************************************************************************/
#define IXJCTL_POTS_PSTN		_IOW ('q', 0xD5, int)

/******************************************************************************
*
* IOCTLs added by request.
*
* IXJCTL_HZ sets the value your Linux kernel uses for HZ as defined in
*           /usr/include/asm/param.h, this determines the fundamental
*           frequency of the clock ticks on your Linux system.  The kernel
*           must be rebuilt if you change this value, also all modules you
*           use (except this one) must be recompiled.  The default value
*           is 100, and you only need to use this IOCTL if you use some
*           other value.
*
*
* IXJCTL_RATE sets the number of times per second that the driver polls
*             the DSP.  This value cannot be larger than HZ.  By
*             increasing both of these values, you may be able to reduce
*             latency because the max hang time that can exist between the
*             driver and the DSP will be reduced.
*
******************************************************************************/

#define IXJCTL_HZ                       _IOW ('q', 0xE0, int)
#define IXJCTL_RATE                     _IOW ('q', 0xE1, int)
#define IXJCTL_FRAMES_READ		_IOR ('q', 0xE2, unsigned long)
#define IXJCTL_FRAMES_WRITTEN		_IOR ('q', 0xE3, unsigned long)
#define IXJCTL_READ_WAIT		_IOR ('q', 0xE4, unsigned long)
#define IXJCTL_WRITE_WAIT		_IOR ('q', 0xE5, unsigned long)
#define IXJCTL_DRYBUFFER_READ		_IOR ('q', 0xE6, unsigned long)
#define IXJCTL_DRYBUFFER_CLEAR		_IO  ('q', 0xE7)
#define IXJCTL_DTMF_PRESCALE		_IOW ('q', 0xE8, int)

/******************************************************************************
*
* This ioctl allows the user application to control what events the driver
* will send signals for, and what signals it will send for which event.
* By default, if signaling is enabled, all events will send SIGIO when
* they occur.  To disable signals for an event set the signal to 0.
*
******************************************************************************/
typedef enum {
	SIG_DTMF_READY,
	SIG_HOOKSTATE,
	SIG_FLASH,
	SIG_PSTN_RING,
	SIG_CALLER_ID,
	SIG_PSTN_WINK,
	SIG_F0, SIG_F1, SIG_F2, SIG_F3,
	SIG_FC0, SIG_FC1, SIG_FC2, SIG_FC3,
	SIG_READ_READY = 33,
	SIG_WRITE_READY = 34
} IXJ_SIGEVENT;

typedef struct {
	unsigned int event;
	int signal;
} IXJ_SIGDEF;

#define IXJCTL_SIGCTL			_IOW ('q', 0xE9, IXJ_SIGDEF *)

/******************************************************************************
*
* These ioctls allow the user application to change the gain in the 
* Smart Cable of the Internet Phone Card.  Sending -1 as a value will cause
* return value to be the current setting.  Valid values to set are 0x00 - 0x1F
*
* 11111 = +12 dB
* 10111 =   0 dB
* 00000 = -34.5 dB
*
* IXJCTL_SC_RXG sets the Receive gain
* IXJCTL_SC_TXG sets the Transmit gain
*
******************************************************************************/
#define IXJCTL_SC_RXG			_IOW ('q', 0xEA, int)
#define IXJCTL_SC_TXG			_IOW ('q', 0xEB, int)

/******************************************************************************
*
* The intercom IOCTL's short the output from one card to the input of the
* other and vice versa (actually done in the DSP read function).  It is only
* necessary to execute the IOCTL on one card, but it is necessary to have
* both devices open to be able to detect hook switch changes.  The record
* codec and rate of each card must match the playback codec and rate of
* the other card for this to work properly.
*
******************************************************************************/

#define IXJCTL_INTERCOM_START 		_IOW ('q', 0xFD, int)
#define IXJCTL_INTERCOM_STOP  		_IOW ('q', 0xFE, int)

/******************************************************************************
 *
 * new structure for accessing raw filter information
 *
 ******************************************************************************/

typedef struct {
	unsigned int filter;
	char enable;
	unsigned int coeff[19];
} IXJ_FILTER_RAW;

#endif

Filemanager

Name Type Size Permission Actions
byteorder Folder 0755
caif Folder 0755
can Folder 0755
dvb Folder 0755
hdlc Folder 0755
hsi Folder 0755
iio Folder 0755
isdn Folder 0755
mmc Folder 0755
netfilter Folder 0755
netfilter_arp Folder 0755
netfilter_bridge Folder 0755
netfilter_ipv4 Folder 0755
netfilter_ipv6 Folder 0755
nfsd Folder 0755
raid Folder 0755
spi Folder 0755
sunrpc Folder 0755
tc_act Folder 0755
tc_ematch Folder 0755
usb Folder 0755
wimax Folder 0755
a.out.h File 7.15 KB 0644
acct.h File 3.58 KB 0644
adb.h File 1.05 KB 0644
adfs_fs.h File 873 B 0644
affs_hardblocks.h File 1.45 KB 0644
agpgart.h File 3.83 KB 0644
aio_abi.h File 3.1 KB 0644
apm_bios.h File 3.46 KB 0644
arcfb.h File 150 B 0644
atalk.h File 960 B 0644
atm.h File 7.64 KB 0644
atm_eni.h File 585 B 0644
atm_he.h File 343 B 0644
atm_idt77105.h File 892 B 0644
atm_nicstar.h File 1.19 KB 0644
atm_tcp.h File 1.52 KB 0644
atm_zatm.h File 1.57 KB 0644
atmapi.h File 889 B 0644
atmarp.h File 1.2 KB 0644
atmbr2684.h File 3.13 KB 0644
atmclip.h File 513 B 0644
atmdev.h File 7.44 KB 0644
atmioc.h File 1.55 KB 0644
atmlec.h File 2.26 KB 0644
atmmpc.h File 4.07 KB 0644
atmppp.h File 576 B 0644
atmsap.h File 4.79 KB 0644
atmsvc.h File 1.75 KB 0644
audit.h File 18.03 KB 0644
auto_fs.h File 2.53 KB 0644
auto_fs4.h File 4.3 KB 0644
auxvec.h File 1.4 KB 0644
ax25.h File 2.7 KB 0644
b1lli.h File 1.62 KB 0644
baycom.h File 820 B 0644
bfs_fs.h File 1.79 KB 0644
binfmts.h File 565 B 0644
blkpg.h File 1.53 KB 0644
blktrace_api.h File 4.38 KB 0644
bpf.h File 22.04 KB 0644
bpf_common.h File 1.2 KB 0644
bpf_perf_event.h File 453 B 0644
bpqether.h File 952 B 0644
bsg.h File 2.37 KB 0644
bt-bmc.h File 508 B 0644
btrfs.h File 25.07 KB 0644
can.h File 5.46 KB 0644
capability.h File 11.25 KB 0644
capi.h File 2.99 KB 0644
cciss_defs.h File 3.14 KB 0644
cciss_ioctl.h File 2.63 KB 0644
cdrom.h File 28.12 KB 0644
cgroupstats.h File 2.1 KB 0644
chio.h File 5.16 KB 0644
cm4000_cs.h File 1.68 KB 0644
cn_proc.h File 3.19 KB 0644
coda.h File 17.09 KB 0644
coda_psdev.h File 720 B 0644
coff.h File 12.12 KB 0644
connector.h File 2.14 KB 0644
const.h File 673 B 0644
cramfs_fs.h File 2.68 KB 0644
cuda.h File 842 B 0644
cyclades.h File 16.65 KB 0644
cycx_cfm.h File 2.86 KB 0644
dcbnl.h File 24.5 KB 0644
dccp.h File 6.22 KB 0644
devlink.h File 9.66 KB 0644
dlm.h File 2.43 KB 0644
dlm_device.h File 2.42 KB 0644
dlm_netlink.h File 1.04 KB 0644
dlm_plock.h File 831 B 0644
dlmconstants.h File 4.9 KB 0644
dm-ioctl.h File 10.55 KB 0644
dm-log-userspace.h File 14.82 KB 0644
dn.h File 4.42 KB 0644
dqblk_xfs.h File 8.72 KB 0644
edd.h File 5.41 KB 0644
efs_fs_sb.h File 2.11 KB 0644
elf-em.h File 1.83 KB 0644
elf-fdpic.h File 1.04 KB 0644
elf.h File 12.69 KB 0644
elfcore.h File 2.86 KB 0644
errno.h File 23 B 0644
errqueue.h File 1.1 KB 0644
ethtool.h File 71.11 KB 0644
eventpoll.h File 1.76 KB 0644
fadvise.h File 779 B 0644
falloc.h File 2.72 KB 0644
fanotify.h File 3.52 KB 0644
fb.h File 16 KB 0644
fcntl.h File 2.16 KB 0644
fd.h File 11.31 KB 0644
fdreg.h File 5.23 KB 0644
fib_rules.h File 1.58 KB 0644
fiemap.h File 2.65 KB 0644
filter.h File 1.99 KB 0644
firewire-cdev.h File 42.86 KB 0644
firewire-constants.h File 3.16 KB 0644
flat.h File 2.04 KB 0644
fou.h File 617 B 0644
fs.h File 8.47 KB 0644
fsl_hypervisor.h File 7.05 KB 0644
fuse.h File 16.41 KB 0644
futex.h File 4.81 KB 0644
gameport.h File 834 B 0644
gen_stats.h File 1.5 KB 0644
genetlink.h File 1.82 KB 0644
gfs2_ondisk.h File 12 KB 0644
gigaset_dev.h File 1.35 KB 0644
hdlc.h File 574 B 0644
hdlcdrv.h File 2.78 KB 0644
hdreg.h File 22.11 KB 0644
hid.h File 1.79 KB 0644
hiddev.h File 6.13 KB 0644
hidraw.h File 1.41 KB 0644
hpet.h File 680 B 0644
hw_breakpoint.h File 679 B 0644
hyperv.h File 10.22 KB 0644
hysdn_if.h File 1.29 KB 0644
i2c-dev.h File 2.37 KB 0644
i2c.h File 6.66 KB 0644
i2o-dev.h File 11.22 KB 0644
i8k.h File 1.4 KB 0644
icmp.h File 2.82 KB 0644
icmpv6.h File 3.82 KB 0644
if.h File 9.26 KB 0644
if_addr.h File 1.7 KB 0644
if_addrlabel.h File 658 B 0644
if_alg.h File 816 B 0644
if_arcnet.h File 3.63 KB 0644
if_arp.h File 6.3 KB 0644
if_bonding.h File 4.66 KB 0644
if_bridge.h File 6.46 KB 0644
if_cablemodem.h File 922 B 0644
if_eql.h File 1.26 KB 0644
if_ether.h File 7.25 KB 0644
if_fc.h File 1.63 KB 0644
if_fddi.h File 3.6 KB 0644
if_frad.h File 2.89 KB 0644
if_hippi.h File 4.07 KB 0644
if_infiniband.h File 1.13 KB 0644
if_link.h File 19.58 KB 0644
if_ltalk.h File 147 B 0644
if_macsec.h File 5.42 KB 0644
if_packet.h File 7.15 KB 0644
if_phonet.h File 361 B 0644
if_plip.h File 596 B 0644
if_ppp.h File 29 B 0644
if_pppol2tp.h File 3.18 KB 0644
if_pppox.h File 4.64 KB 0644
if_slip.h File 809 B 0644
if_team.h File 2.48 KB 0644
if_tun.h File 3.71 KB 0644
if_tunnel.h File 3.03 KB 0644
if_vlan.h File 1.69 KB 0644
if_x25.h File 817 B 0644
ife.h File 288 B 0644
igmp.h File 2.88 KB 0644
in.h File 9.36 KB 0644
in6.h File 6.97 KB 0644
in_route.h File 873 B 0644
inet_diag.h File 2.77 KB 0644
inotify.h File 2.85 KB 0644
input.h File 32.52 KB 0644
ioctl.h File 100 B 0644
ip.h File 3.47 KB 0644
ip6_tunnel.h File 1.67 KB 0644
ip_vs.h File 12.77 KB 0644
ipc.h File 1.99 KB 0644
ipmi.h File 14.63 KB 0644
ipmi_msgdefs.h File 3.21 KB 0644
ipsec.h File 884 B 0644
ipv6.h File 3.66 KB 0644
ipv6_route.h File 1.73 KB 0644
ipx.h File 1.79 KB 0644
irda.h File 7.31 KB 0644
irqnr.h File 104 B 0644
isdn.h File 5.58 KB 0644
isdn_divertif.h File 1.11 KB 0644
isdn_ppp.h File 1.82 KB 0644
isdnif.h File 2.25 KB 0644
iso_fs.h File 6.29 KB 0644
ivtv.h File 2.89 KB 0644
ivtvfb.h File 1.12 KB 0644
ixjuser.h File 24.53 KB 0644
jffs2.h File 6.85 KB 0644
joystick.h File 3.5 KB 0644
kd.h File 6.04 KB 0644
kdev_t.h File 320 B 0644
kernel-page-flags.h File 788 B 0644
kernel.h File 375 B 0644
kernelcapi.h File 956 B 0644
kexec.h File 1.92 KB 0644
keyboard.h File 12.42 KB 0644
keyctl.h File 2.98 KB 0644
kvm.h File 33.89 KB 0644
kvm_para.h File 819 B 0644
l2tp.h File 4.98 KB 0644
libc-compat.h File 4.03 KB 0644
limits.h File 874 B 0644
llc.h File 2.98 KB 0644
loop.h File 2.31 KB 0644
lp.h File 3.72 KB 0644
lwtunnel.h File 839 B 0644
magic.h File 2.9 KB 0644
major.h File 4.48 KB 0644
map_to_7segment.h File 7.02 KB 0644
matroxfb.h File 1.37 KB 0644
mdio.h File 13.74 KB 0644
media.h File 3.5 KB 0644
mei.h File 4.62 KB 0644
membarrier.h File 7.71 KB 0644
memfd.h File 186 B 0644
mempolicy.h File 2.35 KB 0644
meye.h File 2.41 KB 0644
mii.h File 7.76 KB 0644
minix_fs.h File 2.01 KB 0644
mman.h File 230 B 0644
mmtimer.h File 2.01 KB 0644
mpls.h File 1.33 KB 0644
mqueue.h File 2.01 KB 0644
mroute.h File 4.06 KB 0644
mroute6.h File 4.08 KB 0644
msdos_fs.h File 6.28 KB 0644
msg.h File 3.21 KB 0644
mtio.h File 7.92 KB 0644
n_r3964.h File 2.29 KB 0644
nbd.h File 2.34 KB 0644
ncp.h File 4.94 KB 0644
ncp_fs.h File 3.27 KB 0644
ncp_mount.h File 2.06 KB 0644
ncp_no.h File 651 B 0644
ndctl.h File 6.6 KB 0644
neighbour.h File 4.17 KB 0644
net.h File 1.97 KB 0644
net_dropmon.h File 1.07 KB 0644
net_namespace.h File 609 B 0644
net_tstamp.h File 4.06 KB 0644
netconf.h File 423 B 0644
netdevice.h File 1.46 KB 0644
netfilter.h File 1.6 KB 0644
netfilter_arp.h File 380 B 0644
netfilter_bridge.h File 768 B 0644
netfilter_decnet.h File 1.83 KB 0644
netfilter_ipv4.h File 2.02 KB 0644
netfilter_ipv6.h File 2.04 KB 0644
netlink.h File 6.13 KB 0644
netlink_diag.h File 1005 B 0644
netrom.h File 744 B 0644
nfc.h File 7.72 KB 0644
nfs.h File 4.31 KB 0644
nfs2.h File 1.37 KB 0644
nfs3.h File 2.24 KB 0644
nfs4.h File 5.95 KB 0644
nfs4_mount.h File 1.83 KB 0644
nfs_fs.h File 1.51 KB 0644
nfs_idmap.h File 2.19 KB 0644
nfs_mount.h File 2.32 KB 0644
nfsacl.h File 605 B 0644
nl80211.h File 270.89 KB 0644
nubus.h File 8.17 KB 0644
nvme_ioctl.h File 1.55 KB 0644
nvram.h File 469 B 0644
omap3isp.h File 20.19 KB 0644
omapfb.h File 5.72 KB 0644
oom.h File 448 B 0644
openvswitch.h File 31.79 KB 0644
packet_diag.h File 1.5 KB 0644
param.h File 78 B 0644
parport.h File 3.56 KB 0644
patchkey.h File 829 B 0644
pci.h File 1.29 KB 0644
pci_regs.h File 50.79 KB 0644
perf_event.h File 31.96 KB 0644
personality.h File 1.99 KB 0644
pfkeyv2.h File 9.91 KB 0644
pg.h File 2.23 KB 0644
phantom.h File 1.55 KB 0644
phonet.h File 4.51 KB 0644
pkt_cls.h File 12.49 KB 0644
pkt_sched.h File 20.63 KB 0644
pktcdvd.h File 2.56 KB 0644
pmu.h File 5.13 KB 0644
poll.h File 22 B 0644
posix_types.h File 1.01 KB 0644
ppdev.h File 3.07 KB 0644
ppp-comp.h File 2.41 KB 0644
ppp-ioctl.h File 5.29 KB 0644
ppp_defs.h File 4.93 KB 0644
pps.h File 4.06 KB 0644
prctl.h File 6.75 KB 0644
psample.h File 735 B 0644
ptp_clock.h File 5.09 KB 0644
ptrace.h File 3.08 KB 0644
qnx4_fs.h File 2.21 KB 0644
qnxtypes.h File 561 B 0644
quota.h File 5.78 KB 0644
radeonfb.h File 297 B 0644
random.h File 1.2 KB 0644
raw.h File 302 B 0644
rds.h File 7.9 KB 0644
reboot.h File 1.25 KB 0644
reiserfs_fs.h File 712 B 0644
reiserfs_xattr.h File 470 B 0644
resource.h File 2.09 KB 0644
rfkill.h File 3.5 KB 0644
romfs_fs.h File 1.15 KB 0644
rose.h File 2.12 KB 0644
route.h File 2.21 KB 0644
rtc.h File 3.85 KB 0644
rtnetlink.h File 17.02 KB 0644
scc.h File 4.43 KB 0644
sched.h File 2.26 KB 0644
screen_info.h File 2.36 KB 0644
sctp.h File 29.53 KB 0644
sdla.h File 2.71 KB 0644
seccomp.h File 1.83 KB 0644
securebits.h File 2.58 KB 0644
selinux_netlink.h File 1.11 KB 0644
sem.h File 2.54 KB 0644
serial.h File 3.04 KB 0644
serial_core.h File 5.11 KB 0644
serial_reg.h File 15.66 KB 0644
serio.h File 1.81 KB 0644
shm.h File 2.19 KB 0644
signal.h File 171 B 0644
signalfd.h File 1.07 KB 0644
snmp.h File 12.42 KB 0644
sock_diag.h File 431 B 0644
socket.h File 738 B 0644
sockios.h File 5.83 KB 0644
som.h File 5.35 KB 0644
sonet.h File 2.17 KB 0644
sonypi.h File 5.12 KB 0644
sound.h File 1.15 KB 0644
soundcard.h File 44.96 KB 0644
stat.h File 1 KB 0644
stddef.h File 1 B 0644
string.h File 175 B 0644
suspend_ioctls.h File 1.34 KB 0644
swab.h File 6.36 KB 0644
synclink.h File 8.71 KB 0644
sysctl.h File 25.46 KB 0644
sysinfo.h File 986 B 0644
target_core_user.h File 3.65 KB 0644
taskstats.h File 6.83 KB 0644
tcp.h File 5.93 KB 0644
tcp_metrics.h File 1.45 KB 0644
telephony.h File 8.84 KB 0644
termios.h File 443 B 0644
time.h File 1.54 KB 0644
times.h File 215 B 0644
timex.h File 6.17 KB 0644
tiocl.h File 1.63 KB 0644
tipc.h File 5.44 KB 0644
tipc_config.h File 14.1 KB 0644
toshiba.h File 1.24 KB 0644
tty.h File 1.33 KB 0644
tty_flags.h File 3.66 KB 0644
types.h File 1.4 KB 0644
udf_fs_i.h File 634 B 0644
udp.h File 1.28 KB 0644
uhid.h File 2.15 KB 0644
uinput.h File 5 KB 0644
uio.h File 668 B 0644
ultrasound.h File 4.39 KB 0644
un.h File 239 B 0644
unistd.h File 157 B 0644
unix_diag.h File 1.1 KB 0644
usbdevice_fs.h File 6.78 KB 0644
userfaultfd.h File 6.59 KB 0644
utime.h File 152 B 0644
utsname.h File 606 B 0644
uuid.h File 1.5 KB 0644
uvcvideo.h File 1.6 KB 0644
v4l2-common.h File 2.38 KB 0644
v4l2-controls.h File 37.34 KB 0644
v4l2-dv-timings.h File 25.75 KB 0644
v4l2-mediabus.h File 4.55 KB 0644
v4l2-subdev.h File 5.27 KB 0644
version.h File 332 B 0644
veth.h File 161 B 0644
vfio.h File 26.54 KB 0644
vhost.h File 7.13 KB 0644
videodev2.h File 67.36 KB 0644
virtio_9p.h File 1.99 KB 0644
virtio_balloon.h File 3.71 KB 0644
virtio_blk.h File 5.2 KB 0644
virtio_config.h File 3.34 KB 0644
virtio_console.h File 2.94 KB 0644
virtio_gpu.h File 8.23 KB 0644
virtio_ids.h File 2.32 KB 0644
virtio_input.h File 2.45 KB 0644
virtio_net.h File 9.5 KB 0644
virtio_pci.h File 6.63 KB 0644
virtio_ring.h File 6.18 KB 0644
virtio_rng.h File 265 B 0644
virtio_scsi.h File 5.13 KB 0644
virtio_types.h File 2.11 KB 0644
virtio_vsock.h File 3.01 KB 0644
vm_sockets.h File 5.13 KB 0644
vsockmon.h File 1.78 KB 0644
vt.h File 2.98 KB 0644
vtpm_proxy.h File 1.62 KB 0644
wait.h File 600 B 0644
wanrouter.h File 390 B 0644
watchdog.h File 2.22 KB 0644
wimax.h File 8.17 KB 0644
wireless.h File 41.65 KB 0644
wmi.h File 1.84 KB 0644
x25.h File 3.42 KB 0644
xattr.h File 2.53 KB 0644
xfrm.h File 11 KB 0644