diff options
author | phk <phk@FreeBSD.org> | 2004-06-22 20:32:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-22 20:32:17 +0000 |
commit | ace6a2a6f79432011fed9481c5f9f9b446536686 (patch) | |
tree | ad4ae45210b605cb966e11ee6f220f4f467bea54 /sys/dev/sio/sio.c | |
parent | e680ed224dbb037b3663a8bd28aab746b956eb55 (diff) | |
download | FreeBSD-src-ace6a2a6f79432011fed9481c5f9f9b446536686.zip FreeBSD-src-ace6a2a6f79432011fed9481c5f9f9b446536686.tar.gz |
Remove the TIOCDCDTIMESTAMP option.
The RFC-2783 PPS-API (<sys/timepps.h>) provides better and more
configurable service.
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r-- | sys/dev/sio/sio.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 50a0ccb..59c2365 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); |