1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPI_LINUX_TIMEX_H 20 #define _UAPI_LINUX_TIMEX_H 21 #include <linux/time.h> 22 #define NTP_API 4 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 struct timex { 25 unsigned int modes; 26 long offset; 27 long freq; 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 long maxerror; 30 long esterror; 31 int status; 32 long constant; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 long precision; 35 long tolerance; 36 struct timeval time; 37 long tick; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 long ppsfreq; 40 long jitter; 41 int shift; 42 long stabil; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 long jitcnt; 45 long calcnt; 46 long errcnt; 47 long stbcnt; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 int tai; 50 int :32; int :32; int :32; int :32; 51 int :32; int :32; int :32; int :32; 52 int :32; int :32; int :32; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 }; 55 #define ADJ_OFFSET 0x0001 56 #define ADJ_FREQUENCY 0x0002 57 #define ADJ_MAXERROR 0x0004 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define ADJ_ESTERROR 0x0008 60 #define ADJ_STATUS 0x0010 61 #define ADJ_TIMECONST 0x0020 62 #define ADJ_TAI 0x0080 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define ADJ_SETOFFSET 0x0100 65 #define ADJ_MICRO 0x1000 66 #define ADJ_NANO 0x2000 67 #define ADJ_TICK 0x4000 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define ADJ_OFFSET_SINGLESHOT 0x8001 70 #define ADJ_OFFSET_SS_READ 0xa001 71 #define MOD_OFFSET ADJ_OFFSET 72 #define MOD_FREQUENCY ADJ_FREQUENCY 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define MOD_MAXERROR ADJ_MAXERROR 75 #define MOD_ESTERROR ADJ_ESTERROR 76 #define MOD_STATUS ADJ_STATUS 77 #define MOD_TIMECONST ADJ_TIMECONST 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #define MOD_TAI ADJ_TAI 80 #define MOD_MICRO ADJ_MICRO 81 #define MOD_NANO ADJ_NANO 82 #define STA_PLL 0x0001 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 #define STA_PPSFREQ 0x0002 85 #define STA_PPSTIME 0x0004 86 #define STA_FLL 0x0008 87 #define STA_INS 0x0010 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 #define STA_DEL 0x0020 90 #define STA_UNSYNC 0x0040 91 #define STA_FREQHOLD 0x0080 92 #define STA_PPSSIGNAL 0x0100 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 #define STA_PPSJITTER 0x0200 95 #define STA_PPSWANDER 0x0400 96 #define STA_PPSERROR 0x0800 97 #define STA_CLOCKERR 0x1000 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 #define STA_NANO 0x2000 100 #define STA_MODE 0x4000 101 #define STA_CLK 0x8000 102 #define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK) 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 #define TIME_OK 0 105 #define TIME_INS 1 106 #define TIME_DEL 2 107 #define TIME_OOP 3 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 #define TIME_WAIT 4 110 #define TIME_ERROR 5 111 #define TIME_BAD TIME_ERROR 112 #endif 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114