summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/ntpd/refclock_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/ntpd/refclock_conf.c')
-rw-r--r--contrib/ntp/ntpd/refclock_conf.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/contrib/ntp/ntpd/refclock_conf.c b/contrib/ntp/ntpd/refclock_conf.c
index 71140c8..0e6c927 100644
--- a/contrib/ntp/ntpd/refclock_conf.c
+++ b/contrib/ntp/ntpd/refclock_conf.c
@@ -24,7 +24,7 @@ extern struct refclock refclock_local;
#define refclock_local refclock_none
#endif
-#ifdef CLOCK_TRAK
+#if defined(CLOCK_TRAK) && defined(PPS)
extern struct refclock refclock_trak;
#else
#define refclock_trak refclock_none
@@ -60,7 +60,7 @@ extern struct refclock refclock_parse;
#define refclock_parse refclock_none
#endif
-#if defined(CLOCK_MX4200) && defined(PPS)
+#if defined(CLOCK_MX4200) && defined(HAVE_PPSAPI)
extern struct refclock refclock_mx4200;
#else
#define refclock_mx4200 refclock_none
@@ -186,7 +186,7 @@ extern struct refclock refclock_palisade;
#define refclock_palisade refclock_none
#endif
-#ifdef CLOCK_ONCORE
+#if defined(CLOCK_ONCORE) && defined(HAVE_PPSAPI)
extern struct refclock refclock_oncore;
#else
#define refclock_oncore refclock_none
@@ -228,6 +228,17 @@ extern struct refclock refclock_fg;
#define refclock_fg refclock_none
#endif
+#ifdef CLOCK_HOPF_SERIAL
+extern struct refclock refclock_hopfser;
+#else
+#define refclock_hopfser refclock_none
+#endif
+
+#ifdef CLOCK_HOPF_PCI
+extern struct refclock refclock_hopfpci;
+#else
+#define refclock_hopfpci refclock_none
+#endif
/*
* Order is clock_start(), clock_shutdown(), clock_poll(),
@@ -273,7 +284,9 @@ struct refclock *refclock_conf[] = {
&refclock_ulink, /* 34 REFCLOCK_ULINK */
&refclock_pcf, /* 35 REFCLOCK_PCF */
&refclock_wwv, /* 36 REFCLOCK_WWV_AUDIO */
- &refclock_fg /* 37 REFCLOCK_FG */
+ &refclock_fg, /* 37 REFCLOCK_FG */
+ &refclock_hopfser, /* 38 REFCLK_HOPF_SERIAL */
+ &refclock_hopfpci /* 39 REFCLK_HOPF_PCI */
};
u_char num_refclock_conf = sizeof(refclock_conf)/sizeof(struct refclock *);
OpenPOWER on IntegriCloud