Annotation of embedaddon/ntp/ports/winnt/include/clockstuff.h, revision 1.1
1.1 ! misho 1: #ifndef _CLOCKSTUFF_H
! 2: #define _CLOCKSTUFF_H
! 3:
! 4: #include <time.h>
! 5: #include <sys\timeb.h>
! 6:
! 7: #include "ntp_fp.h"
! 8: #include "ntp_syslog.h"
! 9:
! 10:
! 11: void init_winnt_time(void);
! 12: void reset_winnt_time(void);
! 13: void lock_thread_to_processor(HANDLE);
! 14:
! 15: /* 100ns intervals between 1/1/1601 and 1/1/1970 as reported by
! 16: * SystemTimeToFileTime()
! 17: */
! 18:
! 19: #define FILETIME_1970 0x019db1ded53e8000
! 20: #define HECTONANOSECONDS 10000000
! 21:
! 22: /*
! 23: * Multimedia Timer
! 24: */
! 25:
! 26: void set_mm_timer(int);
! 27:
! 28: enum {
! 29: MM_TIMER_LORES,
! 30: MM_TIMER_HIRES
! 31: };
! 32:
! 33: /*
! 34: * Optional callback from libntp ntp_set_tod() to Windows ntpd code
! 35: * in nt_clockstuff that needs to know. Optional because other
! 36: * libntp clients like ntpdate don't use it.
! 37: */
! 38:
! 39: typedef void (*time_stepped_callback)(void);
! 40: extern time_stepped_callback step_callback;
! 41:
! 42: /*
! 43: * get_sys_time_as_filetime is a function pointer to
! 44: * either GetSystemTimeAsFileTime provided by Windows
! 45: * or ntpd's interpolating replacement.
! 46: */
! 47:
! 48: typedef void (WINAPI *PGSTAFT)(LPFILETIME pft);
! 49: extern PGSTAFT get_sys_time_as_filetime;
! 50:
! 51: void lock_thread_to_processor(HANDLE);
! 52:
! 53: #ifdef HAVE_PPSAPI
! 54: /*
! 55: * ntp_timestamp_from_counter provides an interface for
! 56: * serialpps.sys counterstamps to be converted to
! 57: * interpolated timestamps.
! 58: */
! 59:
! 60: extern void ntp_timestamp_from_counter(l_fp *, ULONGLONG, ULONGLONG);
! 61: #endif
! 62:
! 63: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>