@@ -804,6 +804,32 @@ pub entrytable: __IncompleteArrayField<ip6t_entry>,
804
804
}
805
805
#[ repr( C ) ]
806
806
#[ derive( Debug , Copy , Clone ) ]
807
+ pub struct so_timestamping {
808
+ pub flags : crate :: ctypes:: c_int ,
809
+ pub bind_phc : crate :: ctypes:: c_int ,
810
+ }
811
+ #[ repr( C ) ]
812
+ #[ derive( Debug , Copy , Clone ) ]
813
+ pub struct hwtstamp_config {
814
+ pub flags : crate :: ctypes:: c_int ,
815
+ pub tx_type : crate :: ctypes:: c_int ,
816
+ pub rx_filter : crate :: ctypes:: c_int ,
817
+ }
818
+ #[ repr( C ) ]
819
+ #[ derive( Debug , Copy , Clone ) ]
820
+ pub struct scm_ts_pktinfo {
821
+ pub if_index : __u32 ,
822
+ pub pkt_length : __u32 ,
823
+ pub reserved : [ __u32 ; 2usize ] ,
824
+ }
825
+ #[ repr( C ) ]
826
+ #[ derive( Debug , Copy , Clone ) ]
827
+ pub struct sock_txtime {
828
+ pub clockid : __kernel_clockid_t ,
829
+ pub flags : __u32 ,
830
+ }
831
+ #[ repr( C ) ]
832
+ #[ derive( Debug , Copy , Clone ) ]
807
833
pub struct linger {
808
834
pub l_onoff : crate :: ctypes:: c_int ,
809
835
pub l_linger : crate :: ctypes:: c_int ,
@@ -1719,6 +1745,26 @@ pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
1719
1745
pub const NFPROTO_IPV6 : _bindgen_ty_9 = _bindgen_ty_9:: NFPROTO_IPV6 ;
1720
1746
pub const NFPROTO_DECNET : _bindgen_ty_9 = _bindgen_ty_9:: NFPROTO_DECNET ;
1721
1747
pub const NFPROTO_NUMPROTO : _bindgen_ty_9 = _bindgen_ty_9:: NFPROTO_NUMPROTO ;
1748
+ pub const SOF_TIMESTAMPING_TX_HARDWARE : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_TX_HARDWARE ;
1749
+ pub const SOF_TIMESTAMPING_TX_SOFTWARE : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_TX_SOFTWARE ;
1750
+ pub const SOF_TIMESTAMPING_RX_HARDWARE : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_RX_HARDWARE ;
1751
+ pub const SOF_TIMESTAMPING_RX_SOFTWARE : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_RX_SOFTWARE ;
1752
+ pub const SOF_TIMESTAMPING_SOFTWARE : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_SOFTWARE ;
1753
+ pub const SOF_TIMESTAMPING_SYS_HARDWARE : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_SYS_HARDWARE ;
1754
+ pub const SOF_TIMESTAMPING_RAW_HARDWARE : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_RAW_HARDWARE ;
1755
+ pub const SOF_TIMESTAMPING_OPT_ID : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_OPT_ID ;
1756
+ pub const SOF_TIMESTAMPING_TX_SCHED : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_TX_SCHED ;
1757
+ pub const SOF_TIMESTAMPING_TX_ACK : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_TX_ACK ;
1758
+ pub const SOF_TIMESTAMPING_OPT_CMSG : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_OPT_CMSG ;
1759
+ pub const SOF_TIMESTAMPING_OPT_TSONLY : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_OPT_TSONLY ;
1760
+ pub const SOF_TIMESTAMPING_OPT_STATS : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_OPT_STATS ;
1761
+ pub const SOF_TIMESTAMPING_OPT_PKTINFO : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_OPT_PKTINFO ;
1762
+ pub const SOF_TIMESTAMPING_OPT_TX_SWHW : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_OPT_TX_SWHW ;
1763
+ pub const SOF_TIMESTAMPING_BIND_PHC : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_BIND_PHC ;
1764
+ pub const SOF_TIMESTAMPING_OPT_ID_TCP : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_OPT_ID_TCP ;
1765
+ pub const SOF_TIMESTAMPING_OPT_RX_FILTER : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_OPT_RX_FILTER ;
1766
+ pub const SOF_TIMESTAMPING_LAST : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_OPT_RX_FILTER ;
1767
+ pub const SOF_TIMESTAMPING_MASK : _bindgen_ty_10 = _bindgen_ty_10:: SOF_TIMESTAMPING_MASK ;
1722
1768
#[ repr( u32 ) ]
1723
1769
#[ non_exhaustive]
1724
1770
#[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
@@ -2059,6 +2105,76 @@ NF_IP_PRI_SELINUX_LAST = 225,
2059
2105
NF_IP_PRI_CONNTRACK_HELPER = 300 ,
2060
2106
NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647 ,
2061
2107
}
2108
+ #[ repr( u32 ) ]
2109
+ #[ non_exhaustive]
2110
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2111
+ pub enum _bindgen_ty_10 {
2112
+ SOF_TIMESTAMPING_TX_HARDWARE = 1 ,
2113
+ SOF_TIMESTAMPING_TX_SOFTWARE = 2 ,
2114
+ SOF_TIMESTAMPING_RX_HARDWARE = 4 ,
2115
+ SOF_TIMESTAMPING_RX_SOFTWARE = 8 ,
2116
+ SOF_TIMESTAMPING_SOFTWARE = 16 ,
2117
+ SOF_TIMESTAMPING_SYS_HARDWARE = 32 ,
2118
+ SOF_TIMESTAMPING_RAW_HARDWARE = 64 ,
2119
+ SOF_TIMESTAMPING_OPT_ID = 128 ,
2120
+ SOF_TIMESTAMPING_TX_SCHED = 256 ,
2121
+ SOF_TIMESTAMPING_TX_ACK = 512 ,
2122
+ SOF_TIMESTAMPING_OPT_CMSG = 1024 ,
2123
+ SOF_TIMESTAMPING_OPT_TSONLY = 2048 ,
2124
+ SOF_TIMESTAMPING_OPT_STATS = 4096 ,
2125
+ SOF_TIMESTAMPING_OPT_PKTINFO = 8192 ,
2126
+ SOF_TIMESTAMPING_OPT_TX_SWHW = 16384 ,
2127
+ SOF_TIMESTAMPING_BIND_PHC = 32768 ,
2128
+ SOF_TIMESTAMPING_OPT_ID_TCP = 65536 ,
2129
+ SOF_TIMESTAMPING_OPT_RX_FILTER = 131072 ,
2130
+ SOF_TIMESTAMPING_MASK = 262143 ,
2131
+ }
2132
+ #[ repr( u32 ) ]
2133
+ #[ non_exhaustive]
2134
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2135
+ pub enum hwtstamp_flags {
2136
+ HWTSTAMP_FLAG_BONDED_PHC_INDEX = 1 ,
2137
+ }
2138
+ #[ repr( u32 ) ]
2139
+ #[ non_exhaustive]
2140
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2141
+ pub enum hwtstamp_tx_types {
2142
+ HWTSTAMP_TX_OFF = 0 ,
2143
+ HWTSTAMP_TX_ON = 1 ,
2144
+ HWTSTAMP_TX_ONESTEP_SYNC = 2 ,
2145
+ HWTSTAMP_TX_ONESTEP_P2P = 3 ,
2146
+ __HWTSTAMP_TX_CNT = 4 ,
2147
+ }
2148
+ #[ repr( u32 ) ]
2149
+ #[ non_exhaustive]
2150
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2151
+ pub enum hwtstamp_rx_filters {
2152
+ HWTSTAMP_FILTER_NONE = 0 ,
2153
+ HWTSTAMP_FILTER_ALL = 1 ,
2154
+ HWTSTAMP_FILTER_SOME = 2 ,
2155
+ HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3 ,
2156
+ HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4 ,
2157
+ HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5 ,
2158
+ HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6 ,
2159
+ HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7 ,
2160
+ HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8 ,
2161
+ HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9 ,
2162
+ HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10 ,
2163
+ HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11 ,
2164
+ HWTSTAMP_FILTER_PTP_V2_EVENT = 12 ,
2165
+ HWTSTAMP_FILTER_PTP_V2_SYNC = 13 ,
2166
+ HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14 ,
2167
+ HWTSTAMP_FILTER_NTP_ALL = 15 ,
2168
+ __HWTSTAMP_FILTER_CNT = 16 ,
2169
+ }
2170
+ #[ repr( u32 ) ]
2171
+ #[ non_exhaustive]
2172
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2173
+ pub enum txtime_flags {
2174
+ SOF_TXTIME_DEADLINE_MODE = 1 ,
2175
+ SOF_TXTIME_REPORT_ERRORS = 2 ,
2176
+ SOF_TXTIME_FLAGS_MASK = 3 ,
2177
+ }
2062
2178
#[ repr( C ) ]
2063
2179
#[ derive( Copy , Clone ) ]
2064
2180
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
@@ -3300,3 +3416,12 @@ pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
3300
3416
impl nf_ip_hook_priorities {
3301
3417
pub const NF_IP_PRI_LAST : nf_ip_hook_priorities = nf_ip_hook_priorities:: NF_IP_PRI_CONNTRACK_CONFIRM ;
3302
3418
}
3419
+ impl hwtstamp_flags {
3420
+ pub const HWTSTAMP_FLAG_LAST : hwtstamp_flags = hwtstamp_flags:: HWTSTAMP_FLAG_BONDED_PHC_INDEX ;
3421
+ }
3422
+ impl hwtstamp_flags {
3423
+ pub const HWTSTAMP_FLAG_MASK : hwtstamp_flags = hwtstamp_flags:: HWTSTAMP_FLAG_BONDED_PHC_INDEX ;
3424
+ }
3425
+ impl txtime_flags {
3426
+ pub const SOF_TXTIME_FLAGS_LAST : txtime_flags = txtime_flags:: SOF_TXTIME_REPORT_ERRORS ;
3427
+ }
0 commit comments