Skip to content

Commit

Permalink
Auto merge of #2881 - folkertdev:sof-timestamping-add-missing, r=John…
Browse files Browse the repository at this point in the history
…Titor

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
  • Loading branch information
bors committed Aug 27, 2022
2 parents 75dd59e + 075ca11 commit a5553c2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libc-test/semver/linux.txt
Expand Up @@ -2077,6 +2077,14 @@ 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_TXTIME_DEADLINE_MODE
SOF_TXTIME_REPORT_ERRORS
SOL_AAL
Expand Down
8 changes: 8 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Expand Up @@ -2681,6 +2681,14 @@ 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_TXTIME_DEADLINE_MODE: u32 = 1 << 0;
pub const SOF_TXTIME_REPORT_ERRORS: u32 = 1 << 1;

Expand Down

0 comments on commit a5553c2

Please sign in to comment.