summaryrefslogtreecommitdiff
path: root/include/uapi/linux/ptp_clock.h
diff options
context:
space:
mode:
authorVincent Cheng <vincent.cheng.xh@renesas.com>2020-05-02 06:35:37 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-03 02:31:45 +0300
commitd3f1cbd29fa63f1bb608603a6cd54ca7af56a68b (patch)
treec8fa140f0d9e04e6f045ff5831a8a060295c981d /include/uapi/linux/ptp_clock.h
parent184ecc9eb260d5a3bcdddc5bebd18f285ac004e9 (diff)
downloadlinux-d3f1cbd29fa63f1bb608603a6cd54ca7af56a68b.tar.xz
ptp: Add adjust_phase to ptp_clock_caps capability.
Add adjust_phase to ptp_clock_caps capability to allow user to query if a PHC driver supports adjust phase with ioctl PTP_CLOCK_GETCAPS command. Signed-off-by: Vincent Cheng <vincent.cheng.xh@renesas.com> Reviewed-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/ptp_clock.h')
-rw-r--r--include/uapi/linux/ptp_clock.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/ptp_clock.h b/include/uapi/linux/ptp_clock.h
index 9dc9d0079e98..ff070aa64278 100644
--- a/include/uapi/linux/ptp_clock.h
+++ b/include/uapi/linux/ptp_clock.h
@@ -89,7 +89,9 @@ struct ptp_clock_caps {
int n_pins; /* Number of input/output pins. */
/* Whether the clock supports precise system-device cross timestamps */
int cross_timestamping;
- int rsv[13]; /* Reserved for future use. */
+ /* Whether the clock supports adjust phase */
+ int adjust_phase;
+ int rsv[12]; /* Reserved for future use. */
};
struct ptp_extts_request {