|
Packit |
96c956 |
/*
|
|
Packit |
96c956 |
chronyd/chronyc - Programs for keeping computer clocks accurate.
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
**********************************************************************
|
|
Packit |
96c956 |
* Copyright (C) Richard P. Curnow 1997-2002
|
|
Packit |
96c956 |
*
|
|
Packit |
96c956 |
* This program is free software; you can redistribute it and/or modify
|
|
Packit |
96c956 |
* it under the terms of version 2 of the GNU General Public License as
|
|
Packit |
96c956 |
* published by the Free Software Foundation.
|
|
Packit |
96c956 |
*
|
|
Packit |
96c956 |
* This program is distributed in the hope that it will be useful, but
|
|
Packit |
96c956 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
96c956 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
96c956 |
* General Public License for more details.
|
|
Packit |
96c956 |
*
|
|
Packit |
96c956 |
* You should have received a copy of the GNU General Public License along
|
|
Packit |
96c956 |
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
Packit |
96c956 |
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit |
96c956 |
*
|
|
Packit |
96c956 |
**********************************************************************
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
=======================================================================
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
The header file for the linux driver
|
|
Packit |
96c956 |
*/
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
#ifndef GOT_SYS_LINUX_H
|
|
Packit |
96c956 |
#define GOT_SYS_LINUX_H
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
extern void SYS_Linux_Initialise(void);
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
extern void SYS_Linux_Finalise(void);
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
extern void SYS_Linux_DropRoot(uid_t uid, gid_t gid, int clock_control);
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
extern void SYS_Linux_EnableSystemCallFilter(int level);
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
extern int SYS_Linux_CheckKernelVersion(int req_major, int req_minor);
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
extern int SYS_Linux_OpenPHC(const char *path, int phc_index);
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
extern int SYS_Linux_GetPHCSample(int fd, int nocrossts, double precision, int *reading_mode,
|
|
Packit |
96c956 |
struct timespec *phc_ts, struct timespec *sys_ts, double *err);
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
extern int SYS_Linux_SetPHCExtTimestamping(int fd, int pin, int channel,
|
|
Packit |
96c956 |
int rising, int falling, int enable);
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
extern int SYS_Linux_ReadPHCExtTimestamp(int fd, struct timespec *phc_ts, int *channel);
|
|
Packit |
96c956 |
|
|
Packit |
96c956 |
#endif /* GOT_SYS_LINUX_H */
|