@@ -1194,6 +1194,33 @@ 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
+ }
1197
1224
}
1198
1225
1199
1226
cfg_if ! {
@@ -5623,6 +5650,17 @@ pub const SCHED_FLAG_ALL: ::c_int = SCHED_FLAG_RESET_ON_FORK
5623
5650
pub const EPIOCSPARAMS : :: Ioctl = 0x40088a01 ;
5624
5651
pub const EPIOCGPARAMS : :: Ioctl = 0x80088a02 ;
5625
5652
5653
+ // ptp_clock.h
5654
+ pub const PTP_CLOCK_CAPS_RSV_LEN : usize = {
5655
+ if cfg ! ( any( target_arch = "sparc" , target_arch = "sparc64" ) ) {
5656
+ 12
5657
+ } else if cfg ! ( any( target_env = "musl" , target_env = "ohos" ) ) {
5658
+ 13
5659
+ } else {
5660
+ 11
5661
+ }
5662
+ } ;
5663
+
5626
5664
const _IOC_NRBITS: u32 = 8 ;
5627
5665
const _IOC_TYPEBITS: u32 = 8 ;
5628
5666
0 commit comments