serial drivers.
ok patrick@
-/* $OpenBSD: exuart.c,v 1.8 2021/02/22 18:32:02 kettenis Exp $ */
+/* $OpenBSD: exuart.c,v 1.9 2021/09/01 09:29:31 jan Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@motorola.com>
*
void exuartcnpollc(dev_t dev, int on);
int exuart_param(struct tty *tp, struct termios *t);
void exuart_start(struct tty *);
-void exuart_pwroff(struct exuart_softc *sc);
void exuart_diag(void *arg);
void exuart_raisedtr(void *arg);
void exuart_softint(void *arg);
splx(s);
}
-void
-exuart_pwroff(struct exuart_softc *sc)
-{
-}
-
void
exuart_diag(void *arg)
{
*/
if (error && ISSET(tp->t_state, TS_WOPEN)) {
CLR(tp->t_state, TS_WOPEN);
- if (!sc->sc_cua && !ISSET(tp->t_state,
- TS_ISOPEN))
- exuart_pwroff(sc);
splx(s);
return error;
}
//CLR(sc->sc_ucr3, EXUART_CR3_DSR);
//bus_space_write_2(iot, ioh, EXUART_UCR3, sc->sc_ucr3);
timeout_add_sec(&sc->sc_dtr_tmo, 2);
- } else {
- /* no one else waiting; turn off the uart */
- exuart_pwroff(sc);
}
CLR(tp->t_state, TS_BUSY | TS_FLUSH);
sc->sc_cua = 0;
-/* $OpenBSD: imxuart.c,v 1.10 2021/08/31 12:24:15 jan Exp $ */
+/* $OpenBSD: imxuart.c,v 1.11 2021/09/01 09:29:31 jan Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@motorola.com>
*
void imxuartcnpollc(dev_t dev, int on);
int imxuart_param(struct tty *tp, struct termios *t);
void imxuart_start(struct tty *);
-void imxuart_pwroff(struct imxuart_softc *sc);
void imxuart_diag(void *arg);
void imxuart_raisedtr(void *arg);
void imxuart_softint(void *arg);
splx(s);
}
-void
-imxuart_pwroff(struct imxuart_softc *sc)
-{
-}
-
void
imxuart_diag(void *arg)
{
*/
if (error && ISSET(tp->t_state, TS_WOPEN)) {
CLR(tp->t_state, TS_WOPEN);
- if (!sc->sc_cua && !ISSET(tp->t_state,
- TS_ISOPEN))
- imxuart_pwroff(sc);
splx(s);
return error;
}
CLR(sc->sc_ucr3, IMXUART_CR3_DSR);
bus_space_write_2(iot, ioh, IMXUART_UCR3, sc->sc_ucr3);
timeout_add_sec(&sc->sc_dtr_tmo, 2);
- } else {
- /* no one else waiting; turn off the uart */
- imxuart_pwroff(sc);
}
CLR(tp->t_state, TS_BUSY | TS_FLUSH);
-/* $OpenBSD: pluart.c,v 1.6 2021/08/31 12:24:15 jan Exp $ */
+/* $OpenBSD: pluart.c,v 1.7 2021/09/01 09:29:31 jan Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2005 Dale Rahn <drahn@dalerahn.com>
void pluartcnpollc(dev_t dev, int on);
int pluart_param(struct tty *tp, struct termios *t);
void pluart_start(struct tty *);
-void pluart_pwroff(struct pluart_softc *sc);
void pluart_diag(void *arg);
void pluart_raisedtr(void *arg);
void pluart_softint(void *arg);
splx(s);
}
-void
-pluart_pwroff(struct pluart_softc *sc)
-{
-}
-
void
pluart_diag(void *arg)
{
*/
if (error && ISSET(tp->t_state, TS_WOPEN)) {
CLR(tp->t_state, TS_WOPEN);
- if (!sc->sc_cua && !ISSET(tp->t_state,
- TS_ISOPEN))
- pluart_pwroff(sc);
splx(s);
return error;
}
//CLR(sc->sc_ucr3, IMXUART_CR3_DSR);
//bus_space_write_4(iot, ioh, IMXUART_UCR3, sc->sc_ucr3);
timeout_add_sec(&sc->sc_dtr_tmo, 2);
- } else {
- /* no one else waiting; turn off the uart */
- pluart_pwroff(sc);
}
CLR(tp->t_state, TS_BUSY | TS_FLUSH);