summaryrefslogtreecommitdiff
path: root/xivovp/base.c
diff options
context:
space:
mode:
authorNoe Rubinstein <nrubinstein@proformatique.com>2010-12-29 17:32:23 +0100
committerNoe Rubinstein <nrubinstein@proformatique.com>2010-12-29 17:32:23 +0100
commita8eb12346828f232635b67739763850082f74a2f (patch)
treeb29772e054d3eb8fe87046d7ca8a0799484d245d /xivovp/base.c
parent4a52d9c621622255653c4ef4e35cb291636c002f (diff)
cosmetic
Diffstat (limited to 'xivovp/base.c')
-rw-r--r--xivovp/base.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/xivovp/base.c b/xivovp/base.c
index 470ccc2..f94ebea 100644
--- a/xivovp/base.c
+++ b/xivovp/base.c
@@ -23,24 +23,26 @@
#define DRV_NAME "xivovp"
-#define TXQUEUE_LEN 16 /* WARNING TOTHINK possible DoS attack
- by overrunning this queue */
-
#define TRACES_VANISH_DEFAULT 2000
+static uint init_dbg = VP_DBG_ALL;
static int traces_vanish = TRACES_VANISH_DEFAULT;
static int alawoverride = 1; /* It's named like that in every DAHDI driver
except I prefer it to be 1 so the name
doesn't make much sense. */
+module_param(init_dbg, uint, 0444);
module_param(traces_vanish, int, 0444);
module_param(alawoverride, int, 0600);
+MODULE_PARM_DESC(init_dbg,
+ "initial VP_API debug mask (default: " __stringify(VP_DBG_ALL) ")");
MODULE_PARM_DESC(traces_vanish,
"number of " __stringify(VP_TICK_MS) "ms ticks after device init "
"complete event at which point VP-API II Lite traces will be reduced "
"to only ERROR/WARNING/INFO (default: "
__stringify(TRACES_VANISH_DEFAULT) ")");
-
+#define TXQUEUE_LEN 16 /* WARNING TOTHINK possible DoS attack
+ by overrunning this queue */
#define NB_LINES 2
#define TICK_JIFFIES(n) DIV_ROUND_UP(n * HZ, 1000)
#define VP_TICK_JIFFIES TICK_JIFFIES(VP_TICK_MS)
@@ -49,13 +51,6 @@ MODULE_PARM_DESC(traces_vanish,
| VP_DBG_WARNING \
| VP_DBG_INFO)
-static uint init_dbg = VP_DBG_ALL;
-
-module_param(init_dbg, uint, 0444);
-MODULE_PARM_DESC(init_dbg,
- "initial VP_API debug mask (default: " __stringify(VP_DBG_ALL) ")");
-
-enum xivovp_line_type { FXS_LINE = 0, FXO_LINE = 1 };
#define FXS_TIMESLOT (1)
#define FXO_TIMESLOT (3)
@@ -64,6 +59,7 @@ enum xivovp_line_type { FXS_LINE = 0, FXO_LINE = 1 };
#define TS_MASK ((1u << FXS_TIMESLOT) | (1u << FXO_TIMESLOT))
#endif
+enum xivovp_line_type { FXS_LINE = 0, FXO_LINE = 1 };
struct xivovp_line {
enum xivovp_line_type type;