diff options
Diffstat (limited to 'include/uapi/linux/ptp_clock.h')
| -rw-r--r-- | include/uapi/linux/ptp_clock.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/uapi/linux/ptp_clock.h b/include/uapi/linux/ptp_clock.h index 94e981f810a2..b65c834f83e9 100644 --- a/include/uapi/linux/ptp_clock.h +++ b/include/uapi/linux/ptp_clock.h | |||
| @@ -67,12 +67,26 @@ struct ptp_perout_request { | |||
| 67 | unsigned int rsv[4]; /* Reserved for future use. */ | 67 | unsigned int rsv[4]; /* Reserved for future use. */ |
| 68 | }; | 68 | }; |
| 69 | 69 | ||
| 70 | #define PTP_MAX_SAMPLES 25 /* Maximum allowed offset measurement samples. */ | ||
| 71 | |||
| 72 | struct ptp_sys_offset { | ||
| 73 | unsigned int n_samples; /* Desired number of measurements. */ | ||
| 74 | unsigned int rsv[3]; /* Reserved for future use. */ | ||
| 75 | /* | ||
| 76 | * Array of interleaved system/phc time stamps. The kernel | ||
| 77 | * will provide 2*n_samples + 1 time stamps, with the last | ||
| 78 | * one as a system time stamp. | ||
| 79 | */ | ||
| 80 | struct ptp_clock_time ts[2 * PTP_MAX_SAMPLES + 1]; | ||
| 81 | }; | ||
| 82 | |||
| 70 | #define PTP_CLK_MAGIC '=' | 83 | #define PTP_CLK_MAGIC '=' |
| 71 | 84 | ||
| 72 | #define PTP_CLOCK_GETCAPS _IOR(PTP_CLK_MAGIC, 1, struct ptp_clock_caps) | 85 | #define PTP_CLOCK_GETCAPS _IOR(PTP_CLK_MAGIC, 1, struct ptp_clock_caps) |
| 73 | #define PTP_EXTTS_REQUEST _IOW(PTP_CLK_MAGIC, 2, struct ptp_extts_request) | 86 | #define PTP_EXTTS_REQUEST _IOW(PTP_CLK_MAGIC, 2, struct ptp_extts_request) |
| 74 | #define PTP_PEROUT_REQUEST _IOW(PTP_CLK_MAGIC, 3, struct ptp_perout_request) | 87 | #define PTP_PEROUT_REQUEST _IOW(PTP_CLK_MAGIC, 3, struct ptp_perout_request) |
| 75 | #define PTP_ENABLE_PPS _IOW(PTP_CLK_MAGIC, 4, int) | 88 | #define PTP_ENABLE_PPS _IOW(PTP_CLK_MAGIC, 4, int) |
| 89 | #define PTP_SYS_OFFSET _IOW(PTP_CLK_MAGIC, 5, struct ptp_sys_offset) | ||
| 76 | 90 | ||
| 77 | struct ptp_extts_event { | 91 | struct ptp_extts_event { |
| 78 | struct ptp_clock_time t; /* Time event occured. */ | 92 | struct ptp_clock_time t; /* Time event occured. */ |
