/contrib/ntp/kernel/sys/chudefs.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 22 lines · 9 code · 4 blank · 9 comment · 0 complexity · 6690102d51fc566b665964d01a4f5285 MD5 · raw file

  1. /*
  2. * Definitions for the CHU line discipline v2.0
  3. */
  4. /*
  5. * The CHU time code consists of 10 BCD digits and is repeated
  6. * twice for a total of 10 characters. A time is taken after
  7. * the arrival of each character. The following structure is
  8. * used to return this stuff.
  9. */
  10. #define NCHUCHARS (10)
  11. struct chucode {
  12. u_char codechars[NCHUCHARS]; /* code characters */
  13. u_char ncodechars; /* number of code characters */
  14. u_char chutype; /* packet type */
  15. struct timeval codetimes[NCHUCHARS]; /* arrival times */
  16. };
  17. #define CHU_TIME 0 /* second half is equal to first half */
  18. #define CHU_YEAR 1 /* second half is one's complement */