summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-26 20:24:28 +0000
committerphk <phk@FreeBSD.org>2002-04-26 20:24:28 +0000
commit0054f0f74b4415097c17e647b18be568e088debd (patch)
tree61c1590387f116655d9c80b8e7b3ced6030e81c9 /sys/pc98/cbus
parent8fb7b3e1de2f4a190bd736f36efaace478312ffe (diff)
downloadFreeBSD-src-0054f0f74b4415097c17e647b18be568e088debd.zip
FreeBSD-src-0054f0f74b4415097c17e647b18be568e088debd.tar.gz
Simplify the RFC2783 and PPS_SYNC timestamp collection API.
Diffstat (limited to 'sys/pc98/cbus')
-rw-r--r--sys/pc98/cbus/sio.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index 2295500..7ff3816 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -131,7 +131,6 @@
#include <sys/tty.h>
#include <machine/bus.h>
#include <sys/rman.h>
-#include <sys/timetc.h>
#include <sys/timepps.h>
#include <sys/uio.h>
@@ -2568,8 +2567,6 @@ siointr1(com)
u_char recv_data;
u_char int_ctl;
u_char int_ctl_new;
- struct timecounter *tc;
- u_int count;
#ifdef PC98
u_char tmp = 0;
@@ -2611,10 +2608,8 @@ more_intr:
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);
}
}
OpenPOWER on IntegriCloud