2
* Zaptel configuration options
9
#include <linux/version.h>
10
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
11
#include <linux/config.h>
15
/* Zaptel compile time options */
18
* Uncomment to disable calibration and/or DC/DC converter tests
19
* (not generally recommended)
21
/* #define NO_CALIBRATION */
25
* Boost ring voltage (Higher ring voltage, takes more power)
27
/* #define BOOST_RINGER */
30
* Define CONFIG_CALC_XLAW if you have a small number of channels and/or
31
* a small level 2 cache, to optimize for few channels
34
/* #define CONFIG_CALC_XLAW */
37
* Define if you want MMX optimizations in zaptel
39
* Note: CONFIG_ZAPTEL_MMX is generally incompatible with AMD
40
* processors and can cause system instability!
43
/* #define CONFIG_ZAPTEL_MMX */
46
* Pick your echo canceller: MARK2, MARK3, STEVE, or STEVE2 :)
49
/* #define ECHO_CAN_STEVE */
50
/* #define ECHO_CAN_STEVE2 */
51
/* #define ECHO_CAN_MARK */
52
/* #define ECHO_CAN_MARK2 */
53
/* #define ECHO_CAN_MARK3 */
55
/* MG2 is a version of KB1 that has some changes to it that are
56
* supposed to improve how it performs. If you have echo problems,
58
/* #define ECHO_CAN_MG2 */
61
* Uncomment for aggressive residual echo supression under
62
* MARK2 echo canceller
64
/* #define AGGRESSIVE_SUPPRESSOR */
67
* Define to turn off the echo canceler disable tone detector,
68
* which will cause zaptel to ignore the 2100 Hz echo cancel disable
71
/* #define NO_ECHOCAN_DISABLE */
74
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,1)
75
#define CONFIG_ZAP_UDEV
78
/* We now use the linux kernel config to detect which options to use */
79
/* You can still override them below */
80
#if defined(CONFIG_HDLC) || defined(CONFIG_HDLC_MODULE)
81
/* #define CONFIG_ZAPATA_NET */ /* NEVER implicitly turn on ZAPATA_NET */
82
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,20)
83
#define CONFIG_OLD_HDLC_API
85
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
86
/* Starting with 2.4.23 the kernel hdlc api changed again */
87
/* Now we have to use hdlc_type_trans(skb, dev) instead of htons(ETH_P_HDLC) */
88
#define ZAP_HDLC_TYPE_TRANS
90
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,3)
91
#define HDLC_MAINTAINERS_ARE_MORE_STUPID_THAN_I_THOUGHT
96
#define CONFIG_ZAPATA_PPP
100
* Uncomment CONFIG_ZAPATA_NET to enable SyncPPP, CiscoHDLC, and Frame Relay
103
/* #define CONFIG_ZAPATA_NET */
106
* Uncomment CONFIG_OLD_HDLC_API if your are compiling with ZAPATA_NET
107
* defined and you are using the old kernel HDLC interface (or if you get
108
* an error about ETH_P_HDLC while compiling).
110
/* #define CONFIG_OLD_HDLC_API */
113
* Uncomment for Generic PPP support (i.e. ZapRAS)
115
/* #define CONFIG_ZAPATA_PPP */
117
* Uncomment to enable "watchdog" to monitor if interfaces
118
* stop taking interrupts or otherwise misbehave
120
/* #define CONFIG_ZAPTEL_WATCHDOG */
123
#define DEFAULT_TONE_ZONE 0
126
* Uncomment for Non-standard FXS groundstart start state (A=Low, B=Low)
127
* particularly for CAC channel bank groundstart FXO ports.
129
/* #define CONFIG_CAC_GROUNDSTART */
132
* Uncomment if you happen have an early TDM400P Rev H which
133
* sometimes forgets its PCI ID to have wcfxs match essentially all
136
/* #define TDM_REVH_MATCHALL */
139
* Uncomment the following if you want to support E&M trunks being
140
* able to "flash" after going off-hook (dont ask why, just nod :-) ).
142
/* #define EMFLASH */
145
* Comment out the following if you dont want events to indicate the
146
* beginning of an incoming ring. Most non-Asterisk applications will
147
* want this commented out.
152
* Uncomment the following if you need to support FXS Flash events.
153
* Most applications will want this commented out.
155
/* #define FXSFLASH */