Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / kernel / sys / chudefs.h
blobda837d7a4e594d1a254e275c8255d134b8238a05
1 /* $NetBSD$ */
3 /*
4 * Definitions for the CHU line discipline v2.0
5 */
7 /*
8 * The CHU time code consists of 10 BCD digits and is repeated
9 * twice for a total of 10 characters. A time is taken after
10 * the arrival of each character. The following structure is
11 * used to return this stuff.
13 #define NCHUCHARS (10)
15 struct chucode {
16 u_char codechars[NCHUCHARS]; /* code characters */
17 u_char ncodechars; /* number of code characters */
18 u_char chutype; /* packet type */
19 struct timeval codetimes[NCHUCHARS]; /* arrival times */
22 #define CHU_TIME 0 /* second half is equal to first half */
23 #define CHU_YEAR 1 /* second half is one's complement */