1 /* $NetBSD: clocktypes.c,v 1.2 2003/12/04 16:23:36 drochner Exp $ */
4 * Data for pretty printing clock types
10 #include "lib_strbuf.h"
11 #include "ntp_refclock.h"
12 #include "ntp_stdlib.h"
14 struct clktype clktypes
[] = {
15 { REFCLK_NONE
, "unspecified type (0)",
17 { REFCLK_LOCALCLOCK
, "Undisciplined local clock (1)",
19 { REFCLK_GPS_TRAK
, "TRAK 8810 GPS Receiver (2)",
21 { REFCLK_WWV_PST
, "PSTI/Traconex WWV/WWVH Receiver (3)",
23 { REFCLK_SPECTRACOM
, "Spectracom (generic) Receivers (4)",
25 { REFCLK_TRUETIME
, "TrueTime (generic) Receivers (5)",
27 { REFCLK_IRIG_AUDIO
, "IRIG Audio Decoder (6)",
29 { REFCLK_CHU_AUDIO
, "CHU Audio Demodulator/Decoder (7)",
31 { REFCLK_PARSE
, "Generic reference clock driver (8)",
33 { REFCLK_GPS_MX4200
, "Magnavox MX4200 GPS Receiver (9)",
35 { REFCLK_GPS_AS2201
, "Austron 2201A GPS Receiver (10)",
37 { REFCLK_GPS_ARBITER
, "Arbiter 1088A/B GPS Receiver (11)",
39 { REFCLK_IRIG_TPRO
, "KSI/Odetics TPRO/S IRIG Interface (12)",
41 { REFCLK_ATOM_LEITCH
, "Leitch CSD 5300 Master Clock Controller (13)",
43 { REFCLK_MSF_EES
, "EES M201 MSF Receiver (14)",
45 { REFCLK_NONE
, "not used (15)",
47 { REFCLK_IRIG_BANCOMM
, "Bancomm GPS/IRIG Receiver (16)",
49 { REFCLK_GPS_DATUM
, "Datum Precision Time System (17)",
51 { REFCLK_ACTS
, "Automated Computer Time Service (18)",
53 { REFCLK_WWV_HEATH
, "Heath WWV/WWVH Receiver (19)",
55 { REFCLK_GPS_NMEA
, "Generic NMEA GPS Receiver (20)",
57 { REFCLK_GPS_VME
, "TrueTime GPS-VME Interface (21)",
59 { REFCLK_ATOM_PPS
, "PPS Clock Discipline (22)",
61 { REFCLK_NONE
, "not used (23)",
63 { REFCLK_NONE
, "not used (24)",
65 { REFCLK_NONE
, "not used (25)",
67 { REFCLK_GPS_HP
, "HP 58503A GPS Time & Frequency Receiver (26)",
69 { REFCLK_ARCRON_MSF
, "ARCRON MSF (and DCF77) Receiver (27)",
71 { REFCLK_SHM
, "Clock attached thru shared Memory (28)",
73 { REFCLK_PALISADE
, "Trimble Navigation Palisade GPS (29)",
75 { REFCLK_ONCORE
, "Motorola UT Oncore GPS (30)",
77 { REFCLK_GPS_JUPITER
, "Rockwell Jupiter GPS (31)",
79 { REFCLK_CHRONOLOG
, "Chrono-log K (32)",
81 { REFCLK_DUMBCLOCK
, "Dumb generic hh:mm:ss local clock (33)",
83 { REFCLK_ULINK
, "Ultralink M320 WWVB receiver (34)",
85 { REFCLK_PCF
, "Conrad parallel port radio clock (35)",
87 { REFCLK_WWV_AUDIO
, "WWV/H Audio Demodulator/Decoder (36)",
89 { REFCLK_FG
, "Forum Graphic GPS Dating Station (37)",
91 { REFCLK_HOPF_SERIAL
, "hopf Elektronic serial line receiver (38)",
93 { REFCLK_HOPF_PCI
, "hopf Elektronic PCI receiver (39)",
95 { REFCLK_JJY
, "JJY receiver (40)",
97 { REFCLK_TT560
, "TrueTime 560 IRIG-B decoder (41)",
99 { REFCLK_ZYFER
, "Zyfer GPStarplus receiver (42)",
101 { REFCLK_RIPENCC
, "RIPE NCC Trimble driver (43)",
103 { REFCLK_NEOCLOCK4X
, "NeoClock4X DCF77 / TDF receiver (44)",
113 register struct clktype
*clk
;
115 for (clk
= clktypes
; clk
->code
!= -1; clk
++) {
116 if (num
== clk
->code
)
117 return (clk
->abbrev
);