aboutsummaryrefslogtreecommitdiff
path: root/sys/pci
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-04-26 20:24:28 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-04-26 20:24:28 +0000
commit7bf758bff079c475d6bd99193fec252bbc4be8e8 (patch)
tree61c1590387f116655d9c80b8e7b3ced6030e81c9 /sys/pci
parent79dea31b974f32b819bd4e808117f1bd98319e23 (diff)
downloadsrc-7bf758bff079c475d6bd99193fec252bbc4be8e8.tar.gz
src-7bf758bff079c475d6bd99193fec252bbc4be8e8.zip
Simplify the RFC2783 and PPS_SYNC timestamp collection API.
Notes
Notes: svn path=/head/; revision=95523
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/xrpu.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/pci/xrpu.c b/sys/pci/xrpu.c
index 1cae322bf1d2..6a2f13cfa7e7 100644
--- a/sys/pci/xrpu.c
+++ b/sys/pci/xrpu.c
@@ -94,22 +94,28 @@ xrpu_poll_pps(struct timecounter *tc)
for (i = 0; i < XRPU_MAX_PPS; i++) {
if (sc->assert[i]) {
+ sc->pps[i].capgen = tc->tc_generation;
ppscount = *(sc->assert[i]) & tc->tc_counter_mask;
j = 0;
do {
count1 = ppscount;
ppscount = *(sc->assert[i]) & tc->tc_counter_mask;
} while (ppscount != count1 && ++j < 5);
- pps_event(&sc->pps[i], tc, ppscount, PPS_CAPTUREASSERT);
+ sc->pps[i].captc = tc;
+ sc->pps[i].capcount = ppscount;
+ pps_event(&sc->pps[i], PPS_CAPTUREASSERT);
}
if (sc->clear[i]) {
+ sc->pps[i].capgen = tc->tc_generation;
j = 0;
ppscount = *(sc->clear[i]) & tc->tc_counter_mask;
do {
count1 = ppscount;
ppscount = *(sc->clear[i]) & tc->tc_counter_mask;
} while (ppscount != count1 && ++j < 5);
- pps_event(&sc->pps[i], tc, ppscount, PPS_CAPTURECLEAR);
+ sc->pps[i].captc = tc;
+ sc->pps[i].capcount = ppscount;
+ pps_event(&sc->pps[i], PPS_CAPTURECLEAR);
}
}
}