summaryrefslogtreecommitdiff
path: root/wcfxs.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcfxs.c')
-rwxr-xr-xwcfxs.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/wcfxs.c b/wcfxs.c
index 46fd001..5169d41 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -31,7 +31,6 @@
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
-
#include "proslic.h"
#include "wcfxs.h"
/*
@@ -205,6 +204,10 @@ static struct fxo_mode {
#include <linux/zaptel.h>
#endif
+#ifdef LINUX26
+#include <linux/moduleparam.h>
+#endif
+
#define NUM_FXO_REGS 60
#define WC_MAX_IFACES 128
@@ -2177,6 +2180,20 @@ static void __exit wcfxs_cleanup(void)
pci_unregister_driver(&wcfxs_driver);
}
+#ifdef LINUX26
+module_param(debug, int, 0600);
+module_param(loopcurrent, int, 0600);
+module_param(robust, int, 0600);
+module_param(_opermode, int, 0600);
+module_param(opermode, charp, 0600);
+module_param(timingonly, int, 0600);
+module_param(lowpower, int, 0600);
+module_param(boostringer, int, 0600);
+module_param(fxshonormode, int, 0600);
+module_param(battdebounce, int, 0600);
+module_param(battthresh, int, 0600);
+module_param(alawoverride, int, 0600);
+#else
MODULE_PARM(debug, "i");
MODULE_PARM(loopcurrent, "i");
MODULE_PARM(robust, "i");
@@ -2186,6 +2203,7 @@ MODULE_PARM(timingonly, "i");
MODULE_PARM(lowpower, "i");
MODULE_PARM(boostringer, "i");
MODULE_PARM(fxshonormode, "i");
+#endif
MODULE_DESCRIPTION("Wildcard TDM400P Zaptel Driver");
MODULE_AUTHOR("Mark Spencer <markster@digium.com>");
#ifdef MODULE_LICENSE