* 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 ;
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 ;
/*
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 */
/*
* 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 ;
/*
* 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 ;
* 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));
}
* 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) ;