@@ -1330,6 +1330,7 @@ make_bitfield_serde! {
1330
1330
#[ repr( u8 ) ]
1331
1331
#[ derive( Copy , Clone ) ]
1332
1332
pub struct PriorityLevels {
1333
+ #[ bits = 1 ]
1333
1334
pub hard_force || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1334
1335
pub high || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1335
1336
pub medium || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
@@ -1421,21 +1422,37 @@ make_bitfield_serde! {
1421
1422
#[ repr( u16 ) ]
1422
1423
#[ derive( Default , Debug , Copy , Clone , PartialEq , Eq ) ]
1423
1424
pub struct BoardInstances {
1425
+ #[ bits = 1 ]
1424
1426
pub instance_0 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1427
+ #[ bits = 1 ]
1425
1428
pub instance_1 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1429
+ #[ bits = 1 ]
1426
1430
pub instance_2 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1431
+ #[ bits = 1 ]
1427
1432
pub instance_3 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1433
+ #[ bits = 1 ]
1428
1434
pub instance_4 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1435
+ #[ bits = 1 ]
1429
1436
pub instance_5 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1437
+ #[ bits = 1 ]
1430
1438
pub instance_6 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1439
+ #[ bits = 1 ]
1431
1440
pub instance_7 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1441
+ #[ bits = 1 ]
1432
1442
pub instance_8 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1443
+ #[ bits = 1 ]
1433
1444
pub instance_9 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1445
+ #[ bits = 1 ]
1434
1446
pub instance_10 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1447
+ #[ bits = 1 ]
1435
1448
pub instance_11 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1449
+ #[ bits = 1 ]
1436
1450
pub instance_12 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1451
+ #[ bits = 1 ]
1437
1452
pub instance_13 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1453
+ #[ bits = 1 ]
1438
1454
pub instance_14 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1455
+ #[ bits = 1 ]
1439
1456
pub instance_15 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
1440
1457
}
1441
1458
}
@@ -1581,7 +1598,9 @@ pub mod gnb {
1581
1598
Clone , Copy , Debug , PartialEq , //BitfieldSpecifier,
1582
1599
) ]
1583
1600
pub struct EarlyPcieConfigBody {
1601
+ #[ bits = 8 ]
1584
1602
pub start_lane || u8 : B8 , // (0xFF)
1603
+ #[ bits = 8 ]
1585
1604
pub end_lane || u8 : B8 , // (0xFF=UNUSED_LANE if descriptor is unused)
1586
1605
#[ bits = 2 ]
1587
1606
pub socket || u8 : B2 ,
@@ -1591,11 +1610,17 @@ pub mod gnb {
1591
1610
pub link_speed: EarlyPcieLinkSpeed | pub get EarlyPcieLinkSpeed : pub set EarlyPcieLinkSpeed ,
1592
1611
#[ bits = 2 ]
1593
1612
pub reset_pin: EarlyPcieResetPin | pub get EarlyPcieResetPin : pub set EarlyPcieResetPin ,
1613
+ #[ bits = 3 ]
1594
1614
pub root_function || u8 : B3 | pub get u8 : pub set u8 , // XXX (0: default)
1615
+ #[ bits = 5 ]
1595
1616
pub root_device || u8 : B5 | pub get u8 : pub set u8 , // XXX (0: default)
1617
+ #[ bits = 8 ]
1596
1618
pub max_payload || u8 : B8 | pub get u8 : pub set u8 , // XXX (0xff: ignore),
1619
+ #[ bits = 8 ]
1597
1620
pub tx_deemphasis || u8 : B8 | pub get u8 : pub set u8 , // XXX (0xff: ignore)
1621
+ #[ bits = 8 ]
1598
1622
pub _reserved_1 || #[ serde( default ) ] SerdeHex8 : B8 , // (0)
1623
+ #[ bits = 8 ]
1599
1624
pub _reserved_2 || #[ serde( default ) ] SerdeHex8 : B8 , // (0)
1600
1625
}
1601
1626
}
@@ -2682,9 +2707,13 @@ pub mod memory {
2682
2707
Default , Clone , Copy , PartialEq , BitfieldSpecifier ,
2683
2708
) ]
2684
2709
pub struct Ddr4DimmRanks {
2710
+ #[ bits = 1 ]
2685
2711
pub unpopulated || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
2712
+ #[ bits = 1 ]
2686
2713
pub single_rank || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
2714
+ #[ bits = 1 ]
2687
2715
pub dual_rank || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
2716
+ #[ bits = 1 ]
2688
2717
pub quad_rank || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
2689
2718
}
2690
2719
) ;
@@ -2714,8 +2743,11 @@ pub mod memory {
2714
2743
Clone , Copy , PartialEq , BitfieldSpecifier ,
2715
2744
) ]
2716
2745
pub struct LrdimmDdr4DimmRanks {
2746
+ #[ bits = 1 ]
2717
2747
pub unpopulated || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
2748
+ #[ bits = 1 ]
2718
2749
pub lr || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
2750
+ #[ bits = 2 ]
2719
2751
pub _reserved_1 || #[ serde( default ) ] SerdeHex8 : B2 ,
2720
2752
}
2721
2753
) ;
@@ -4471,10 +4503,14 @@ pub mod memory {
4471
4503
#[ derive( PartialEq , Debug , Copy , Clone ) ]
4472
4504
#[ repr( u32 ) ]
4473
4505
pub struct ErrorOutControlBeepCodePeakAttr {
4506
+ #[ bits = 5 ]
4474
4507
pub peak_count || u8 : B5 | pub get u8 : pub set u8 ,
4475
4508
/// PULSE_WIDTH: in units of 0.1 s
4509
+ #[ bits = 3 ]
4476
4510
pub pulse_width || u8 : B3 | pub get u8 : pub set u8 ,
4511
+ #[ bits = 4 ]
4477
4512
pub repeat_count || u8 : B4 | pub get u8 : pub set u8 ,
4513
+ #[ bits = 20 ]
4478
4514
pub _reserved_1 || #[ serde( default ) ] SerdeHex32 : B20 ,
4479
4515
}
4480
4516
}
@@ -10210,13 +10246,21 @@ make_bitfield_serde! {
10210
10246
#[ derive( PartialEq , Debug , Copy , Clone ) ]
10211
10247
#[ repr( u32 ) ]
10212
10248
pub struct DfXgmiChannelTypeSelect {
10249
+ #[ bits = 4 ]
10213
10250
pub s0l0 || DfXgmiChannelType : B4 | pub get DfXgmiChannelType : pub set DfXgmiChannelType ,
10251
+ #[ bits = 4 ]
10214
10252
pub s0l1 || DfXgmiChannelType : B4 | pub get DfXgmiChannelType : pub set DfXgmiChannelType ,
10253
+ #[ bits = 4 ]
10215
10254
pub s0l2 || DfXgmiChannelType : B4 | pub get DfXgmiChannelType : pub set DfXgmiChannelType ,
10255
+ #[ bits = 4 ]
10216
10256
pub s0l3 || DfXgmiChannelType : B4 | pub get DfXgmiChannelType : pub set DfXgmiChannelType ,
10257
+ #[ bits = 4 ]
10217
10258
pub s1l0 || DfXgmiChannelType : B4 | pub get DfXgmiChannelType : pub set DfXgmiChannelType ,
10259
+ #[ bits = 4 ]
10218
10260
pub s1l1 || DfXgmiChannelType : B4 | pub get DfXgmiChannelType : pub set DfXgmiChannelType ,
10261
+ #[ bits = 4 ]
10219
10262
pub s1l2 || DfXgmiChannelType : B4 | pub get DfXgmiChannelType : pub set DfXgmiChannelType ,
10263
+ #[ bits = 4 ]
10220
10264
pub s1l3 || DfXgmiChannelType : B4 | pub get DfXgmiChannelType : pub set DfXgmiChannelType ,
10221
10265
}
10222
10266
}
@@ -10260,20 +10304,34 @@ make_bitfield_serde! {
10260
10304
#[ repr( u16 ) ]
10261
10305
#[ derive( Default , Debug , Copy , Clone , PartialEq ) ]
10262
10306
pub struct FchGppClkMapSelection {
10307
+ #[ bits = 1 ]
10263
10308
pub s0_gpp0_off : bool | pub get bool : pub set bool ,
10309
+ #[ bits = 1 ]
10264
10310
pub s0_gpp1_off : bool | pub get bool : pub set bool ,
10311
+ #[ bits = 1 ]
10265
10312
pub s0_gpp4_off : bool | pub get bool : pub set bool ,
10313
+ #[ bits = 1 ]
10266
10314
pub s0_gpp2_off : bool | pub get bool : pub set bool ,
10315
+ #[ bits = 1 ]
10267
10316
pub s0_gpp3_off : bool | pub get bool : pub set bool ,
10317
+ #[ bits = 1 ]
10268
10318
pub s0_gpp5_off : bool | pub get bool : pub set bool ,
10319
+ #[ bits = 2 ]
10269
10320
pub _reserved_1 || #[ serde( default ) ] SerdeHex8 : B2 ,
10270
10321
10322
+ #[ bits = 1 ]
10271
10323
pub s1_gpp0_off : bool | pub get bool : pub set bool ,
10324
+ #[ bits = 1 ]
10272
10325
pub s1_gpp1_off : bool | pub get bool : pub set bool ,
10326
+ #[ bits = 1 ]
10273
10327
pub s1_gpp4_off : bool | pub get bool : pub set bool ,
10328
+ #[ bits = 1 ]
10274
10329
pub s1_gpp2_off : bool | pub get bool : pub set bool ,
10330
+ #[ bits = 1 ]
10275
10331
pub s1_gpp3_off : bool | pub get bool : pub set bool ,
10332
+ #[ bits = 1 ]
10276
10333
pub s1_gpp5_off : bool | pub get bool : pub set bool ,
10334
+ #[ bits = 2 ]
10277
10335
pub _reserved_2 || #[ serde( default ) ] SerdeHex8 : B2 ,
10278
10336
}
10279
10337
}
@@ -10335,11 +10393,17 @@ make_bitfield_serde! {
10335
10393
#[ repr( u8 ) ]
10336
10394
#[ derive( Debug , Copy , Clone , PartialEq ) ]
10337
10395
pub struct MemPmuBistTestSelect {
10396
+ #[ bits = 1 ]
10338
10397
pub algorithm_1 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
10398
+ #[ bits = 1 ]
10339
10399
pub algorithm_2 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
10400
+ #[ bits = 1 ]
10340
10401
pub algorithm_3 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
10402
+ #[ bits = 1 ]
10341
10403
pub algorithm_4 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
10404
+ #[ bits = 1 ]
10342
10405
pub algorithm_5 || #[ serde( default ) ] bool : bool | pub get bool : pub set bool ,
10406
+ #[ bits = 3 ]
10343
10407
pub _reserved_0 || #[ serde( default ) ] SerdeHex8 : B3 ,
10344
10408
}
10345
10409
}
@@ -10401,10 +10465,15 @@ make_bitfield_serde! {
10401
10465
#[ repr( u8 ) ]
10402
10466
#[ derive( Debug , Copy , Clone , PartialEq ) ]
10403
10467
pub struct FchConsoleOutSerialPortEspiControllerSelect {
10468
+ #[ bits = 1 ]
10404
10469
pub espi_controller || EspiController : B1 | pub get EspiController : pub set EspiController ,
10470
+ #[ bits = 2 ]
10405
10471
pub _reserved_0 || #[ serde( default ) ] SerdeHex8 : B2 ,
10472
+ #[ bits = 1 ]
10406
10473
pub io_2e_2f_disabled: bool | pub get bool : pub set bool ,
10474
+ #[ bits = 1 ]
10407
10475
pub io_4e_4f_disabled: bool | pub get bool : pub set bool ,
10476
+ #[ bits = 3 ]
10408
10477
pub _reserved_1 || #[ serde( default ) ] SerdeHex8 : B3 ,
10409
10478
}
10410
10479
}
@@ -10419,15 +10488,25 @@ make_bitfield_serde! {
10419
10488
#[ repr( u16 ) ]
10420
10489
#[ derive( Debug , Copy , Clone , PartialEq ) ]
10421
10490
pub struct MemPmuBistAlgorithmSelect {
10491
+ #[ bits = 1 ]
10422
10492
pub algorithm_1: bool | pub get bool : pub set bool ,
10493
+ #[ bits = 1 ]
10423
10494
pub algorithm_2: bool | pub get bool : pub set bool ,
10495
+ #[ bits = 1 ]
10424
10496
pub algorithm_3: bool | pub get bool : pub set bool ,
10497
+ #[ bits = 1 ]
10425
10498
pub algorithm_4: bool | pub get bool : pub set bool ,
10499
+ #[ bits = 1 ]
10426
10500
pub algorithm_5: bool | pub get bool : pub set bool ,
10501
+ #[ bits = 1 ]
10427
10502
pub algorithm_6: bool | pub get bool : pub set bool ,
10503
+ #[ bits = 1 ]
10428
10504
pub algorithm_7: bool | pub get bool : pub set bool ,
10505
+ #[ bits = 1 ]
10429
10506
pub algorithm_8: bool | pub get bool : pub set bool ,
10507
+ #[ bits = 1 ]
10430
10508
pub algorithm_9: bool | pub get bool : pub set bool ,
10509
+ #[ bits = 7 ]
10431
10510
pub _reserved_0 || #[ serde( default ) ] SerdeHex8 : B7 ,
10432
10511
}
10433
10512
}
@@ -10734,13 +10813,21 @@ make_bitfield_serde! {
10734
10813
#[ repr( u8 ) ]
10735
10814
#[ derive( Debug , Copy , Clone , PartialEq ) ]
10736
10815
pub struct DfXgmiAcDcCoupledLink {
10816
+ #[ bits = 1 ]
10737
10817
pub socket_0_link_0 || #[ serde( default ) ] DfXgmiAcDcMode : DfXgmiAcDcMode | pub get DfXgmiAcDcMode : pub set DfXgmiAcDcMode ,
10818
+ #[ bits = 1 ]
10738
10819
pub socket_0_link_1 || #[ serde( default ) ] DfXgmiAcDcMode : DfXgmiAcDcMode | pub get DfXgmiAcDcMode : pub set DfXgmiAcDcMode ,
10820
+ #[ bits = 1 ]
10739
10821
pub socket_0_link_2 || #[ serde( default ) ] DfXgmiAcDcMode : DfXgmiAcDcMode | pub get DfXgmiAcDcMode : pub set DfXgmiAcDcMode ,
10822
+ #[ bits = 1 ]
10740
10823
pub socket_0_link_3 || #[ serde( default ) ] DfXgmiAcDcMode : DfXgmiAcDcMode | pub get DfXgmiAcDcMode : pub set DfXgmiAcDcMode ,
10824
+ #[ bits = 1 ]
10741
10825
pub socket_1_link_0 || #[ serde( default ) ] DfXgmiAcDcMode : DfXgmiAcDcMode | pub get DfXgmiAcDcMode : pub set DfXgmiAcDcMode ,
10826
+ #[ bits = 1 ]
10742
10827
pub socket_1_link_1 || #[ serde( default ) ] DfXgmiAcDcMode : DfXgmiAcDcMode | pub get DfXgmiAcDcMode : pub set DfXgmiAcDcMode ,
10828
+ #[ bits = 1 ]
10743
10829
pub socket_1_link_2 || #[ serde( default ) ] DfXgmiAcDcMode : DfXgmiAcDcMode | pub get DfXgmiAcDcMode : pub set DfXgmiAcDcMode ,
10830
+ #[ bits = 1 ]
10744
10831
pub socket_1_link_3 || #[ serde( default ) ] DfXgmiAcDcMode : DfXgmiAcDcMode | pub get DfXgmiAcDcMode : pub set DfXgmiAcDcMode ,
10745
10832
}
10746
10833
}
0 commit comments