version 1.45, 2000/11/02 00:42:38 |
version 1.46, 2000/12/19 16:23:57 |
Line 655 scn_config(unit, ispeed, ospeed, mr1, mr |
|
Line 655 scn_config(unit, ispeed, ospeed, mr1, mr |
|
} |
} |
} |
} |
} |
} |
return EINVAL; |
return EINVAL; |
|
|
gotit: |
gotit: |
s = spltty(); |
s = spltty(); |
Line 1005 scnattach(parent, self, aux) |
|
Line 1005 scnattach(parent, self, aux) |
|
printf("%c flags %d", delim, sc->sc_swflags); |
printf("%c flags %d", delim, sc->sc_swflags); |
delim = ','; |
delim = ','; |
} |
} |
|
|
#ifdef KGDB |
#ifdef KGDB |
if (kgdb_dev == makedev(scnmajor, unit)) { |
if (kgdb_dev == makedev(scnmajor, unit)) { |
if (scnconsole == unit) |
if (scnconsole == unit) |
Line 1127 scnopen(dev, flag, mode, p) |
|
Line 1127 scnopen(dev, flag, mode, p) |
|
* |
* |
* This used to be more compact (while loop with lots of nots) |
* This used to be more compact (while loop with lots of nots) |
* but it was incomprehensible. |
* but it was incomprehensible. |
* |
* |
* "getty" is the classic case of a program that waits here... |
* "getty" is the classic case of a program that waits here... |
*/ |
*/ |
for (;;) { |
for (;;) { |
Line 1271 dcd_int(sc, tp, new) |
|
Line 1271 dcd_int(sc, tp, new) |
|
#endif |
#endif |
|
|
/* XXX set some flag to have some lower (soft) int call line discipline? */ |
/* XXX set some flag to have some lower (soft) int call line discipline? */ |
if (!(*linesw[(u_char) tp->t_line].l_modem) (tp, new == 0? 1: 0)) { |
if (!(*tp->t_linesw->l_modem) (tp, new == 0? 1: 0)) { |
SCN_OP_BIC(sc, sc->sc_op_rts | sc->sc_op_dtr); |
SCN_OP_BIC(sc, sc->sc_op_rts | sc->sc_op_dtr); |
} |
} |
} |
} |
|
|
scn_setchip(sc0); |
scn_setchip(sc0); |
} |
} |
|
|
(*linesw[tp0->t_line].l_start) (tp0); |
(*tp0->t_linesw->l_start) (tp0); |
rs_work = TRUE; |
rs_work = TRUE; |
} |
} |
} |
} |
|
|
scn_setchip(sc1); |
scn_setchip(sc1); |
} |
} |
|
|
(*linesw[tp1->t_line].l_start) (tp1); |
(*tp1->t_linesw->l_start) (tp1); |
rs_work = TRUE; |
rs_work = TRUE; |
} |
} |
} |
} |
|
|
SCN_OP_BIS(sc, sc->sc_op_rts); |
SCN_OP_BIS(sc, sc->sc_op_rts); |
splx(s); |
splx(s); |
} |
} |
|
|
} |
} |
sc->sc_rbget = get; |
sc->sc_rbget = get; |
} |
} |