X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fskfp%2Fecm.c;h=7eaab1c3f9d2e26a131124147a0826b9f7a831cc;hb=9c920a8402f2bb9bd931801d429b65f4eb6a262b;hp=47d922cb3c08cada1c76e2422326ef9b2cbddf15;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/net/skfp/ecm.c b/drivers/net/skfp/ecm.c index 47d922cb3..7eaab1c3f 100644 --- a/drivers/net/skfp/ecm.c +++ b/drivers/net/skfp/ecm.c @@ -94,16 +94,17 @@ static const char * const ecm_events[] = { * function declarations */ -static void ecm_fsm(struct s_smc *smc, int cmd); -static void start_ecm_timer(struct s_smc *smc, u_long value, int event); -static void stop_ecm_timer(struct s_smc *smc); -static void prop_actions(struct s_smc *smc); +static void ecm_fsm() ; +static void start_ecm_timer() ; +static void stop_ecm_timer() ; +static void prop_actions() ; /* init ECM state machine clear all ECM vars and flags */ -void ecm_init(struct s_smc *smc) +void ecm_init(smc) +struct s_smc *smc ; { smc->e.path_test = PT_PASSED ; smc->e.trace_prop = 0 ; @@ -121,7 +122,9 @@ void ecm_init(struct s_smc *smc) process event until SM is stable */ -void ecm(struct s_smc *smc, int event) +void ecm(smc,event) +struct s_smc *smc ; +int event ; { int state ; @@ -140,7 +143,9 @@ void ecm(struct s_smc *smc, int event) /* process ECM event */ -static void ecm_fsm(struct s_smc *smc, int cmd) +static void ecm_fsm(smc,cmd) +struct s_smc *smc ; +int cmd ; { int ls_a ; /* current line state PHY A */ int ls_b ; /* current line state PHY B */ @@ -424,7 +429,8 @@ static void ecm_fsm(struct s_smc *smc, int cmd) /* * trace propagation actions for SAS & DAS */ -static void prop_actions(struct s_smc *smc) +static void prop_actions(smc) +struct s_smc *smc ; { int port_in = 0 ; int port_out = 0 ; @@ -474,7 +480,8 @@ static void prop_actions(struct s_smc *smc) /* * trace propagation actions for Concentrator */ -static void prop_actions(struct s_smc *smc) +static void prop_actions(smc) +struct s_smc *smc ; { int initiator ; int upstream ; @@ -520,7 +527,10 @@ static void prop_actions(struct s_smc *smc) * SMT timer interface * start ECM timer */ -static void start_ecm_timer(struct s_smc *smc, u_long value, int event) +static void start_ecm_timer(smc,value,event) +struct s_smc *smc ; +u_long value; +int event ; { smt_timer_start(smc,&smc->e.ecm_timer,value,EV_TOKEN(EVENT_ECM,event)); } @@ -529,7 +539,8 @@ static void start_ecm_timer(struct s_smc *smc, u_long value, int event) * SMT timer interface * stop ECM timer */ -static void stop_ecm_timer(struct s_smc *smc) +static void stop_ecm_timer(smc) +struct s_smc *smc ; { if (smc->e.ecm_timer.tm_active) smt_timer_stop(smc,&smc->e.ecm_timer) ;