summaryrefslogtreecommitdiff
path: root/sys/dev/sio/sio.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-06-22 20:32:17 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-06-22 20:32:17 +0000
commitfdf5c3da040f8288257bed4ea955bba3671f9c1e (patch)
treead4ae45210b605cb966e11ee6f220f4f467bea54 /sys/dev/sio/sio.c
parent3db5687d2e21f53e6f089e3b5ae7501e5b1b0697 (diff)
Notes
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r--sys/dev/sio/sio.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 50a0ccbb0329..59c23657374b 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -251,9 +251,7 @@ struct com_s {
struct termios lt_out;
bool_t do_timestamp;
- bool_t do_dcd_timestamp;
struct timeval timestamp;
- struct timeval dcd_timestamp;
struct pps_state pps;
int pps_bit;
#ifdef ALT_BREAK_TO_DEBUGGER
@@ -1449,7 +1447,6 @@ comhardclose(com)
com->poll = FALSE;
com->poll_output = FALSE;
com->do_timestamp = FALSE;
- com->do_dcd_timestamp = FALSE;
com->pps.ppsparam.mode = 0;
sio_setreg(com, com_cfcr, com->cfcr_image &= ~CFCR_SBREAK);
tp = com->tp;
@@ -1914,11 +1911,6 @@ cont:
/* modem status change? (always check before doing output) */
modem_status = inb(com->modem_status_port);
if (modem_status != com->last_modem_status) {
- if (com->do_dcd_timestamp
- && !(com->last_modem_status & MSR_DCD)
- && modem_status & MSR_DCD)
- microtime(&com->dcd_timestamp);
-
/*
* Schedule high level to handle DCD changes. Note
* that we don't use the delta bits anywhere. Some
@@ -2160,10 +2152,6 @@ sioioctl(dev, cmd, data, flag, td)
com->do_timestamp = TRUE;
*(struct timeval *)data = com->timestamp;
break;
- case TIOCDCDTIMESTAMP:
- com->do_dcd_timestamp = TRUE;
- *(struct timeval *)data = com->dcd_timestamp;
- break;
default:
splx(s);
error = pps_ioctl(cmd, data, &com->pps);