@@ -1194,33 +1194,6 @@ s! {
1194
1194
pub chan: :: c_uint,
1195
1195
pub rsv: [ :: c_uint; 5 ] ,
1196
1196
}
1197
-
1198
- pub struct ptp_clock_caps {
1199
- pub max_adj: :: c_int,
1200
- pub n_alarm: :: c_int,
1201
- pub n_ext_ts: :: c_int,
1202
- pub n_per_out: :: c_int,
1203
- pub pps: :: c_int,
1204
- pub n_pins: :: c_int,
1205
- pub cross_timestamping: :: c_int,
1206
- #[ cfg( any( target_arch = "sparc" , target_arch = "sparc64" ) ) ]
1207
- pub adjust_phase: :: c_int,
1208
- #[ cfg( not( any(
1209
- any( target_arch = "sparc" , target_arch = "sparc64" ) ,
1210
- any( target_env = "musl" , target_env = "ohos" ) ,
1211
- ) ) ) ]
1212
- pub adjust_phase: :: c_int,
1213
- #[ cfg( not( any(
1214
- any( target_arch = "sparc" , target_arch = "sparc64" ) ,
1215
- any( target_env = "musl" , target_env = "ohos" ) ,
1216
- ) ) ) ]
1217
- pub max_phase_adj: :: c_int,
1218
- #[ cfg( not( any(
1219
- any( target_arch = "sparc" , target_arch = "sparc64" ) ,
1220
- any( target_env = "musl" , target_env = "ohos" ) ,
1221
- ) ) ) ]
1222
- pub rsv: [ :: c_int; PTP_CLOCK_CAPS_RSV_LEN ] ,
1223
- }
1224
1197
}
1225
1198
1226
1199
cfg_if ! {
@@ -4568,16 +4541,6 @@ pub const HWTSTAMP_FILTER_NTP_ALL: ::c_uint = 15;
4568
4541
// linux/ptp_clock.h
4569
4542
pub const PTP_MAX_SAMPLES : :: c_uint = 25 ; // Maximum allowed offset measurement samples.
4570
4543
4571
- pub const PTP_CLOCK_CAPS_RSV_LEN : usize = {
4572
- if cfg ! ( any( target_arch = "sparc" , target_arch = "sparc64" ) ) {
4573
- 12
4574
- } else if cfg ! ( any( target_env = "musl" , target_env = "ohos" ) ) {
4575
- 13
4576
- } else {
4577
- 11
4578
- }
4579
- } ;
4580
-
4581
4544
// linux/tls.h
4582
4545
pub const TLS_TX : :: c_int = 1 ;
4583
4546
pub const TLS_RX : :: c_int = 2 ;
0 commit comments