From 10b438a1cab4a6acf0d0788f77ef6079c4f15c4f Mon Sep 17 00:00:00 2001 From: Folkert Date: Thu, 18 Aug 2022 16:04:05 +0200 Subject: [PATCH 1/3] add missing SOF_TIMESTAMPING flags --- src/unix/linux_like/linux/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index aba691e5a85c6..66e36a3115ae6 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -2673,6 +2673,15 @@ pub const SOF_TIMESTAMPING_RX_SOFTWARE: ::c_uint = 1 << 3; pub const SOF_TIMESTAMPING_SOFTWARE: ::c_uint = 1 << 4; pub const SOF_TIMESTAMPING_SYS_HARDWARE: ::c_uint = 1 << 5; pub const SOF_TIMESTAMPING_RAW_HARDWARE: ::c_uint = 1 << 6; +pub const SOF_TIMESTAMPING_OPT_ID: ::c_uint = 1 << 7; +pub const SOF_TIMESTAMPING_TX_SCHED: ::c_uint = 1 << 8; +pub const SOF_TIMESTAMPING_TX_ACK: ::c_uint = 1 << 9; +pub const SOF_TIMESTAMPING_OPT_CMSG: ::c_uint = 1 << 10; +pub const SOF_TIMESTAMPING_OPT_TSONLY: ::c_uint = 1 << 11; +pub const SOF_TIMESTAMPING_OPT_STATS: ::c_uint = 1 << 12; +pub const SOF_TIMESTAMPING_OPT_PKTINFO: ::c_uint = 1 << 13; +pub const SOF_TIMESTAMPING_OPT_TX_SWHW: ::c_uint = 1 << 14; +pub const SOF_TIMESTAMPING_BIND_PHC: ::c_uint = 1 << 15; pub const SOF_TXTIME_DEADLINE_MODE: u32 = 1 << 0; pub const SOF_TXTIME_REPORT_ERRORS: u32 = 1 << 1; From 2ad2903dc02445fcb60dc84101875e591ab04e67 Mon Sep 17 00:00:00 2001 From: Folkert Date: Thu, 18 Aug 2022 16:16:16 +0200 Subject: [PATCH 2/3] add new consts to linux semver file --- libc-test/semver/linux.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index ab9f39f03fd1b..d60a7558759b0 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -2077,6 +2077,15 @@ SOF_TIMESTAMPING_SOFTWARE SOF_TIMESTAMPING_SYS_HARDWARE SOF_TIMESTAMPING_TX_HARDWARE SOF_TIMESTAMPING_TX_SOFTWARE +SOF_TIMESTAMPING_OPT_ID +SOF_TIMESTAMPING_TX_SCHED +SOF_TIMESTAMPING_TX_ACK +SOF_TIMESTAMPING_OPT_CMSG +SOF_TIMESTAMPING_OPT_TSONLY +SOF_TIMESTAMPING_OPT_STATS +SOF_TIMESTAMPING_OPT_PKTINFO +SOF_TIMESTAMPING_OPT_TX_SWHW +SOF_TIMESTAMPING_BIND_PHC SOF_TXTIME_DEADLINE_MODE SOF_TXTIME_REPORT_ERRORS SOL_AAL From 075ca1103f2d11c9f9b7fda0c0ae9f03c71b5dcf Mon Sep 17 00:00:00 2001 From: Folkert Date: Thu, 25 Aug 2022 11:49:27 +0200 Subject: [PATCH 3/3] remove SOF_TIMESTAMPING_BIND_PHC for now --- libc-test/semver/linux.txt | 1 - src/unix/linux_like/linux/mod.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index d60a7558759b0..5bdb3143d29f8 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -2085,7 +2085,6 @@ SOF_TIMESTAMPING_OPT_TSONLY SOF_TIMESTAMPING_OPT_STATS SOF_TIMESTAMPING_OPT_PKTINFO SOF_TIMESTAMPING_OPT_TX_SWHW -SOF_TIMESTAMPING_BIND_PHC SOF_TXTIME_DEADLINE_MODE SOF_TXTIME_REPORT_ERRORS SOL_AAL diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 66e36a3115ae6..97c0cfb192d8c 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -2681,7 +2681,6 @@ pub const SOF_TIMESTAMPING_OPT_TSONLY: ::c_uint = 1 << 11; pub const SOF_TIMESTAMPING_OPT_STATS: ::c_uint = 1 << 12; pub const SOF_TIMESTAMPING_OPT_PKTINFO: ::c_uint = 1 << 13; pub const SOF_TIMESTAMPING_OPT_TX_SWHW: ::c_uint = 1 << 14; -pub const SOF_TIMESTAMPING_BIND_PHC: ::c_uint = 1 << 15; pub const SOF_TXTIME_DEADLINE_MODE: u32 = 1 << 0; pub const SOF_TXTIME_REPORT_ERRORS: u32 = 1 << 1;