From f31b5dddae5f28604fc1c45c74ddb0e8dcda873b Mon Sep 17 00:00:00 2001 From: Kai Germaschewski Date: Sun, 6 Oct 2002 09:39:54 -0500 Subject: ISDN: Make the state machine explicit Add a finite state machine helper module, which is basically copied over from the hisax driver with a little bit of beautification. Eventually, all ISDN should be converted to using these routines. --- include/linux/isdn.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/linux/isdn.h b/include/linux/isdn.h index d35b0961de09..5ae4ef0d7ddc 100644 --- a/include/linux/isdn.h +++ b/include/linux/isdn.h @@ -16,6 +16,9 @@ #include +// FIXME!!! +#include <../drivers/isdn/i4l/isdn_fsm.h> + #ifdef CONFIG_COBALT_MICRO_SERVER /* Save memory */ #define ISDN_MAX_DRIVERS 2 @@ -367,8 +370,8 @@ typedef struct isdn_net_dev_s { int exclusive; /* -1 if non excl./idx to excl chan */ struct timer_list dial_timer; /* dial events timer */ + struct fsm_inst fi; /* call control state machine */ int dial_event; /* event in case of timer expiry */ - int dialstate; /* State for dialing */ int dial; /* # of phone number just dialed */ int outgoing; /* Flag: outgoing call */ int dialretry; /* Counter for Dialout-retries */ -- cgit v1.2.3