Added support for keypad and display (ported from 2.0)

This commit is contained in:
Werner Cornelius 1999-07-04 21:01:59 +00:00
parent a402b85249
commit c4252b9c60
1 changed files with 17 additions and 1 deletions

View File

@ -20,6 +20,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log$
* Revision 1.64 1999/07/01 08:30:00 keil
* compatibility to 2.3 kernel
*
* Revision 1.63 1999/04/12 12:33:39 fritz
* Changes from 2.0 tree.
*
@ -2514,6 +2517,18 @@ isdn_tty_stat_callback(int i, isdn_ctrl * c)
/* Signal cause to tty-device */
strncpy(info->last_cause, c->parm.num, 5);
return 1;
case ISDN_STAT_DISPLAY:
#ifdef ISDN_TTY_STAT_DEBUG
printk(KERN_DEBUG "tty_STAT_DISPLAY ttyI%d\n", info->line);
#endif
/* Signal display to tty-device */
if ((info->emu.mdmreg[13] & 128) && !(info->emu.mdmreg[12] & 2)) {
isdn_tty_at_cout("\r\n", info);
isdn_tty_at_cout("DISPLAY: ", info);
isdn_tty_at_cout(c->parm.display, info);
isdn_tty_at_cout("\r\n", info);
}
return 1;
case ISDN_STAT_DCONN:
#ifdef ISDN_TTY_STAT_DEBUG
printk(KERN_DEBUG "tty_STAT_DCONN ttyI%d\n", info->line);
@ -2955,7 +2970,8 @@ isdn_tty_getdial(char *p, char *q,int cnt)
buffer overflow */
while (strchr("0123456789,#.*WPTS-", *p) && *p && --cnt>0) {
if ((*p >= '0' && *p <= '9') || ((*p == 'S') && first))
if ((*p >= '0' && *p <= '9') || ((*p == 'S') && first) ||
(*p == '*') || (*p == '#'))
*q++ = *p;
p++;
if(!--limit)