summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-07-15 20:47:41 +0000
committerphk <phk@FreeBSD.org>2004-07-15 20:47:41 +0000
commitf00200d8a459bcf01e832c89518247e88ce28bf0 (patch)
treecb8932d8c884d3a6cc8f7e0616a4bdfa7fe0e5ee /sys/pc98
parent2f3742942cca7902c160ba9f75eae9a92e905e0f (diff)
downloadFreeBSD-src-f00200d8a459bcf01e832c89518247e88ce28bf0.zip
FreeBSD-src-f00200d8a459bcf01e832c89518247e88ce28bf0.tar.gz
Preparation commit for the tty cleanups that will follow in the near
future: rename ttyopen() -> tty_open() and ttyclose() -> tty_close(). We need the ttyopen() and ttyclose() for the new generic cdevsw functions for tty devices in order to have consistent naming.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/sio.c4
-rw-r--r--sys/pc98/pc98/sio.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index 74fc077..636d753 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -798,7 +798,7 @@ siodetach(dev)
if (com->tp && (com->tp->t_state & TS_ISOPEN)) {
device_printf(dev, "still open, forcing close\n");
ttyld_close(com->tp, 0);
- ttyclose(com->tp);
+ tty_close(com->tp);
} else {
if (com->ibuf != NULL)
free(com->ibuf, M_DEVBUF);
@@ -2142,7 +2142,7 @@ sioclose(dev, flag, mode, td)
#endif
ttyldoptim(tp);
comhardclose(com);
- ttyclose(tp);
+ tty_close(tp);
siosettimeout();
splx(s);
if (com->gone) {
diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c
index 74fc077..636d753 100644
--- a/sys/pc98/pc98/sio.c
+++ b/sys/pc98/pc98/sio.c
@@ -798,7 +798,7 @@ siodetach(dev)
if (com->tp && (com->tp->t_state & TS_ISOPEN)) {
device_printf(dev, "still open, forcing close\n");
ttyld_close(com->tp, 0);
- ttyclose(com->tp);
+ tty_close(com->tp);
} else {
if (com->ibuf != NULL)
free(com->ibuf, M_DEVBUF);
@@ -2142,7 +2142,7 @@ sioclose(dev, flag, mode, td)
#endif
ttyldoptim(tp);
comhardclose(com);
- ttyclose(tp);
+ tty_close(tp);
siosettimeout();
splx(s);
if (com->gone) {
OpenPOWER on IntegriCloud