2 * /src/NTP/ntp-4/libparse/parse_conf.c,v 4.5 1999/11/28 09:13:53 kardel RELEASE_19991128_A
4 * parse_conf.c,v 4.5 1999/11/28 09:13:53 kardel RELEASE_19991128_A
6 * Parser configuration module for reference clocks
8 * STREAM define switches between two personalities of the module
9 * if STREAM is defined this module can be used with dcf77sync.c as
10 * a STREAMS kernel module. In this case the time stamps will be
12 * when STREAM is not defined NTP time stamps will be used.
14 * Copyright (C) 1995-1998 by Frank Kardel
15 * Copyright (C) 1992-1994 by Frank Kardel, Friedrich-Alexander Universität Erlangen-Nürnberg, Germany
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27 #if defined(REFCLOCK) && defined(CLOCK_PARSE)
30 #include "ntp_unixtime.h"
31 #include "ntp_calendar.h"
36 extern clockformat_t clock_schmid;
40 extern clockformat_t clock_dcf7000;
44 extern clockformat_t clock_meinberg[];
48 extern clockformat_t clock_rawdcf;
52 extern clockformat_t clock_trimtaip;
56 extern clockformat_t clock_trimtsip;
60 extern clockformat_t clock_rcc8000;
64 extern clockformat_t clock_hopf6021;
67 #ifdef CLOCK_COMPUTIME
68 extern clockformat_t clock_computime;
71 #ifdef CLOCK_WHARTON_400A
72 extern clockformat_t clock_wharton_400a;
76 extern clockformat_t clock_varitext;
82 clockformat_t *clockformats[] =
101 #ifdef CLOCK_TRIMTSIP
107 #ifdef CLOCK_HOPF6021
110 #ifdef CLOCK_COMPUTIME
113 #ifdef CLOCK_WHARTON_400A
116 #ifdef CLOCK_VARITEXT
121 unsigned short nformats = sizeof(clockformats) / sizeof(clockformats[0]) - 1;
123 #else /* not (REFCLOCK && CLOCK_PARSE) */
125 #endif /* not (REFCLOCK && CLOCK_PARSE) */
131 * Revision 4.5 1999/11/28 09:13:53 kardel
134 * Revision 4.4 1999/02/28 15:27:25 kardel
135 * wharton clock integration
137 * Revision 4.3 1998/08/16 18:52:15 kardel
138 * (clockformats): Trimble TSIP driver now also
139 * available for kernel operation
141 * Revision 4.2 1998/06/12 09:13:48 kardel
142 * conditional compile macros fixed
144 * Revision 4.1 1998/05/24 09:40:49 kardel
145 * adjustments of log messages
148 * from V3 3.24 log info deleted 1998/04/11 kardel