Skip to content

Commit 6413f0c

Browse files
committed
Auto merge of #2881 - folkertdev:sof-timestamping-add-missing, r=JohnTitor
add missing SOF_TIMESTAMPING flags These flags are useful for send (tx) timestamping in practice, and used by `@tweedegolf's` work on PTP and NTP
2 parents 75dd59e + 075ca11 commit 6413f0c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,6 +2077,14 @@ SOF_TIMESTAMPING_SOFTWARE
20772077
SOF_TIMESTAMPING_SYS_HARDWARE
20782078
SOF_TIMESTAMPING_TX_HARDWARE
20792079
SOF_TIMESTAMPING_TX_SOFTWARE
2080+
SOF_TIMESTAMPING_OPT_ID
2081+
SOF_TIMESTAMPING_TX_SCHED
2082+
SOF_TIMESTAMPING_TX_ACK
2083+
SOF_TIMESTAMPING_OPT_CMSG
2084+
SOF_TIMESTAMPING_OPT_TSONLY
2085+
SOF_TIMESTAMPING_OPT_STATS
2086+
SOF_TIMESTAMPING_OPT_PKTINFO
2087+
SOF_TIMESTAMPING_OPT_TX_SWHW
20802088
SOF_TXTIME_DEADLINE_MODE
20812089
SOF_TXTIME_REPORT_ERRORS
20822090
SOL_AAL

src/unix/linux_like/linux/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2681,6 +2681,14 @@ pub const SOF_TIMESTAMPING_RX_SOFTWARE: ::c_uint = 1 << 3;
26812681
pub const SOF_TIMESTAMPING_SOFTWARE: ::c_uint = 1 << 4;
26822682
pub const SOF_TIMESTAMPING_SYS_HARDWARE: ::c_uint = 1 << 5;
26832683
pub const SOF_TIMESTAMPING_RAW_HARDWARE: ::c_uint = 1 << 6;
2684+
pub const SOF_TIMESTAMPING_OPT_ID: ::c_uint = 1 << 7;
2685+
pub const SOF_TIMESTAMPING_TX_SCHED: ::c_uint = 1 << 8;
2686+
pub const SOF_TIMESTAMPING_TX_ACK: ::c_uint = 1 << 9;
2687+
pub const SOF_TIMESTAMPING_OPT_CMSG: ::c_uint = 1 << 10;
2688+
pub const SOF_TIMESTAMPING_OPT_TSONLY: ::c_uint = 1 << 11;
2689+
pub const SOF_TIMESTAMPING_OPT_STATS: ::c_uint = 1 << 12;
2690+
pub const SOF_TIMESTAMPING_OPT_PKTINFO: ::c_uint = 1 << 13;
2691+
pub const SOF_TIMESTAMPING_OPT_TX_SWHW: ::c_uint = 1 << 14;
26842692
pub const SOF_TXTIME_DEADLINE_MODE: u32 = 1 << 0;
26852693
pub const SOF_TXTIME_REPORT_ERRORS: u32 = 1 << 1;
26862694

0 commit comments

Comments
 (0)