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/cy | |
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/cy')
-rw-r--r-- | sys/dev/cy/cy.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index 50778d5..53caa3e 100644 --- a/sys/dev/cy/cy.c +++ b/sys/dev/cy/cy.c @@ -299,9 +299,7 @@ struct com_s { struct termios lt_out; bool_t do_timestamp; - bool_t do_dcd_timestamp; struct timeval timestamp; - struct timeval dcd_timestamp; u_long bytes_in; /* statistics */ u_long bytes_out; @@ -1283,11 +1281,6 @@ cont: ++com->mdm; modem_status = cd_inb(iobase, CD1400_MSVR2, cy_align); 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 @@ -1673,10 +1666,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); return (ENOTTY); |