blob: 69898a3d810c03c44162093e59c1ca6a92679bb7 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 _PPS_H_
20#define _PPS_H_
21#include <linux/types.h>
22#define PPS_VERSION "5.3.6"
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define PPS_MAX_SOURCES 16
25#define PPS_API_VERS_1 1
26#define PPS_API_VERS PPS_API_VERS_1
27#define PPS_MAX_NAME_LEN 32
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29struct pps_ktime {
Tao Baod7db5942015-01-28 10:07:51 -080030 __s64 sec;
31 __s32 nsec;
32 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34};
Tao Baod7db5942015-01-28 10:07:51 -080035#define PPS_TIME_INVALID (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -070036struct pps_kinfo {
Tao Baod7db5942015-01-28 10:07:51 -080037 __u32 assert_sequence;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 clear_sequence;
40 struct pps_ktime assert_tu;
41 struct pps_ktime clear_tu;
42 int current_mode;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44};
45struct pps_kparams {
Tao Baod7db5942015-01-28 10:07:51 -080046 int api_version;
47 int mode;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 struct pps_ktime assert_off_tu;
50 struct pps_ktime clear_off_tu;
Ben Cheng655a7c02013-10-16 16:09:24 -070051};
52#define PPS_CAPTUREASSERT 0x01
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define PPS_CAPTURECLEAR 0x02
55#define PPS_CAPTUREBOTH 0x03
56#define PPS_OFFSETASSERT 0x10
57#define PPS_OFFSETCLEAR 0x20
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define PPS_CANWAIT 0x100
60#define PPS_CANPOLL 0x200
61#define PPS_ECHOASSERT 0x40
62#define PPS_ECHOCLEAR 0x80
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define PPS_TSFMT_TSPEC 0x1000
65#define PPS_TSFMT_NTPFP 0x2000
66#define PPS_KC_HARDPPS 0
67#define PPS_KC_HARDPPS_PLL 1
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define PPS_KC_HARDPPS_FLL 2
70struct pps_fdata {
Tao Baod7db5942015-01-28 10:07:51 -080071 struct pps_kinfo info;
72 struct pps_ktime timeout;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74};
75struct pps_bind_args {
Tao Baod7db5942015-01-28 10:07:51 -080076 int tsformat;
77 int edge;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 int consumer;
Ben Cheng655a7c02013-10-16 16:09:24 -070080};
81#include <linux/ioctl.h>
82#define PPS_GETPARAMS _IOR('p', 0xa1, struct pps_kparams *)
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define PPS_SETPARAMS _IOW('p', 0xa2, struct pps_kparams *)
85#define PPS_GETCAP _IOR('p', 0xa3, int *)
86#define PPS_FETCH _IOWR('p', 0xa4, struct pps_fdata *)
87#define PPS_KC_BIND _IOW('p', 0xa5, struct pps_bind_args *)
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#endif