Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
343d9ec0
Commit
343d9ec0
authored
Oct 29, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: STAT_FAXIND and STAT_AUDIO handled by state machine
parent
05abe022
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
drivers/isdn/i4l/isdn_common.c
drivers/isdn/i4l/isdn_common.c
+22
-10
No files found.
drivers/isdn/i4l/isdn_common.c
View file @
343d9ec0
...
@@ -90,6 +90,8 @@ enum {
...
@@ -90,6 +90,8 @@ enum {
EV_SLOT_STAT_CINF
,
EV_SLOT_STAT_CINF
,
EV_SLOT_STAT_CAUSE
,
EV_SLOT_STAT_CAUSE
,
EV_SLOT_STAT_DISPLAY
,
EV_SLOT_STAT_DISPLAY
,
EV_SLOT_STAT_FAXIND
,
EV_SLOT_STAT_AUDIO
,
EV_SLOT_DATA_REQ
,
EV_SLOT_DATA_REQ
,
EV_SLOT_DATA_IND
,
EV_SLOT_DATA_IND
,
};
};
...
@@ -114,6 +116,8 @@ static char *slot_ev_str[] = {
...
@@ -114,6 +116,8 @@ static char *slot_ev_str[] = {
"EV_SLOT_STAT_CINF"
,
"EV_SLOT_STAT_CINF"
,
"EV_SLOT_STAT_CAUSE"
,
"EV_SLOT_STAT_CAUSE"
,
"EV_SLOT_STAT_DISPLAY"
,
"EV_SLOT_STAT_DISPLAY"
,
"EV_SLOT_STAT_FAXIND"
,
"EV_SLOT_STAT_AUDIO"
,
"EV_SLOT_DATA_REQ"
,
"EV_SLOT_DATA_REQ"
,
"EV_SLOT_DATA_IND"
,
"EV_SLOT_DATA_IND"
,
};
};
...
@@ -152,6 +156,7 @@ slot_bind(struct fsm_inst *fi, int pr, void *arg)
...
@@ -152,6 +156,7 @@ slot_bind(struct fsm_inst *fi, int pr, void *arg)
return
0
;
return
0
;
}
}
/* just pass through command */
static
int
static
int
slot_command
(
struct
fsm_inst
*
fi
,
int
pr
,
void
*
arg
)
slot_command
(
struct
fsm_inst
*
fi
,
int
pr
,
void
*
arg
)
{
{
...
@@ -160,6 +165,17 @@ slot_command(struct fsm_inst *fi, int pr, void *arg)
...
@@ -160,6 +165,17 @@ slot_command(struct fsm_inst *fi, int pr, void *arg)
return
isdn_command
(
ctrl
);
return
isdn_command
(
ctrl
);
}
}
/* just pass through status */
static
int
slot_stat
(
struct
fsm_inst
*
fi
,
int
pr
,
void
*
arg
)
{
struct
isdn_slot
*
slot
=
fi
->
userdata
;
isdn_ctrl
*
ctrl
=
arg
;
do_stat_cb
(
slot
,
ctrl
);
return
0
;
}
static
int
static
int
slot_dial
(
struct
fsm_inst
*
fi
,
int
pr
,
void
*
arg
)
slot_dial
(
struct
fsm_inst
*
fi
,
int
pr
,
void
*
arg
)
{
{
...
@@ -410,6 +426,8 @@ static struct fsm_node slot_fn_tbl[] = {
...
@@ -410,6 +426,8 @@ static struct fsm_node slot_fn_tbl[] = {
{
ST_SLOT_ACTIVE
,
EV_SLOT_CMD_HANGUP
,
slot_actv_hangup
},
{
ST_SLOT_ACTIVE
,
EV_SLOT_CMD_HANGUP
,
slot_actv_hangup
},
{
ST_SLOT_ACTIVE
,
EV_SLOT_STAT_BSENT
,
slot_bsent
},
{
ST_SLOT_ACTIVE
,
EV_SLOT_STAT_BSENT
,
slot_bsent
},
{
ST_SLOT_ACTIVE
,
EV_SLOT_STAT_BHUP
,
slot_bhup
},
{
ST_SLOT_ACTIVE
,
EV_SLOT_STAT_BHUP
,
slot_bhup
},
{
ST_SLOT_ACTIVE
,
EV_SLOT_STAT_FAXIND
,
slot_stat
},
{
ST_SLOT_ACTIVE
,
EV_SLOT_STAT_AUDIO
,
slot_stat
},
{
ST_SLOT_WAIT_BHUP
,
EV_SLOT_STAT_BHUP
,
slot_bhup
},
{
ST_SLOT_WAIT_BHUP
,
EV_SLOT_STAT_BHUP
,
slot_bhup
},
...
@@ -1168,6 +1186,10 @@ isdn_status_callback(isdn_ctrl * c)
...
@@ -1168,6 +1186,10 @@ isdn_status_callback(isdn_ctrl * c)
return
fsm_event
(
&
slots
[
i
].
fi
,
EV_SLOT_STAT_CAUSE
,
c
);
return
fsm_event
(
&
slots
[
i
].
fi
,
EV_SLOT_STAT_CAUSE
,
c
);
case
ISDN_STAT_DISPLAY
:
case
ISDN_STAT_DISPLAY
:
return
fsm_event
(
&
slots
[
i
].
fi
,
EV_SLOT_STAT_DISPLAY
,
c
);
return
fsm_event
(
&
slots
[
i
].
fi
,
EV_SLOT_STAT_DISPLAY
,
c
);
case
ISDN_STAT_FAXIND
:
return
fsm_event
(
&
slots
[
i
].
fi
,
EV_SLOT_STAT_FAXIND
,
c
);
case
ISDN_STAT_AUDIO
:
return
fsm_event
(
&
slots
[
i
].
fi
,
EV_SLOT_STAT_AUDIO
,
c
);
#if 0
#if 0
case ISDN_STAT_ICALL:
case ISDN_STAT_ICALL:
isdn_v110_stat_callback(&slots[i].iv110, c);
isdn_v110_stat_callback(&slots[i].iv110, c);
...
@@ -1309,16 +1331,6 @@ isdn_status_callback(isdn_ctrl * c)
...
@@ -1309,16 +1331,6 @@ isdn_status_callback(isdn_ctrl * c)
#endif
#endif
case
CAPI_PUT_MESSAGE
:
case
CAPI_PUT_MESSAGE
:
return
(
isdn_capi_rec_hl_msg
(
&
c
->
parm
.
cmsg
));
return
(
isdn_capi_rec_hl_msg
(
&
c
->
parm
.
cmsg
));
#ifdef CONFIG_ISDN_TTY_FAX
case
ISDN_STAT_FAXIND
:
// isdn_tty_stat_callback(i, c); FIXME
break
;
#endif
#ifdef CONFIG_ISDN_AUDIO
case
ISDN_STAT_AUDIO
:
// isdn_tty_stat_callback(i, c); FIXME
break
;
#endif
case
ISDN_STAT_PROT
:
case
ISDN_STAT_PROT
:
case
ISDN_STAT_REDIR
:
case
ISDN_STAT_REDIR
:
if
(
divert_if
)
if
(
divert_if
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment