Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 25 | unsigned int modes; |
| 26 | __kernel_long_t offset; |
| 27 | __kernel_long_t freq; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 | __kernel_long_t maxerror; |
| 30 | __kernel_long_t esterror; |
| 31 | int status; |
| 32 | __kernel_long_t constant; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 34 | __kernel_long_t precision; |
| 35 | __kernel_long_t tolerance; |
| 36 | struct timeval time; |
| 37 | __kernel_long_t tick; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | __kernel_long_t ppsfreq; |
| 40 | __kernel_long_t jitter; |
| 41 | int shift; |
| 42 | __kernel_long_t stabil; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 | __kernel_long_t jitcnt; |
| 45 | __kernel_long_t calcnt; |
| 46 | __kernel_long_t errcnt; |
| 47 | __kernel_long_t stbcnt; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 49 | int tai; |
| 50 | int : 32; |
| 51 | int : 32; |
| 52 | int : 32; |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | int : 32; |
| 55 | int : 32; |
| 56 | int : 32; |
| 57 | int : 32; |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 59 | int : 32; |
| 60 | int : 32; |
| 61 | int : 32; |
| 62 | int : 32; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 64 | }; |
| 65 | #define ADJ_OFFSET 0x0001 |
| 66 | #define ADJ_FREQUENCY 0x0002 |
| 67 | #define ADJ_MAXERROR 0x0004 |
| 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 69 | #define ADJ_ESTERROR 0x0008 |
| 70 | #define ADJ_STATUS 0x0010 |
| 71 | #define ADJ_TIMECONST 0x0020 |
| 72 | #define ADJ_TAI 0x0080 |
| 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 74 | #define ADJ_SETOFFSET 0x0100 |
| 75 | #define ADJ_MICRO 0x1000 |
| 76 | #define ADJ_NANO 0x2000 |
| 77 | #define ADJ_TICK 0x4000 |
| 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 79 | #define ADJ_OFFSET_SINGLESHOT 0x8001 |
| 80 | #define ADJ_OFFSET_SS_READ 0xa001 |
| 81 | #define MOD_OFFSET ADJ_OFFSET |
| 82 | #define MOD_FREQUENCY ADJ_FREQUENCY |
| 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 84 | #define MOD_MAXERROR ADJ_MAXERROR |
| 85 | #define MOD_ESTERROR ADJ_ESTERROR |
| 86 | #define MOD_STATUS ADJ_STATUS |
| 87 | #define MOD_TIMECONST ADJ_TIMECONST |
| 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 89 | #define MOD_TAI ADJ_TAI |
| 90 | #define MOD_MICRO ADJ_MICRO |
| 91 | #define MOD_NANO ADJ_NANO |
| 92 | #define STA_PLL 0x0001 |
| 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 94 | #define STA_PPSFREQ 0x0002 |
| 95 | #define STA_PPSTIME 0x0004 |
| 96 | #define STA_FLL 0x0008 |
| 97 | #define STA_INS 0x0010 |
| 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 99 | #define STA_DEL 0x0020 |
| 100 | #define STA_UNSYNC 0x0040 |
| 101 | #define STA_FREQHOLD 0x0080 |
| 102 | #define STA_PPSSIGNAL 0x0100 |
| 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 104 | #define STA_PPSJITTER 0x0200 |
| 105 | #define STA_PPSWANDER 0x0400 |
| 106 | #define STA_PPSERROR 0x0800 |
| 107 | #define STA_CLOCKERR 0x1000 |
| 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 109 | #define STA_NANO 0x2000 |
| 110 | #define STA_MODE 0x4000 |
| 111 | #define STA_CLK 0x8000 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 112 | #define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 114 | #define TIME_OK 0 |
| 115 | #define TIME_INS 1 |
| 116 | #define TIME_DEL 2 |
| 117 | #define TIME_OOP 3 |
| 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 119 | #define TIME_WAIT 4 |
| 120 | #define TIME_ERROR 5 |
| 121 | #define TIME_BAD TIME_ERROR |
| 122 | #endif |
| 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |