@@ -828,23 +828,7 @@ s! {
828828 pub reserved: :: __u32,
829829 }
830830
831- pub struct ptp_clock_caps {
832- pub max_adj: :: c_int,
833- pub n_alarm: :: c_int,
834- pub n_ext_ts: :: c_int,
835- pub n_per_out: :: c_int,
836- pub pps: :: c_int,
837- pub n_pins: :: c_int,
838- pub cross_timestamping: :: c_int,
839- #[ cfg( not( any( target_env = "musl" , target_env = "ohos" ) ) ) ]
840- pub adjust_phase: :: c_int,
841- #[ cfg( not( any( target_env = "musl" , target_env = "ohos" ) ) ) ]
842- pub max_phase_adj: :: c_int,
843- #[ cfg( not( any( target_env = "musl" , target_env = "ohos" ) ) ) ]
844- pub rsv: [ :: c_int; 11 ] ,
845- #[ cfg( any( target_env = "musl" , target_env = "ohos" ) ) ]
846- pub rsv: [ :: c_int; 13 ] ,
847- }
831+
848832
849833 pub struct ptp_extts_request {
850834 pub index: :: c_uint,
@@ -1104,6 +1088,52 @@ s! {
11041088 }
11051089}
11061090
1091+ cfg_if ! {
1092+ if #[ cfg( any( target_arch = "sparc" , target_arch = "sparc64" ) ) ] {
1093+ s!{
1094+ pub struct ptp_clock_caps {
1095+ pub max_adj: :: c_int,
1096+ pub n_alarm: :: c_int,
1097+ pub n_ext_ts: :: c_int,
1098+ pub n_per_out: :: c_int,
1099+ pub pps: :: c_int,
1100+ pub n_pins: :: c_int,
1101+ pub cross_timestamping: :: c_int,
1102+ pub adjust_phase: :: c_int,
1103+ pub rsv: [ :: c_int; 12 ] ,
1104+ }
1105+ }
1106+ } else if #[ cfg( any( target_env = "musl" , target_env = "ohos" ) ) ] {
1107+ s!{
1108+ pub struct ptp_clock_caps {
1109+ pub max_adj: :: c_int,
1110+ pub n_alarm: :: c_int,
1111+ pub n_ext_ts: :: c_int,
1112+ pub n_per_out: :: c_int,
1113+ pub pps: :: c_int,
1114+ pub n_pins: :: c_int,
1115+ pub cross_timestamping: :: c_int,
1116+ pub rsv: [ :: c_int; 13 ] ,
1117+ }
1118+ }
1119+ } else {
1120+ s! {
1121+ pub struct ptp_clock_caps {
1122+ pub max_adj: :: c_int,
1123+ pub n_alarm: :: c_int,
1124+ pub n_ext_ts: :: c_int,
1125+ pub n_per_out: :: c_int,
1126+ pub pps: :: c_int,
1127+ pub n_pins: :: c_int,
1128+ pub cross_timestamping: :: c_int,
1129+ pub adjust_phase: :: c_int,
1130+ pub max_phase_adj: :: c_int,
1131+ pub rsv: [ :: c_int; 11 ] ,
1132+ }
1133+ }
1134+ }
1135+ }
1136+
11071137cfg_if ! {
11081138 if #[ cfg( not( target_arch = "sparc64" ) ) ] {
11091139 s!{
0 commit comments