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/pc98/cbus/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/pc98/cbus/sio.c')
-rw-r--r-- | sys/pc98/cbus/sio.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index 050804b..fedf3d6 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -331,9 +331,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 @@ -2169,7 +2167,6 @@ comhardclose(com) com->poll = FALSE; com->poll_output = FALSE; com->do_timestamp = FALSE; - com->do_dcd_timestamp = FALSE; com->pps.ppsparam.mode = 0; #ifdef PC98 if (IS_8251(com->pc98_if_type)) @@ -2807,11 +2804,6 @@ cont: #endif 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 @@ -3135,10 +3127,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); @@ -3193,10 +3181,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); |