diff options
Diffstat (limited to 'libc/kernel/common/linux/timex.h')
-rw-r--r-- | libc/kernel/common/linux/timex.h | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/libc/kernel/common/linux/timex.h b/libc/kernel/common/linux/timex.h index a40459148..921231f99 100644 --- a/libc/kernel/common/linux/timex.h +++ b/libc/kernel/common/linux/timex.h @@ -22,22 +22,22 @@ #include <linux/time.h> /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #include <asm/param.h> -#define SHIFT_KG 6 -#define SHIFT_KF 16 -#define SHIFT_KH 2 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define MAXTC 6 -#define SHIFT_SCALE 22 -#define SHIFT_UPDATE (SHIFT_KG + MAXTC) -#define SHIFT_USEC 16 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define FINENSEC (1L << (SHIFT_SCALE - 10)) -#define MAXPHASE 512000L -#define MAXFREQ (512L << SHIFT_USEC) -#define MINSEC 16L -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define MAXSEC 1200L -#define NTP_PHASE_LIMIT (MAXPHASE << 5) +#define SHIFT_KG 6 +#define SHIFT_KF 16 +#define SHIFT_KH 2 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define MAXTC 6 +#define SHIFT_SCALE 22 +#define SHIFT_UPDATE (SHIFT_KG + MAXTC) +#define SHIFT_USEC 16 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define FINENSEC (1L << (SHIFT_SCALE - 10)) +#define MAXPHASE 512000L +#define MAXFREQ (512L << SHIFT_USEC) +#define MINSEC 16L +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define MAXSEC 1200L +#define NTP_PHASE_LIMIT (MAXPHASE << 5) struct timex { unsigned int modes; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ @@ -68,16 +68,16 @@ struct timex { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ int :32; int :32; int :32; int :32; }; -#define ADJ_OFFSET 0x0001 -#define ADJ_FREQUENCY 0x0002 +#define ADJ_OFFSET 0x0001 +#define ADJ_FREQUENCY 0x0002 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define ADJ_MAXERROR 0x0004 -#define ADJ_ESTERROR 0x0008 -#define ADJ_STATUS 0x0010 -#define ADJ_TIMECONST 0x0020 +#define ADJ_MAXERROR 0x0004 +#define ADJ_ESTERROR 0x0008 +#define ADJ_STATUS 0x0010 +#define ADJ_TIMECONST 0x0020 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define ADJ_TICK 0x4000 -#define ADJ_OFFSET_SINGLESHOT 0x8001 +#define ADJ_TICK 0x4000 +#define ADJ_OFFSET_SINGLESHOT 0x8001 #define MOD_OFFSET ADJ_OFFSET #define MOD_FREQUENCY ADJ_FREQUENCY /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ @@ -87,32 +87,32 @@ struct timex { #define MOD_TIMECONST ADJ_TIMECONST /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MOD_CLKB ADJ_TICK -#define MOD_CLKA ADJ_OFFSET_SINGLESHOT -#define STA_PLL 0x0001 -#define STA_PPSFREQ 0x0002 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define STA_PPSTIME 0x0004 -#define STA_FLL 0x0008 -#define STA_INS 0x0010 -#define STA_DEL 0x0020 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define STA_UNSYNC 0x0040 -#define STA_FREQHOLD 0x0080 -#define STA_PPSSIGNAL 0x0100 -#define STA_PPSJITTER 0x0200 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define STA_PPSWANDER 0x0400 -#define STA_PPSERROR 0x0800 -#define STA_CLOCKERR 0x1000 -#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | STA_PPSERROR | STA_CLOCKERR) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define TIME_OK 0 -#define TIME_INS 1 -#define TIME_DEL 2 -#define TIME_OOP 3 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define TIME_WAIT 4 -#define TIME_ERROR 5 -#define TIME_BAD TIME_ERROR +#define MOD_CLKA ADJ_OFFSET_SINGLESHOT +#define STA_PLL 0x0001 +#define STA_PPSFREQ 0x0002 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define STA_PPSTIME 0x0004 +#define STA_FLL 0x0008 +#define STA_INS 0x0010 +#define STA_DEL 0x0020 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define STA_UNSYNC 0x0040 +#define STA_FREQHOLD 0x0080 +#define STA_PPSSIGNAL 0x0100 +#define STA_PPSJITTER 0x0200 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define STA_PPSWANDER 0x0400 +#define STA_PPSERROR 0x0800 +#define STA_CLOCKERR 0x1000 +#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | STA_PPSERROR | STA_CLOCKERR) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define TIME_OK 0 +#define TIME_INS 1 +#define TIME_DEL 2 +#define TIME_OOP 3 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define TIME_WAIT 4 +#define TIME_ERROR 5 +#define TIME_BAD TIME_ERROR #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |