diff options
author | phk <phk@FreeBSD.org> | 2002-04-26 20:24:28 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-26 20:24:28 +0000 |
commit | 0054f0f74b4415097c17e647b18be568e088debd (patch) | |
tree | 61c1590387f116655d9c80b8e7b3ced6030e81c9 /sys/dev/sio | |
parent | 8fb7b3e1de2f4a190bd736f36efaace478312ffe (diff) | |
download | FreeBSD-src-0054f0f74b4415097c17e647b18be568e088debd.zip FreeBSD-src-0054f0f74b4415097c17e647b18be568e088debd.tar.gz |
Simplify the RFC2783 and PPS_SYNC timestamp collection API.
Diffstat (limited to 'sys/dev/sio')
-rw-r--r-- | sys/dev/sio/sio.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 60be206..64205370 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -69,7 +69,6 @@ #include <machine/bus_pio.h> #include <machine/bus.h> #include <sys/rman.h> -#include <sys/timetc.h> #include <sys/timepps.h> #include <sys/uio.h> @@ -1725,8 +1724,6 @@ siointr1(com) u_char recv_data; u_char int_ctl; u_char int_ctl_new; - struct timecounter *tc; - u_int count; int_ctl = inb(com->intr_ctl_port); int_ctl_new = int_ctl; @@ -1735,10 +1732,8 @@ siointr1(com) if (com->pps.ppsparam.mode & PPS_CAPTUREBOTH) { modem_status = inb(com->modem_status_port); if ((modem_status ^ com->last_modem_status) & MSR_DCD) { - tc = timecounter; - count = tc->tc_get_timecount(tc); - pps_event(&com->pps, tc, count, - (modem_status & MSR_DCD) ? + pps_capture(&com->pps); + pps_event(&com->pps, (modem_status & MSR_DCD) ? PPS_CAPTUREASSERT : PPS_CAPTURECLEAR); } } |