|
Packit Service |
623930 |
/*
|
|
Packit Service |
623930 |
chronyd/chronyc - Programs for keeping computer clocks accurate.
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
**********************************************************************
|
|
Packit Service |
623930 |
* Copyright (C) Miroslav Lichvar 2015
|
|
Packit Service |
623930 |
*
|
|
Packit Service |
623930 |
* This program is free software; you can redistribute it and/or modify
|
|
Packit Service |
623930 |
* it under the terms of version 2 of the GNU General Public License as
|
|
Packit Service |
623930 |
* published by the Free Software Foundation.
|
|
Packit Service |
623930 |
*
|
|
Packit Service |
623930 |
* This program is distributed in the hope that it will be useful, but
|
|
Packit Service |
623930 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
623930 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
623930 |
* General Public License for more details.
|
|
Packit Service |
623930 |
*
|
|
Packit Service |
623930 |
* You should have received a copy of the GNU General Public License along
|
|
Packit Service |
623930 |
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
Packit Service |
623930 |
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit Service |
623930 |
*
|
|
Packit Service |
623930 |
**********************************************************************
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
=======================================================================
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
Header file for a driver based on the adjtimex()/ntp_adjtime() function
|
|
Packit Service |
623930 |
*/
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
#ifndef GOT_SYS_TIMEX_H
|
|
Packit Service |
623930 |
#define GOT_SYS_TIMEX_H
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
#include "localp.h"
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
extern void SYS_Timex_Initialise(void);
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
/* Initialise with some driver functions replaced with special versions */
|
|
Packit Service |
623930 |
extern void SYS_Timex_InitialiseWithFunctions(double max_set_freq_ppm, double max_set_freq_delay,
|
|
Packit Service |
623930 |
lcl_ReadFrequencyDriver sys_read_freq,
|
|
Packit Service |
623930 |
lcl_SetFrequencyDriver sys_set_freq,
|
|
Packit Service |
623930 |
lcl_ApplyStepOffsetDriver sys_apply_step_offset,
|
|
Packit Service |
623930 |
double min_fastslew_offset, double max_fastslew_rate,
|
|
Packit Service |
623930 |
lcl_AccrueOffsetDriver sys_accrue_offset,
|
|
Packit Service |
623930 |
lcl_OffsetCorrectionDriver sys_get_offset_correction);
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
extern void SYS_Timex_Finalise(void);
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
/* Wrapper for adjtimex()/ntp_adjtime() */
|
|
Packit Service |
623930 |
extern int SYS_Timex_Adjust(struct timex *txc, int ignore_error);
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
#endif /* GOT_SYS_GENERIC_H */
|