Lines Matching +full:system +full:- +full:clock +full:- +full:frequency
21 * Added defines for hybrid phase/frequency-lock loop.
25 * defines for PPS phase-lock loop.
28 * Revised status codes and structures for external clock and PPS
45 * ntp_gettime - NTP user application interface
56 * ntp_adjtime - NTP daemon application interface
76 * phase-lock loop (PLL) model used in the kernel implementation. These
81 * establishes the timer interrupt frequency, 100 Hz for the SunOS
98 #define SHIFT_KF 16 /* PLL frequency factor (shift) */
99 #define SHIFT_KH 2 /* FLL frequency factor (shift) */
105 * possible without overflow of a 32-bit word.
108 * which serves as a an extension to the low-order bits of the system
109 * clock variable time.tv_usec.
116 * time_tolerance variables, which represent the current frequency
117 * offset and maximum frequency tolerance.
123 #define SHIFT_USEC 16 /* frequency offset scale (shift) */
135 * MAXPHASE must be set greater than or equal to CLOCK.MAX (128 ms), as
136 * defined in the NTP specification. CLOCK.MAX establishes the maximum
137 * time offset allowed before the system time is reset, rather than
142 * MAXFREQ is the maximum frequency tolerance of the CPU clock
144 * should be set to at least the frequency tolerance of the oscillator
145 * plus 100 ppm for vernier frequency adjustments. If the kernel
147 * frequency are disciplined to an external source, presumably with
148 * negligible time and frequency error relative to UTC, and MAXFREQ can
169 * The following defines are used only if a pulse-per-second (PPS)
172 * asynch driver. They establish the design parameters of the frequency-
173 * lock loop used to discipline the CPU clock oscillator to the PPS
176 * PPS_AVG is the averaging factor for the frequency loop, as well as
177 * the time and frequency dispersion.
197 * the ntp_gettime() and ntp_adjtime() system calls.
202 #define MOD_FREQUENCY 0x0002 /* set frequency offset */
205 #define MOD_STATUS 0x0010 /* set clock status bits */
216 #define STA_FLL 0x0008 /* select frequency-lock mode (rw) */
220 #define STA_UNSYNC 0x0040 /* clock unsynchronized (rw) */
221 #define STA_FREQHOLD 0x0080 /* hold frequency (rw) */
228 #define STA_CLOCKERR 0x1000 /* clock hardware fault (ro) */
231 STA_PPSERROR | STA_CLOCKERR) /* read-only bits */
234 * Clock states (time_state)
241 #define TIME_ERROR 5 /* clock not synchronized */
244 * NTP user interface (ntp_gettime()) - used to read kernel clock values
256 * NTP daemon interface - (ntp_adjtime()) used to discipline CPU clock
260 unsigned int modes; /* clock mode bits (wo) */
262 long freq; /* frequency offset (scaled ppm) (rw) */
265 int status; /* clock status bits (rw) */
267 long precision; /* clock precision (us) (ro) */
268 long tolerance; /* clock frequency tolerance (scaled
271 * The following read-only structure members are implemented
275 long ppsfreq; /* pps frequency (scaled ppm) (ro) */