Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / include / gps.h
blob1957ae59da64a41457982caea3d1288d08f77624
1 /* $NetBSD$ */
3 /****************************************************************************/
4 /* gps.h */
5 /* TrueTime GPS-VME and VME-SG */
6 /* VME controller hardware commands and parameters. */
7 /* created 010694 res */
8 /* History: revised for 747i 3/94 */
9 /****************************************************************************/
12 #define GPS_VME "/dev/vme2" /* the device file for the GPS board */
13 /* change it to whatever yours is */
14 #define PRIO 120 /* set the realtime priority */
15 #define NREGS 7 /* number of registers we will use */
17 #define GFRZ1 0x0020 /* freeze cmd addr gen reg. 1 */
18 #define GREG1A 0x0021 /* Gen reg. 1 Word A (units microsec to 0.001 sec) */
19 #define GREG1B 0x0040 /* Gen reg. 1 Word B (units 0.01 sec to tens sec ) */
20 #define GREG1C 0x0041 /* Gen reg 1 Word C (units mins and hours) */
21 #define GREG1D 0x0042 /* Gen reg. 1 Word D (units days and status) */
22 #define GREG1E 0x0043 /* Gen reg. 1 Word E (units Years ) */
23 #define GUFRZ1 0x0022 /* unfreeze cmd addr gen reg 1 */
25 #define MASKDAY 0x0FFF /* mask for units days */
26 #define MASKHI 0xFF00
27 #define MASKLO 0x00FF
28 /* Use the following ASCII hex values: N(0x004e),S(0x0053),E(0x0045),
29 W(0x0057), +(0x002B), - (0x002D) */
31 #define LAT1 0x0048 /* Lat (degrees) */
32 #define LAT2 0x0049 /* Lat (min, sec) */
33 #define LAT3 0x004A /* Lat (N/S, tenths sec) */
34 #define LON1 0x004B /* Lon (degrees) */
35 #define LON2 0x004C /* Lon (min, sec) */
36 #define LON3 0x004D /* Lon (E/W, tenths sec) */
37 #define ELV1 0x004E /* Elev. (sign, 10,000 and 1000 ) */
38 #define ELV2 0x004F /* Elev. (100, 10s, units, and .1) */
40 #define CFREG1 0x0050 /* config. register 1 */
41 #define CFREG2 0x00A0 /* config. register 2 */
42 #define PMODE 0x00A4 /* Position mode */
43 #define LOCAL 0x0051 /* Local hours offset */
44 #define RATE 0x0054 /* Pulse rate output select */
45 #define DAC 0x0055 /* OSC Control (DAC) select */
47 #define PUMS 0x0056 /* Gen. preset register unit millisec */
48 #define PMS 0x0057 /* Gen. preset register units hundreds and tens ms */
49 #define PSEC 0x0058 /* Gen. preset register units tens and unit seconds */
50 #define PMIN 0x0059 /* Gen. preset register units tens and unit minutes */
51 #define PHRS 0x005A /* Gen. preset register units tens and unit hours */
52 #define PDYS1 0x005B /* Gen. preset register units tens and unit days */
53 #define PDYS2 0x005C /* Gen. preset register units hundreds days */
54 #define PYRS1 0x005D /* Gen. preset register units tens and unit years */
55 #define PYRS2 0x005E /* Gen. preset reg. units thousands and hundreds yrs */