Skip to content

Commit 52b2015

Browse files
gzGerd Zellweger
authored andcommitted
Add SOF_TIMESTAMPING_* from linux/net_tstamp.h.
1 parent f68d06e commit 52b2015

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,6 +1679,25 @@ pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING;
16791679
pub const MODULE_INIT_IGNORE_MODVERSIONS: ::c_uint = 0x0001;
16801680
pub const MODULE_INIT_IGNORE_VERMAGIC: ::c_uint = 0x0002;
16811681

1682+
// linux/net_tstamp.h
1683+
pub const SOF_TIMESTAMPING_TX_HARDWARE: ::c_uint = 1 << 0;
1684+
pub const SOF_TIMESTAMPING_TX_SOFTWARE: ::c_uint = 1 << 1;
1685+
pub const SOF_TIMESTAMPING_RX_HARDWARE: ::c_uint = 1 << 2;
1686+
pub const SOF_TIMESTAMPING_RX_SOFTWARE: ::c_uint = 1 << 3;
1687+
pub const SOF_TIMESTAMPING_SOFTWARE: ::c_uint = 1 << 4;
1688+
pub const SOF_TIMESTAMPING_SYS_HARDWARE: ::c_uint = 1 << 5;
1689+
pub const SOF_TIMESTAMPING_RAW_HARDWARE: ::c_uint = 1 << 6;
1690+
pub const SOF_TIMESTAMPING_OPT_ID: ::c_uint = 1 << 7;
1691+
pub const SOF_TIMESTAMPING_TX_SCHED: ::c_uint = 1 << 8;
1692+
pub const SOF_TIMESTAMPING_TX_ACK: ::c_uint = 1 << 9;
1693+
pub const SOF_TIMESTAMPING_OPT_CMSG: ::c_uint = 1 << 10;
1694+
pub const SOF_TIMESTAMPING_OPT_TSONLY: ::c_uint = 1 << 11;
1695+
pub const SOF_TIMESTAMPING_OPT_STATS: ::c_uint = 1 << 12;
1696+
pub const SOF_TIMESTAMPING_OPT_PKTINFO: ::c_uint = 1 << 13;
1697+
pub const SOF_TIMESTAMPING_OPT_TX_SWHW: ::c_uint = 1 << 14;
1698+
pub const SOF_TIMESTAMPING_LAST: ::c_uint = SOF_TIMESTAMPING_OPT_TX_SWHW;
1699+
pub const SOF_TIMESTAMPING_MASK: ::c_uint = (SOF_TIMESTAMPING_LAST - 1) | SOF_TIMESTAMPING_LAST;
1700+
16821701
f! {
16831702
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {
16841703
for slot in cpuset.bits.iter_mut() {

0 commit comments

Comments
 (0)