summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/include/ntp_refclock.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/include/ntp_refclock.h')
-rw-r--r--contrib/ntp/include/ntp_refclock.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/contrib/ntp/include/ntp_refclock.h b/contrib/ntp/include/ntp_refclock.h
index 5e33a8c..d63f3af 100644
--- a/contrib/ntp/include/ntp_refclock.h
+++ b/contrib/ntp/include/ntp_refclock.h
@@ -65,6 +65,7 @@ struct clktype {
const char *clocktype; /* long description */
const char *abbrev; /* short description */
};
+extern struct clktype clktypes[];
/*
* Configuration flag values
@@ -163,13 +164,16 @@ struct refclockbug {
* modules to be installed/loaded in the kernel. If specified, but not
* installed, the code runs as if unspecified.
*/
-#define LDISC_STD 0x0 /* standard */
-#define LDISC_CLK 0x1 /* tty_clk \n intercept */
-#define LDISC_CLKPPS 0x2 /* tty_clk \377 intercept */
-#define LDISC_ACTS 0x4 /* tty_clk #* intercept */
-#define LDISC_CHU 0x8 /* depredated */
+#define LDISC_STD 0x00 /* standard */
+#define LDISC_CLK 0x01 /* tty_clk \n intercept */
+#define LDISC_CLKPPS 0x02 /* tty_clk \377 intercept */
+#define LDISC_ACTS 0x04 /* tty_clk #* intercept */
+#define LDISC_CHU 0x08 /* depredated */
#define LDISC_PPS 0x10 /* ppsclock, ppsapi */
#define LDISC_RAW 0x20 /* raw binary */
+#define LDISC_ECHO 0x40 /* enable echo */
+#define LDISC_REMOTE 0x80 /* remote mode */
+#define LDISC_7O1 0x100 /* 7-bit, odd parity for Z3801A */
struct refclockproc {
struct refclockio io; /* I/O handler structure */
@@ -234,7 +238,7 @@ struct refclock {
struct refclockstat *, struct peer *));
void (*clock_init) P((void));
void (*clock_buginfo) P((int, struct refclockbug *, struct peer *));
- u_long clock_flags;
+ void (*clock_timer) P((int, struct peer *));
};
/*
@@ -254,14 +258,16 @@ extern void refclock_buginfo P((struct sockaddr_storage *,
extern void refclock_control P((struct sockaddr_storage *,
struct refclockstat *,
struct refclockstat *));
-extern int refclock_open P((char *, int, int));
+extern int refclock_open P((char *, u_int, u_int));
+extern int refclock_setup P((int, u_int, u_int));
+extern void refclock_timer P((struct peer *));
extern void refclock_transmit P((struct peer *));
-extern int refclock_ioctl P((int, int));
+extern int refclock_ioctl P((int, u_int));
extern int refclock_process P((struct refclockproc *));
extern void refclock_process_offset P((struct refclockproc *, l_fp, l_fp, double));
extern void refclock_report P((struct peer *, int));
-extern int refclock_gtlin P((struct recvbuf *, char *, int,
- l_fp *));
+extern int refclock_gtlin P((struct recvbuf *, char *, int, l_fp *));
+extern int refclock_gtraw P((struct recvbuf *, char *, int, l_fp *));
#endif /* REFCLOCK */
#endif /* NTP_REFCLOCK_H */
OpenPOWER on IntegriCloud