summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-03-16 19:29:10 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-03-16 19:29:10 +0000
commit731da2af7fe1489237633affba26352799dfb50a (patch)
treea7214ea636a7bf7ca5b6ab68eb8e0d0ca1b34668 /include
parent96eca5d72ab2e0b4646df50d73285ed73922dcb7 (diff)
Move dahdi_config.h to be under include/dahdi/
This makes dahdi_config.h part of the "offcial" interface to external modules. Practically most of its configuration items are internal to dahdi-base. But some are intended for other drivers. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6177 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/dahdi_config.h177
-rw-r--r--include/dahdi/kernel.h2
2 files changed, 178 insertions, 1 deletions
diff --git a/include/dahdi/dahdi_config.h b/include/dahdi/dahdi_config.h
new file mode 100644
index 0000000..68a4517
--- /dev/null
+++ b/include/dahdi/dahdi_config.h
@@ -0,0 +1,177 @@
+/*
+ * DAHDI configuration options
+ *
+ */
+
+/*
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2 as published by the
+ * Free Software Foundation. See the LICENSE file included with
+ * this program for more details.
+ */
+
+#ifndef _DAHDI_CONFIG_H
+#define _DAHDI_CONFIG_H
+
+#ifdef __KERNEL__
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+#include <linux/config.h>
+#else
+#include <linux/autoconf.h>
+#endif
+#endif
+
+/* DAHDI compile time options */
+
+/*
+ * Uncomment if you have a European phone, or any other phone with a
+ * short flash time.
+ * This will stop the flash being mis-detected as a pulse dial "1" on
+ * phones with short flashes
+ */
+/* #define SHORT_FLASH_TIME */
+
+/*
+ * Uncomment to disable calibration and/or DC/DC converter tests
+ * (not generally recommended)
+ */
+/* #define NO_CALIBRATION */
+/* #define NO_DCDC */
+
+/*
+ * Boost ring voltage (Higher ring voltage, takes more power)
+ * Note: this only affects the wcfxsusb and wcusb drivers; all other
+ * drivers have a 'boostringer' module parameter.
+ */
+/* #define BOOST_RINGER */
+
+/*
+ * Define CONFIG_CALC_XLAW if you have a small number of channels and/or
+ * a small level 2 cache, to optimize for few channels
+ *
+ */
+/* #define CONFIG_CALC_XLAW */
+
+/*
+ * Define if you want MMX optimizations in DAHDI
+ *
+ * Note: CONFIG_DAHDI_MMX is generally incompatible with AMD
+ * processors and can cause system instability!
+ *
+ */
+/* #define CONFIG_DAHDI_MMX */
+
+/*
+ * Define to turn off the echo canceler disable tone detector,
+ * which will cause DAHDI to ignore the 2100 Hz echo cancel disable
+ * tone.
+ */
+/* #define NO_ECHOCAN_DISABLE */
+
+/* We now use the linux kernel config to detect which options to use */
+/* You can still override them below */
+#if defined(CONFIG_HDLC) || defined(CONFIG_HDLC_MODULE)
+#define DAHDI_HDLC_TYPE_TRANS
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,3)
+#define HDLC_MAINTAINERS_ARE_MORE_STUPID_THAN_I_THOUGHT
+#endif
+#endif
+
+#ifdef CONFIG_PPP
+#define CONFIG_DAHDI_PPP
+#endif
+
+/*
+ * Uncomment CONFIG_DAHDI_NET to enable SyncPPP, CiscoHDLC, and Frame Relay
+ * support.
+ */
+/* #define CONFIG_DAHDI_NET */
+
+/*
+ * Uncomment CONFIG_OLD_HDLC_API if your are compiling with CONFIG_DAHDI_NET
+ * defined and you are using the old kernel HDLC interface (or if you get
+ * an error about ETH_P_HDLC while compiling).
+ */
+/* #define CONFIG_OLD_HDLC_API */
+
+/*
+ * Uncomment for Generic PPP support (i.e. ZapRAS)
+ */
+/* #define CONFIG_DAHDI_PPP */
+/*
+ * Uncomment to enable "watchdog" to monitor if interfaces
+ * stop taking interrupts or otherwise misbehave
+ */
+/* #define CONFIG_DAHDI_WATCHDOG */
+
+/*
+ * Uncomment the following to include extra debugging output.
+ */
+/* #define CONFIG_DAHDI_DEBUG */
+
+/*
+ * Uncomment for Non-standard FXS groundstart start state (A=Low, B=Low)
+ * particularly for CAC channel bank groundstart FXO ports.
+ */
+/* #define CONFIG_CAC_GROUNDSTART */
+
+/*
+ * Uncomment if you happen have an early TDM400P Rev H which
+ * sometimes forgets its PCI ID to have wcfxs match essentially all
+ * subvendor ID's
+ */
+/* #define TDM_REVH_MATCHALL */
+
+/*
+ * Uncomment the following if you want to support E&M trunks being
+ * able to "flash" after going off-hook (dont ask why, just nod :-) ).
+ *
+ * NOTE: *DO NOT* Enable "EMFLASH" and "EMPULSE" at the same time!!
+ *
+ */
+/* #define EMFLASH */
+
+/*
+ * Uncomment the following if you want to support E&M trunks being
+ * able to recognize Dial Pulse digits. This can validly be enabled
+ * so that either Dial Pulse or DTMF/MF tones will be recognized, but
+ * the drawback is that the ONHOOK will take an extra {rxwinktime}
+ * to be recognized.
+ *
+ * NOTE: *DO NOT* Enable "EMFLASH" and "EMPULSE" at the same time!!
+ *
+ */
+/* #define EMPULSE */
+
+/*
+ * Comment out the following if you dont want events to indicate the
+ * beginning of an incoming ring. Most non-Asterisk applications will
+ * want this commented out.
+ */
+#define RINGBEGIN
+
+/*
+ * Uncomment the following if you need to support FXS Flash events.
+ * Most applications will want this commented out.
+ */
+/* #define FXSFLASH */
+
+/*
+ * Enable sync_tick() calls. Allows low-level drivers to synchronize
+ * their internal clocks to the DAHDI master clock.
+ */
+#define DAHDI_SYNC_TICK
+
+/*
+ * Skip processing PCM if low-level driver won't use it anyway
+ */
+/* #define OPTIMIZE_CHANMUTE */
+
+#endif
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 8be64ab..f974f52 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -36,7 +36,7 @@
#include <dahdi/user.h>
#include <dahdi/fasthdlc.h>
-#include "dahdi_config.h"
+#include <dahdi/dahdi_config.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
#include <linux/config.h>