From a8eb12346828f232635b67739763850082f74a2f Mon Sep 17 00:00:00 2001 From: Noe Rubinstein Date: Wed, 29 Dec 2010 17:32:23 +0100 Subject: cosmetic --- xivovp/base.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'xivovp/base.c') 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; -- cgit v1.2.3