From 2106cf97da7cee19d3ac4f6515b32dc618b07bcb Mon Sep 17 00:00:00 2001 From: Pretty Mariam Jacob Date: Mon, 21 Jan 2019 06:04:54 -0500 Subject: Added Alink changes in attributes and initfiles Change-Id: I6572bfaa5834c585901ce9a5fc923f82a296b930 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70689 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Tested-by: HWSV CI Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Soma Bhanutej Reviewed-by: SRINIVAS V. POLISETTY Reviewed-by: Benjamin Gass Reviewed-by: Joseph J. McGill Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70722 Reviewed-by: Christian R. Geddes Tested-by: Christian R. Geddes --- .../procedures/hwp/initfiles/p9_fbc_cd_hp1_scom.C | 4 +- .../procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.C | 196 ++-- .../procedures/hwp/initfiles/p9_fbc_ioo_tl_scom.C | 1148 ++++++++++---------- .../xml/attribute_info/chip_ec_attributes.xml | 31 +- 4 files changed, 618 insertions(+), 761 deletions(-) diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_cd_hp1_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_cd_hp1_scom.C index 542000b36..6f65f5fe5 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_cd_hp1_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_cd_hp1_scom.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2017,2018 */ +/* Contributors Listed Below - COPYRIGHT 2017,2019 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -200,7 +200,7 @@ fapi2::ReturnCode p9_fbc_cd_hp1_scom(const fapi2::Target (); diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.C index 20ca1cb5e..f724cdb5a 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_scom.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016,2018 */ +/* Contributors Listed Below - COPYRIGHT 2016,2019 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -70,54 +70,48 @@ fapi2::ReturnCode p9_fbc_ioo_dl_scom(const fapi2::Target l_scom_buffer; { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - FAPI_TRY(fapi2::getScom( TGT0, 0x901080aull, l_scom_buffer )); + FAPI_TRY(fapi2::getScom( TGT0, 0x901080aull, l_scom_buffer )); - if ((l_TGT0_ATTR_LINK_TRAIN == fapi2::ENUM_ATTR_LINK_TRAIN_BOTH)) - { - constexpr auto l_PB_IOO_LL0_CONFIG_LINK_PAIR_ON = 0x1; - l_scom_buffer.insert<0, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_LINK_PAIR_ON ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_LL0_CONFIG_LINK_PAIR_OFF = 0x0; - l_scom_buffer.insert<0, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_LINK_PAIR_OFF ); - } - - if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) - { - l_scom_buffer.insert<11, 5, 59, uint64_t>(literal_0x0F ); - } + if ((l_TGT0_ATTR_LINK_TRAIN == fapi2::ENUM_ATTR_LINK_TRAIN_BOTH)) + { + constexpr auto l_PB_IOO_LL0_CONFIG_LINK_PAIR_ON = 0x1; + l_scom_buffer.insert<0, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_LINK_PAIR_ON ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_LL0_CONFIG_LINK_PAIR_OFF = 0x0; + l_scom_buffer.insert<0, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_LINK_PAIR_OFF ); + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) - { - l_scom_buffer.insert<12, 4, 60, uint64_t>(literal_0x0F ); - } + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) + && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) + || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<11, 5, 59, uint64_t>(literal_0x0F ); + } - l_scom_buffer.insert<28, 4, 60, uint64_t>(literal_0xF ); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<12, 4, 60, uint64_t>(literal_0x0F ); + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) - { - l_scom_buffer.insert<32, 4, 60, uint64_t>(literal_0x0 ); - } + l_scom_buffer.insert<28, 4, 60, uint64_t>(literal_0xF ); - constexpr auto l_PB_IOO_LL0_CONFIG_CRC_LANE_ID_ON = 0x1; - l_scom_buffer.insert<2, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_CRC_LANE_ID_ON ); - constexpr auto l_PB_IOO_LL0_CONFIG_SL_UE_CRC_ERR_ON = 0x1; - l_scom_buffer.insert<4, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_SL_UE_CRC_ERR_ON ); - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0xF ); - FAPI_TRY(fapi2::putScom(TGT0, 0x901080aull, l_scom_buffer)); + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) + && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) + || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) + { + l_scom_buffer.insert<32, 4, 60, uint64_t>(literal_0x0 ); } + + constexpr auto l_PB_IOO_LL0_CONFIG_CRC_LANE_ID_ON = 0x1; + l_scom_buffer.insert<2, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_CRC_LANE_ID_ON ); + constexpr auto l_PB_IOO_LL0_CONFIG_SL_UE_CRC_ERR_ON = 0x1; + l_scom_buffer.insert<4, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_SL_UE_CRC_ERR_ON ); + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0xF ); + FAPI_TRY(fapi2::putScom(TGT0, 0x901080aull, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x901080cull, l_scom_buffer )); @@ -197,7 +191,7 @@ fapi2::ReturnCode p9_fbc_ioo_dl_scom(const fapi2::Target(literal_0xE ); } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) + if (l_def_IS_SIM) { - if (l_def_IS_SIM) - { - l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0x0 ); - } - else if (( ! l_def_DLL_DD10_TRAIN)) - { - l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0xF ); - } - else if (l_def_DLL_DD10_TRAIN) - { - l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0x0 ); - } + l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0x0 ); + } + else if (( ! l_def_DLL_DD10_TRAIN)) + { + l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0xF ); + } + else if (l_def_DLL_DD10_TRAIN) + { + l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0x0 ); } FAPI_TRY(fapi2::putScom(TGT0, 0x901080cull, l_scom_buffer)); @@ -337,30 +325,10 @@ fapi2::ReturnCode p9_fbc_ioo_dl_scom(const fapi2::Target(literal_0x5 ); - } - - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - l_scom_buffer.insert<9, 7, 57, uint64_t>(literal_0b0001111 ); - } - - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - constexpr auto l_PB_IOO_LL0_CONFIG_ELEVEN_LANE_MODE_ON = 0x1; - l_scom_buffer.insert<37, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_ELEVEN_LANE_MODE_ON ); - } + l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0x5 ); + l_scom_buffer.insert<9, 7, 57, uint64_t>(literal_0b0001111 ); + constexpr auto l_PB_IOO_LL0_CONFIG_ELEVEN_LANE_MODE_ON = 0x1; + l_scom_buffer.insert<37, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_ELEVEN_LANE_MODE_ON ); if (((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) @@ -372,54 +340,28 @@ fapi2::ReturnCode p9_fbc_ioo_dl_scom(const fapi2::Target(l_PB_IOO_LL0_CONFIG_LINK_FAIL_CRC_ERROR_ON ); } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - l_scom_buffer.insert<20, 4, 60, uint64_t>(literal_0x5 ); - } - - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - l_scom_buffer.insert<25, 7, 57, uint64_t>(literal_0b0111111 ); - } + l_scom_buffer.insert<20, 4, 60, uint64_t>(literal_0x5 ); + l_scom_buffer.insert<25, 7, 57, uint64_t>(literal_0b0111111 ); if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) { constexpr auto l_PB_IOO_LL0_CONFIG_LINK_FAIL_NO_SPARE_ON = 0x1; l_scom_buffer.insert<2, 1, 63, uint64_t>(l_PB_IOO_LL0_CONFIG_LINK_FAIL_NO_SPARE_ON ); } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - constexpr auto l_PB_IOO_LL0_CONFIG_REPLAY_BUFFER_SIZE_REPLAY_255 = 0x2; - l_scom_buffer.insert<56, 2, 62, uint64_t>(l_PB_IOO_LL0_CONFIG_REPLAY_BUFFER_SIZE_REPLAY_255 ); - } - - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - constexpr auto l_PB_IOO_LL0_LINK1_ELEVEN_LANE_SHIFT_ON = 0x1; - l_scom_buffer.insert<39, 1, 63, uint64_t>(l_PB_IOO_LL0_LINK1_ELEVEN_LANE_SHIFT_ON ); - } + constexpr auto l_PB_IOO_LL0_CONFIG_REPLAY_BUFFER_SIZE_REPLAY_255 = 0x2; + l_scom_buffer.insert<56, 2, 62, uint64_t>(l_PB_IOO_LL0_CONFIG_REPLAY_BUFFER_SIZE_REPLAY_255 ); + constexpr auto l_PB_IOO_LL0_LINK1_ELEVEN_LANE_SHIFT_ON = 0x1; + l_scom_buffer.insert<39, 1, 63, uint64_t>(l_PB_IOO_LL0_LINK1_ELEVEN_LANE_SHIFT_ON ); if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) ) @@ -446,18 +388,12 @@ fapi2::ReturnCode p9_fbc_ioo_dl_scom(const fapi2::Target(literal_0b111 ); - l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0xF ); - l_scom_buffer.insert<0, 4, 60, uint64_t>(literal_0x7 ); - FAPI_TRY(fapi2::putScom(TGT0, 0x9010819ull, l_scom_buffer)); - } + l_scom_buffer.insert<8, 2, 62, uint64_t>(literal_0b111 ); + l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0xF ); + l_scom_buffer.insert<0, 4, 60, uint64_t>(literal_0x7 ); + FAPI_TRY(fapi2::putScom(TGT0, 0x9010819ull, l_scom_buffer)); } { FAPI_TRY(fapi2::getScom( TGT0, 0x901081aull, l_scom_buffer )); diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_tl_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_tl_scom.C index 3dbe9c32c..2fba79d7d 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_tl_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_tl_scom.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016,2018 */ +/* Contributors Listed Below - COPYRIGHT 2016,2019 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -129,752 +129,692 @@ fapi2::ReturnCode p9_fbc_ioo_tl_scom(const fapi2::Target l_scom_buffer; { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - FAPI_TRY(fapi2::getScom( TGT0, 0x501380aull, l_scom_buffer )); - - if (( ! l_def_OBUS0_FBC_ENABLED)) - { - constexpr auto l_PB_IOO_SCOM_A0_MODE_BLOCKED = 0xf; - l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A0_MODE_BLOCKED ); - l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A0_MODE_BLOCKED ); - l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A0_MODE_BLOCKED ); - l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A0_MODE_BLOCKED ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_A0_MODE_NORMAL = 0x0; - l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A0_MODE_NORMAL ); - l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A0_MODE_NORMAL ); - l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A0_MODE_NORMAL ); - l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A0_MODE_NORMAL ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x501380aull, l_scom_buffer )); - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<22, 2, 62, uint64_t>(literal_0x1 ); - } + if (( ! l_def_OBUS0_FBC_ENABLED)) + { + constexpr auto l_PB_IOO_SCOM_A0_MODE_BLOCKED = 0xf; + l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A0_MODE_BLOCKED ); + l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A0_MODE_BLOCKED ); + l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A0_MODE_BLOCKED ); + l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A0_MODE_BLOCKED ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_A0_MODE_NORMAL = 0x0; + l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A0_MODE_NORMAL ); + l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A0_MODE_NORMAL ); + l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A0_MODE_NORMAL ); + l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A0_MODE_NORMAL ); + } - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<12, 8, 56, uint64_t>(literal_0x40 ); - } + if (l_def_OBUS0_FBC_ENABLED) + { + l_scom_buffer.insert<22, 2, 62, uint64_t>(literal_0x1 ); + } - if ((l_def_OBUS0_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) - { - l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x36 - (l_def_OBUS0_LO_LIMIT_N / l_def_OBUS0_LO_LIMIT_D)) ); - } - else if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x37 - (l_def_OBUS0_LO_LIMIT_N / l_def_OBUS0_LO_LIMIT_D)) ); - } + if (l_def_OBUS0_FBC_ENABLED) + { + l_scom_buffer.insert<12, 8, 56, uint64_t>(literal_0x40 ); + } - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<44, 8, 56, uint64_t>(literal_0x40 ); - } + if ((l_def_OBUS0_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) + { + l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x36 - (l_def_OBUS0_LO_LIMIT_N / l_def_OBUS0_LO_LIMIT_D)) ); + } + else if (l_def_OBUS0_FBC_ENABLED) + { + l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x37 - (l_def_OBUS0_LO_LIMIT_N / l_def_OBUS0_LO_LIMIT_D)) ); + } - if ((l_def_OBUS0_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) - { - l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x36 - (l_def_OBUS0_LO_LIMIT_N / l_def_OBUS0_LO_LIMIT_D)) ); - } - else if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x37 - (l_def_OBUS0_LO_LIMIT_N / l_def_OBUS0_LO_LIMIT_D)) ); - } + if (l_def_OBUS0_FBC_ENABLED) + { + l_scom_buffer.insert<44, 8, 56, uint64_t>(literal_0x40 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x501380aull, l_scom_buffer)); + if ((l_def_OBUS0_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) + { + l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x36 - (l_def_OBUS0_LO_LIMIT_N / l_def_OBUS0_LO_LIMIT_D)) ); } - } - { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) + else if (l_def_OBUS0_FBC_ENABLED) { - FAPI_TRY(fapi2::getScom( TGT0, 0x501380bull, l_scom_buffer )); + l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x37 - (l_def_OBUS0_LO_LIMIT_N / l_def_OBUS0_LO_LIMIT_D)) ); + } - if (( ! l_def_OBUS1_FBC_ENABLED)) - { - constexpr auto l_PB_IOO_SCOM_A1_MODE_BLOCKED = 0xf; - l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A1_MODE_BLOCKED ); - l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A1_MODE_BLOCKED ); - l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A1_MODE_BLOCKED ); - l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A1_MODE_BLOCKED ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_A1_MODE_NORMAL = 0x0; - l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A1_MODE_NORMAL ); - l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A1_MODE_NORMAL ); - l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A1_MODE_NORMAL ); - l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A1_MODE_NORMAL ); - } + FAPI_TRY(fapi2::putScom(TGT0, 0x501380aull, l_scom_buffer)); + } + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501380bull, l_scom_buffer )); - if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<22, 2, 62, uint64_t>(literal_0x1 ); - } + if (( ! l_def_OBUS1_FBC_ENABLED)) + { + constexpr auto l_PB_IOO_SCOM_A1_MODE_BLOCKED = 0xf; + l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A1_MODE_BLOCKED ); + l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A1_MODE_BLOCKED ); + l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A1_MODE_BLOCKED ); + l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A1_MODE_BLOCKED ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_A1_MODE_NORMAL = 0x0; + l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A1_MODE_NORMAL ); + l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A1_MODE_NORMAL ); + l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A1_MODE_NORMAL ); + l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A1_MODE_NORMAL ); + } - if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<12, 8, 56, uint64_t>(literal_0x40 ); - } + if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<22, 2, 62, uint64_t>(literal_0x1 ); + } - if ((l_def_OBUS1_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) - { - l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x2A - (l_def_OBUS1_LO_LIMIT_N / l_def_OBUS1_LO_LIMIT_D)) ); - } - else if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x2C - (l_def_OBUS1_LO_LIMIT_N / l_def_OBUS1_LO_LIMIT_D)) ); - } + if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<12, 8, 56, uint64_t>(literal_0x40 ); + } - if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<44, 8, 56, uint64_t>(literal_0x40 ); - } + if ((l_def_OBUS1_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) + { + l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x2A - (l_def_OBUS1_LO_LIMIT_N / l_def_OBUS1_LO_LIMIT_D)) ); + } + else if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x2C - (l_def_OBUS1_LO_LIMIT_N / l_def_OBUS1_LO_LIMIT_D)) ); + } - if ((l_def_OBUS1_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) - { - l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x2A - (l_def_OBUS1_LO_LIMIT_N / l_def_OBUS1_LO_LIMIT_D)) ); - } - else if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x2C - (l_def_OBUS1_LO_LIMIT_N / l_def_OBUS1_LO_LIMIT_D)) ); - } + if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<44, 8, 56, uint64_t>(literal_0x40 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x501380bull, l_scom_buffer)); + if ((l_def_OBUS1_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) + { + l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x2A - (l_def_OBUS1_LO_LIMIT_N / l_def_OBUS1_LO_LIMIT_D)) ); } - } - { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) + else if (l_def_OBUS1_FBC_ENABLED) { - FAPI_TRY(fapi2::getScom( TGT0, 0x501380cull, l_scom_buffer )); + l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x2C - (l_def_OBUS1_LO_LIMIT_N / l_def_OBUS1_LO_LIMIT_D)) ); + } - if (( ! l_def_OBUS2_FBC_ENABLED)) - { - constexpr auto l_PB_IOO_SCOM_A2_MODE_BLOCKED = 0xf; - l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A2_MODE_BLOCKED ); - l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A2_MODE_BLOCKED ); - l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A2_MODE_BLOCKED ); - l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A2_MODE_BLOCKED ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_A2_MODE_NORMAL = 0x0; - l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A2_MODE_NORMAL ); - l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A2_MODE_NORMAL ); - l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A2_MODE_NORMAL ); - l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A2_MODE_NORMAL ); - } + FAPI_TRY(fapi2::putScom(TGT0, 0x501380bull, l_scom_buffer)); + } + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501380cull, l_scom_buffer )); - if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<22, 2, 62, uint64_t>(literal_0x1 ); - } + if (( ! l_def_OBUS2_FBC_ENABLED)) + { + constexpr auto l_PB_IOO_SCOM_A2_MODE_BLOCKED = 0xf; + l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A2_MODE_BLOCKED ); + l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A2_MODE_BLOCKED ); + l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A2_MODE_BLOCKED ); + l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A2_MODE_BLOCKED ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_A2_MODE_NORMAL = 0x0; + l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A2_MODE_NORMAL ); + l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A2_MODE_NORMAL ); + l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A2_MODE_NORMAL ); + l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A2_MODE_NORMAL ); + } - if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<12, 8, 56, uint64_t>(literal_0x40 ); - } + if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<22, 2, 62, uint64_t>(literal_0x1 ); + } - if ((l_def_OBUS2_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) - { - l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x1B - (l_def_OBUS2_LO_LIMIT_N / l_def_OBUS2_LO_LIMIT_D)) ); - } - else if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x1C - (l_def_OBUS2_LO_LIMIT_N / l_def_OBUS2_LO_LIMIT_D)) ); - } + if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<12, 8, 56, uint64_t>(literal_0x40 ); + } - if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<44, 8, 56, uint64_t>(literal_0x40 ); - } + if ((l_def_OBUS2_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) + { + l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x1B - (l_def_OBUS2_LO_LIMIT_N / l_def_OBUS2_LO_LIMIT_D)) ); + } + else if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x1C - (l_def_OBUS2_LO_LIMIT_N / l_def_OBUS2_LO_LIMIT_D)) ); + } - if ((l_def_OBUS2_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) - { - l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x1B - (l_def_OBUS2_LO_LIMIT_N / l_def_OBUS2_LO_LIMIT_D)) ); - } - else if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x1C - (l_def_OBUS2_LO_LIMIT_N / l_def_OBUS2_LO_LIMIT_D)) ); - } + if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<44, 8, 56, uint64_t>(literal_0x40 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x501380cull, l_scom_buffer)); + if ((l_def_OBUS2_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) + { + l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x1B - (l_def_OBUS2_LO_LIMIT_N / l_def_OBUS2_LO_LIMIT_D)) ); } - } - { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) + else if (l_def_OBUS2_FBC_ENABLED) { - FAPI_TRY(fapi2::getScom( TGT0, 0x501380dull, l_scom_buffer )); + l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x1C - (l_def_OBUS2_LO_LIMIT_N / l_def_OBUS2_LO_LIMIT_D)) ); + } - if (( ! l_def_OBUS3_FBC_ENABLED)) - { - constexpr auto l_PB_IOO_SCOM_A3_MODE_BLOCKED = 0xf; - l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A3_MODE_BLOCKED ); - l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A3_MODE_BLOCKED ); - l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A3_MODE_BLOCKED ); - l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A3_MODE_BLOCKED ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_A3_MODE_NORMAL = 0x0; - l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A3_MODE_NORMAL ); - l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A3_MODE_NORMAL ); - l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A3_MODE_NORMAL ); - l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A3_MODE_NORMAL ); - } + FAPI_TRY(fapi2::putScom(TGT0, 0x501380cull, l_scom_buffer)); + } + { + FAPI_TRY(fapi2::getScom( TGT0, 0x501380dull, l_scom_buffer )); - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<22, 2, 62, uint64_t>(literal_0x1 ); - } + if (( ! l_def_OBUS3_FBC_ENABLED)) + { + constexpr auto l_PB_IOO_SCOM_A3_MODE_BLOCKED = 0xf; + l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A3_MODE_BLOCKED ); + l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A3_MODE_BLOCKED ); + l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A3_MODE_BLOCKED ); + l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A3_MODE_BLOCKED ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_A3_MODE_NORMAL = 0x0; + l_scom_buffer.insert<20, 1, 60, uint64_t>(l_PB_IOO_SCOM_A3_MODE_NORMAL ); + l_scom_buffer.insert<25, 1, 61, uint64_t>(l_PB_IOO_SCOM_A3_MODE_NORMAL ); + l_scom_buffer.insert<52, 1, 62, uint64_t>(l_PB_IOO_SCOM_A3_MODE_NORMAL ); + l_scom_buffer.insert<57, 1, 63, uint64_t>(l_PB_IOO_SCOM_A3_MODE_NORMAL ); + } - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<12, 8, 56, uint64_t>(literal_0x40 ); - } + if (l_def_OBUS3_FBC_ENABLED) + { + l_scom_buffer.insert<22, 2, 62, uint64_t>(literal_0x1 ); + } - if ((l_def_OBUS3_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) - { - l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x22 - (l_def_OBUS3_LO_LIMIT_N / l_def_OBUS3_LO_LIMIT_D)) ); - } - else if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x24 - (l_def_OBUS3_LO_LIMIT_N / l_def_OBUS3_LO_LIMIT_D)) ); - } + if (l_def_OBUS3_FBC_ENABLED) + { + l_scom_buffer.insert<12, 8, 56, uint64_t>(literal_0x40 ); + } - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<44, 8, 56, uint64_t>(literal_0x40 ); - } + if ((l_def_OBUS3_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) + { + l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x22 - (l_def_OBUS3_LO_LIMIT_N / l_def_OBUS3_LO_LIMIT_D)) ); + } + else if (l_def_OBUS3_FBC_ENABLED) + { + l_scom_buffer.insert<4, 8, 56, uint64_t>((literal_0x24 - (l_def_OBUS3_LO_LIMIT_N / l_def_OBUS3_LO_LIMIT_D)) ); + } - if ((l_def_OBUS3_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) - { - l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x22 - (l_def_OBUS3_LO_LIMIT_N / l_def_OBUS3_LO_LIMIT_D)) ); - } - else if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x24 - (l_def_OBUS3_LO_LIMIT_N / l_def_OBUS3_LO_LIMIT_D)) ); - } + if (l_def_OBUS3_FBC_ENABLED) + { + l_scom_buffer.insert<44, 8, 56, uint64_t>(literal_0x40 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x501380dull, l_scom_buffer)); + if ((l_def_OBUS3_FBC_ENABLED && (l_def_LO_LIMIT_R == literal_1))) + { + l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x22 - (l_def_OBUS3_LO_LIMIT_N / l_def_OBUS3_LO_LIMIT_D)) ); } + else if (l_def_OBUS3_FBC_ENABLED) + { + l_scom_buffer.insert<36, 8, 56, uint64_t>((literal_0x24 - (l_def_OBUS3_LO_LIMIT_N / l_def_OBUS3_LO_LIMIT_D)) ); + } + + FAPI_TRY(fapi2::putScom(TGT0, 0x501380dull, l_scom_buffer)); } { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - FAPI_TRY(fapi2::getScom( TGT0, 0x5013810ull, l_scom_buffer )); + FAPI_TRY(fapi2::getScom( TGT0, 0x5013810ull, l_scom_buffer )); - if ((l_def_OBUS0_FBC_ENABLED && l_def_OPTICS_IS_A_BUS)) - { - l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x10 ); - } - else if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x1F ); - } + if ((l_def_OBUS0_FBC_ENABLED && l_def_OPTICS_IS_A_BUS)) + { + l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x10 ); + } + else if (l_def_OBUS0_FBC_ENABLED) + { + l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x1F ); + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) + && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) + || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS0_FBC_ENABLED) { - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<9, 7, 57, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<9, 7, 57, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS0_FBC_ENABLED) { - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<8, 8, 56, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<8, 8, 56, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) + && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) + || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS0_FBC_ENABLED) { - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<17, 7, 57, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<17, 7, 57, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS0_FBC_ENABLED) { - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<16, 8, 56, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<16, 8, 56, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) + && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) + || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS0_FBC_ENABLED) { - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<41, 7, 57, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<41, 7, 57, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS0_FBC_ENABLED) { - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<40, 8, 56, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<40, 8, 56, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) + && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) + || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS0_FBC_ENABLED) { - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<49, 7, 57, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<49, 7, 57, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS0_FBC_ENABLED) { - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<48, 8, 56, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<48, 8, 56, uint64_t>(literal_0x3C ); } - - FAPI_TRY(fapi2::putScom(TGT0, 0x5013810ull, l_scom_buffer)); } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5013810ull, l_scom_buffer)); } { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - FAPI_TRY(fapi2::getScom( TGT0, 0x5013811ull, l_scom_buffer )); - - if ((l_def_OBUS1_FBC_ENABLED && l_def_OPTICS_IS_A_BUS)) - { - l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x10 ); - } - else if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x1F ); - } + FAPI_TRY(fapi2::getScom( TGT0, 0x5013811ull, l_scom_buffer )); - if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<1, 7, 57, uint64_t>(literal_0x40 ); - } + if ((l_def_OBUS1_FBC_ENABLED && l_def_OPTICS_IS_A_BUS)) + { + l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x10 ); + } + else if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x1F ); + } - if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<9, 7, 57, uint64_t>(literal_0x3C ); - } + if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<1, 7, 57, uint64_t>(literal_0x40 ); + } - if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<17, 7, 57, uint64_t>(literal_0x3C ); - } + if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<9, 7, 57, uint64_t>(literal_0x3C ); + } - if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<33, 7, 57, uint64_t>(literal_0x40 ); - } + if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<17, 7, 57, uint64_t>(literal_0x3C ); + } - if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<41, 7, 57, uint64_t>(literal_0x3C ); - } + if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<33, 7, 57, uint64_t>(literal_0x40 ); + } - if (l_def_OBUS1_FBC_ENABLED) - { - l_scom_buffer.insert<49, 7, 57, uint64_t>(literal_0x3C ); - } + if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<41, 7, 57, uint64_t>(literal_0x3C ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5013811ull, l_scom_buffer)); + if (l_def_OBUS1_FBC_ENABLED) + { + l_scom_buffer.insert<49, 7, 57, uint64_t>(literal_0x3C ); } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5013811ull, l_scom_buffer)); } { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - FAPI_TRY(fapi2::getScom( TGT0, 0x5013812ull, l_scom_buffer )); + FAPI_TRY(fapi2::getScom( TGT0, 0x5013812ull, l_scom_buffer )); - if ((l_def_OBUS2_FBC_ENABLED && l_def_OPTICS_IS_A_BUS)) - { - l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x10 ); - } - else if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x1F ); - } - - if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<1, 7, 57, uint64_t>(literal_0x40 ); - } + if ((l_def_OBUS2_FBC_ENABLED && l_def_OPTICS_IS_A_BUS)) + { + l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x10 ); + } + else if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x1F ); + } - if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<9, 7, 57, uint64_t>(literal_0x3C ); - } + if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<1, 7, 57, uint64_t>(literal_0x40 ); + } - if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<17, 7, 57, uint64_t>(literal_0x3C ); - } + if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<9, 7, 57, uint64_t>(literal_0x3C ); + } - if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<33, 7, 57, uint64_t>(literal_0x40 ); - } + if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<17, 7, 57, uint64_t>(literal_0x3C ); + } - if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<41, 7, 57, uint64_t>(literal_0x3C ); - } + if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<33, 7, 57, uint64_t>(literal_0x40 ); + } - if (l_def_OBUS2_FBC_ENABLED) - { - l_scom_buffer.insert<49, 7, 57, uint64_t>(literal_0x3C ); - } + if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<41, 7, 57, uint64_t>(literal_0x3C ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5013812ull, l_scom_buffer)); + if (l_def_OBUS2_FBC_ENABLED) + { + l_scom_buffer.insert<49, 7, 57, uint64_t>(literal_0x3C ); } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5013812ull, l_scom_buffer)); } { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - FAPI_TRY(fapi2::getScom( TGT0, 0x5013813ull, l_scom_buffer )); + FAPI_TRY(fapi2::getScom( TGT0, 0x5013813ull, l_scom_buffer )); - if ((l_def_OBUS3_FBC_ENABLED && l_def_OPTICS_IS_A_BUS)) - { - l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x0E ); - } - else if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x1C ); - } + if ((l_def_OBUS3_FBC_ENABLED && l_def_OPTICS_IS_A_BUS)) + { + l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x0E ); + } + else if (l_def_OBUS3_FBC_ENABLED) + { + l_scom_buffer.insert<24, 5, 59, uint64_t>(literal_0x1C ); + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) + && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) + || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS3_FBC_ENABLED) { - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<9, 7, 57, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<9, 7, 57, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS3_FBC_ENABLED) { - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<8, 8, 56, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<8, 8, 56, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) + && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) + || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS3_FBC_ENABLED) { - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<17, 7, 57, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<17, 7, 57, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS3_FBC_ENABLED) { - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<16, 8, 56, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<16, 8, 56, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) + && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) + || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS3_FBC_ENABLED) { - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<41, 7, 57, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<41, 7, 57, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS3_FBC_ENABLED) { - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<40, 8, 56, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<40, 8, 56, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x13)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) + && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) + || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) + && (l_chip_ec == 0x13)) || ((l_chip_id == 0x7) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS3_FBC_ENABLED) { - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<49, 7, 57, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<49, 7, 57, uint64_t>(literal_0x3C ); } + } - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) ) + { + if (l_def_OBUS3_FBC_ENABLED) { - if (l_def_OBUS3_FBC_ENABLED) - { - l_scom_buffer.insert<48, 8, 56, uint64_t>(literal_0x3C ); - } + l_scom_buffer.insert<48, 8, 56, uint64_t>(literal_0x3C ); } - - FAPI_TRY(fapi2::putScom(TGT0, 0x5013813ull, l_scom_buffer)); } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5013813ull, l_scom_buffer)); } { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - FAPI_TRY(fapi2::getScom( TGT0, 0x5013823ull, l_scom_buffer )); + FAPI_TRY(fapi2::getScom( TGT0, 0x5013823ull, l_scom_buffer )); - if (l_def_OB0_IS_PAIRED) - { - constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO01_IS_LOGICAL_PAIR_ON = 0x1; - l_scom_buffer.insert<0, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO01_IS_LOGICAL_PAIR_ON ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO01_IS_LOGICAL_PAIR_OFF = 0x0; - l_scom_buffer.insert<0, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO01_IS_LOGICAL_PAIR_OFF ); - } - - if (l_def_OBUS0_FBC_ENABLED) - { - constexpr auto l_PB_IOO_SCOM_LINKS01_TOD_ENABLE_ON = 0x1; - l_scom_buffer.insert<8, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS01_TOD_ENABLE_ON ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_LINKS01_TOD_ENABLE_OFF = 0x0; - l_scom_buffer.insert<8, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS01_TOD_ENABLE_OFF ); - } + if (l_def_OB0_IS_PAIRED) + { + constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO01_IS_LOGICAL_PAIR_ON = 0x1; + l_scom_buffer.insert<0, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO01_IS_LOGICAL_PAIR_ON ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO01_IS_LOGICAL_PAIR_OFF = 0x0; + l_scom_buffer.insert<0, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO01_IS_LOGICAL_PAIR_OFF ); + } - if (l_def_OB1_IS_PAIRED) - { - constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO23_IS_LOGICAL_PAIR_ON = 0x1; - l_scom_buffer.insert<1, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO23_IS_LOGICAL_PAIR_ON ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO23_IS_LOGICAL_PAIR_OFF = 0x0; - l_scom_buffer.insert<1, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO23_IS_LOGICAL_PAIR_OFF ); - } + if (l_def_OBUS0_FBC_ENABLED) + { + constexpr auto l_PB_IOO_SCOM_LINKS01_TOD_ENABLE_ON = 0x1; + l_scom_buffer.insert<8, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS01_TOD_ENABLE_ON ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_LINKS01_TOD_ENABLE_OFF = 0x0; + l_scom_buffer.insert<8, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS01_TOD_ENABLE_OFF ); + } - if (l_def_OBUS1_FBC_ENABLED) - { - constexpr auto l_PB_IOO_SCOM_LINKS23_TOD_ENABLE_ON = 0x1; - l_scom_buffer.insert<9, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS23_TOD_ENABLE_ON ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_LINKS23_TOD_ENABLE_OFF = 0x0; - l_scom_buffer.insert<9, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS23_TOD_ENABLE_OFF ); - } + if (l_def_OB1_IS_PAIRED) + { + constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO23_IS_LOGICAL_PAIR_ON = 0x1; + l_scom_buffer.insert<1, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO23_IS_LOGICAL_PAIR_ON ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO23_IS_LOGICAL_PAIR_OFF = 0x0; + l_scom_buffer.insert<1, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO23_IS_LOGICAL_PAIR_OFF ); + } - if (l_def_OB2_IS_PAIRED) - { - constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO45_IS_LOGICAL_PAIR_ON = 0x1; - l_scom_buffer.insert<2, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO45_IS_LOGICAL_PAIR_ON ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO45_IS_LOGICAL_PAIR_OFF = 0x0; - l_scom_buffer.insert<2, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO45_IS_LOGICAL_PAIR_OFF ); - } + if (l_def_OBUS1_FBC_ENABLED) + { + constexpr auto l_PB_IOO_SCOM_LINKS23_TOD_ENABLE_ON = 0x1; + l_scom_buffer.insert<9, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS23_TOD_ENABLE_ON ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_LINKS23_TOD_ENABLE_OFF = 0x0; + l_scom_buffer.insert<9, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS23_TOD_ENABLE_OFF ); + } - if (l_def_OBUS2_FBC_ENABLED) - { - constexpr auto l_PB_IOO_SCOM_LINKS45_TOD_ENABLE_ON = 0x1; - l_scom_buffer.insert<10, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS45_TOD_ENABLE_ON ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_LINKS45_TOD_ENABLE_OFF = 0x0; - l_scom_buffer.insert<10, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS45_TOD_ENABLE_OFF ); - } + if (l_def_OB2_IS_PAIRED) + { + constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO45_IS_LOGICAL_PAIR_ON = 0x1; + l_scom_buffer.insert<2, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO45_IS_LOGICAL_PAIR_ON ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO45_IS_LOGICAL_PAIR_OFF = 0x0; + l_scom_buffer.insert<2, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO45_IS_LOGICAL_PAIR_OFF ); + } - if (l_def_OB3_IS_PAIRED) - { - constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO67_IS_LOGICAL_PAIR_ON = 0x1; - l_scom_buffer.insert<3, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO67_IS_LOGICAL_PAIR_ON ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO67_IS_LOGICAL_PAIR_OFF = 0x0; - l_scom_buffer.insert<3, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO67_IS_LOGICAL_PAIR_OFF ); - } + if (l_def_OBUS2_FBC_ENABLED) + { + constexpr auto l_PB_IOO_SCOM_LINKS45_TOD_ENABLE_ON = 0x1; + l_scom_buffer.insert<10, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS45_TOD_ENABLE_ON ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_LINKS45_TOD_ENABLE_OFF = 0x0; + l_scom_buffer.insert<10, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS45_TOD_ENABLE_OFF ); + } - if (l_def_OBUS3_FBC_ENABLED) - { - constexpr auto l_PB_IOO_SCOM_LINKS67_TOD_ENABLE_ON = 0x1; - l_scom_buffer.insert<11, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS67_TOD_ENABLE_ON ); - } - else if (literal_1) - { - constexpr auto l_PB_IOO_SCOM_LINKS67_TOD_ENABLE_OFF = 0x0; - l_scom_buffer.insert<11, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS67_TOD_ENABLE_OFF ); - } + if (l_def_OB3_IS_PAIRED) + { + constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO67_IS_LOGICAL_PAIR_ON = 0x1; + l_scom_buffer.insert<3, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO67_IS_LOGICAL_PAIR_ON ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_PB_CFG_IOO67_IS_LOGICAL_PAIR_OFF = 0x0; + l_scom_buffer.insert<3, 1, 63, uint64_t>(l_PB_IOO_SCOM_PB_CFG_IOO67_IS_LOGICAL_PAIR_OFF ); + } - if (l_def_NVLINK_ACTIVE) - { - constexpr auto l_PB_IOO_SCOM_SEL_03_NPU_NOT_PB_ON = 0x1; - l_scom_buffer.insert<13, 1, 63, uint64_t>(l_PB_IOO_SCOM_SEL_03_NPU_NOT_PB_ON ); - } + if (l_def_OBUS3_FBC_ENABLED) + { + constexpr auto l_PB_IOO_SCOM_LINKS67_TOD_ENABLE_ON = 0x1; + l_scom_buffer.insert<11, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS67_TOD_ENABLE_ON ); + } + else if (literal_1) + { + constexpr auto l_PB_IOO_SCOM_LINKS67_TOD_ENABLE_OFF = 0x0; + l_scom_buffer.insert<11, 1, 63, uint64_t>(l_PB_IOO_SCOM_LINKS67_TOD_ENABLE_OFF ); + } - if (l_def_NVLINK_ACTIVE) - { - constexpr auto l_PB_IOO_SCOM_SEL_04_NPU_NOT_PB_ON = 0x1; - l_scom_buffer.insert<14, 1, 63, uint64_t>(l_PB_IOO_SCOM_SEL_04_NPU_NOT_PB_ON ); - } + if (l_def_NVLINK_ACTIVE) + { + constexpr auto l_PB_IOO_SCOM_SEL_03_NPU_NOT_PB_ON = 0x1; + l_scom_buffer.insert<13, 1, 63, uint64_t>(l_PB_IOO_SCOM_SEL_03_NPU_NOT_PB_ON ); + } - if (l_def_NVLINK_ACTIVE) - { - constexpr auto l_PB_IOO_SCOM_SEL_05_NPU_NOT_PB_ON = 0x1; - l_scom_buffer.insert<15, 1, 63, uint64_t>(l_PB_IOO_SCOM_SEL_05_NPU_NOT_PB_ON ); - } + if (l_def_NVLINK_ACTIVE) + { + constexpr auto l_PB_IOO_SCOM_SEL_04_NPU_NOT_PB_ON = 0x1; + l_scom_buffer.insert<14, 1, 63, uint64_t>(l_PB_IOO_SCOM_SEL_04_NPU_NOT_PB_ON ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5013823ull, l_scom_buffer)); + if (l_def_NVLINK_ACTIVE) + { + constexpr auto l_PB_IOO_SCOM_SEL_05_NPU_NOT_PB_ON = 0x1; + l_scom_buffer.insert<15, 1, 63, uint64_t>(l_PB_IOO_SCOM_SEL_05_NPU_NOT_PB_ON ); } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5013823ull, l_scom_buffer)); } { - if (((l_chip_id == 0x5) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x20)) || ((l_chip_id == 0x5) - && (l_chip_ec == 0x21)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x22)) || ((l_chip_id == 0x5) && (l_chip_ec == 0x23)) - || ((l_chip_id == 0x6) && (l_chip_ec == 0x10)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x11)) || ((l_chip_id == 0x6) - && (l_chip_ec == 0x12)) || ((l_chip_id == 0x6) && (l_chip_ec == 0x13)) ) - { - FAPI_TRY(fapi2::getScom( TGT0, 0x5013824ull, l_scom_buffer )); + FAPI_TRY(fapi2::getScom( TGT0, 0x5013824ull, l_scom_buffer )); - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<0, 4, 60, uint64_t>(literal_0b0001 ); - } - - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<8, 4, 60, uint64_t>(literal_0b0001 ); - } + if (l_def_OBUS0_FBC_ENABLED) + { + l_scom_buffer.insert<0, 4, 60, uint64_t>(literal_0b0001 ); + } - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0b0100 ); - } + if (l_def_OBUS0_FBC_ENABLED) + { + l_scom_buffer.insert<8, 4, 60, uint64_t>(literal_0b0001 ); + } - if (l_def_OBUS0_FBC_ENABLED) - { - l_scom_buffer.insert<12, 4, 60, uint64_t>(literal_0b0100 ); - } + if (l_def_OBUS0_FBC_ENABLED) + { + l_scom_buffer.insert<4, 4, 60, uint64_t>(literal_0b0100 ); + } - if ((( ! l_def_OBUS0_FBC_ENABLED) && l_def_OBUS1_FBC_ENABLED)) - { - l_scom_buffer.insert<16, 4, 60, uint64_t>(literal_0b0001 ); - } + if (l_def_OBUS0_FBC_ENABLED) + { + l_scom_buffer.insert<12, 4, 60, uint64_t>(literal_0b0100 ); + } - if ((( ! l_def_OBUS0_FBC_ENABLED) && l_def_OBUS1_FBC_ENABLED)) - { - l_scom_buffer.insert<24, 4, 60, uint64_t>(literal_0b0001 ); - } + if ((( ! l_def_OBUS0_FBC_ENABLED) && l_def_OBUS1_FBC_ENABLED)) + { + l_scom_buffer.insert<16, 4, 60, uint64_t>(literal_0b0001 ); + } - if ((( ! l_def_OBUS0_FBC_ENABLED) && l_def_OBUS1_FBC_ENABLED)) - { - l_scom_buffer.insert<20, 4, 60, uint64_t>(literal_0b0100 ); - } + if ((( ! l_def_OBUS0_FBC_ENABLED) && l_def_OBUS1_FBC_ENABLED)) + { + l_scom_buffer.insert<24, 4, 60, uint64_t>(literal_0b0001 ); + } - if ((( ! l_def_OBUS0_FBC_ENABLED) && l_def_OBUS1_FBC_ENABLED)) - { - l_scom_buffer.insert<28, 4, 60, uint64_t>(literal_0b0100 ); - } + if ((( ! l_def_OBUS0_FBC_ENABLED) && l_def_OBUS1_FBC_ENABLED)) + { + l_scom_buffer.insert<20, 4, 60, uint64_t>(literal_0b0100 ); + } - if (((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && l_def_OBUS2_FBC_ENABLED)) - { - l_scom_buffer.insert<32, 4, 60, uint64_t>(literal_0b0001 ); - } + if ((( ! l_def_OBUS0_FBC_ENABLED) && l_def_OBUS1_FBC_ENABLED)) + { + l_scom_buffer.insert<28, 4, 60, uint64_t>(literal_0b0100 ); + } - if (((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && l_def_OBUS2_FBC_ENABLED)) - { - l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0b0001 ); - } + if (((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && l_def_OBUS2_FBC_ENABLED)) + { + l_scom_buffer.insert<32, 4, 60, uint64_t>(literal_0b0001 ); + } - if (((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && l_def_OBUS2_FBC_ENABLED)) - { - l_scom_buffer.insert<36, 4, 60, uint64_t>(literal_0b0100 ); - } + if (((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && l_def_OBUS2_FBC_ENABLED)) + { + l_scom_buffer.insert<40, 4, 60, uint64_t>(literal_0b0001 ); + } - if (((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && l_def_OBUS2_FBC_ENABLED)) - { - l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0b0100 ); - } + if (((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && l_def_OBUS2_FBC_ENABLED)) + { + l_scom_buffer.insert<36, 4, 60, uint64_t>(literal_0b0100 ); + } - if ((((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && ( ! l_def_OBUS2_FBC_ENABLED)) - && l_def_OBUS3_FBC_ENABLED)) - { - l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0001 ); - } + if (((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && l_def_OBUS2_FBC_ENABLED)) + { + l_scom_buffer.insert<44, 4, 60, uint64_t>(literal_0b0100 ); + } - if ((((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && ( ! l_def_OBUS2_FBC_ENABLED)) - && l_def_OBUS3_FBC_ENABLED)) - { - l_scom_buffer.insert<56, 4, 60, uint64_t>(literal_0b0001 ); - } + if ((((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && ( ! l_def_OBUS2_FBC_ENABLED)) + && l_def_OBUS3_FBC_ENABLED)) + { + l_scom_buffer.insert<48, 4, 60, uint64_t>(literal_0b0001 ); + } - if ((((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && ( ! l_def_OBUS2_FBC_ENABLED)) - && l_def_OBUS3_FBC_ENABLED)) - { - l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b0100 ); - } + if ((((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && ( ! l_def_OBUS2_FBC_ENABLED)) + && l_def_OBUS3_FBC_ENABLED)) + { + l_scom_buffer.insert<56, 4, 60, uint64_t>(literal_0b0001 ); + } - if ((((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && ( ! l_def_OBUS2_FBC_ENABLED)) - && l_def_OBUS3_FBC_ENABLED)) - { - l_scom_buffer.insert<60, 4, 60, uint64_t>(literal_0b0100 ); - } + if ((((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && ( ! l_def_OBUS2_FBC_ENABLED)) + && l_def_OBUS3_FBC_ENABLED)) + { + l_scom_buffer.insert<52, 4, 60, uint64_t>(literal_0b0100 ); + } - FAPI_TRY(fapi2::putScom(TGT0, 0x5013824ull, l_scom_buffer)); + if ((((( ! l_def_OBUS0_FBC_ENABLED) && ( ! l_def_OBUS1_FBC_ENABLED)) && ( ! l_def_OBUS2_FBC_ENABLED)) + && l_def_OBUS3_FBC_ENABLED)) + { + l_scom_buffer.insert<60, 4, 60, uint64_t>(literal_0b0100 ); } + + FAPI_TRY(fapi2::putScom(TGT0, 0x5013824ull, l_scom_buffer)); } }; diff --git a/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml b/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml index 409a35937..e88242e4e 100644 --- a/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml +++ b/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml @@ -116,17 +116,18 @@ - ATTR_CHIP_EC_FEATURE_ALINK + ATTR_CHIP_EC_FEATURE_NOT_DD1_FBC_AND_ALINK TARGET_TYPE_PROC_CHIP, TARGET_TYPE_PROC_CHIP - Returns true if the chip has an A-Link - (Nimbus and Cumulus, not Axone) + DD1 FBC setting differs from DD2, ex. lo_limit adjustment. + Adding for Axone as it has A-link support + True if Nimbus dd2 or greater or cumulus ENUM_ATTR_NAME_NIMBUS - 0x10 + 0x20 GREATER_THAN_OR_EQUAL @@ -137,27 +138,8 @@ GREATER_THAN_OR_EQUAL - - - - - ATTR_CHIP_EC_FEATURE_NOT_DD1_FBC_AND_ALINK - TARGET_TYPE_PROC_CHIP, TARGET_TYPE_PROC_CHIP - - DD1 FBC setting differs from DD2, ex. lo_limit adjustment. - Axone does not have A-link support - True if Nimbus dd2 or greater or cumulus - - - - ENUM_ATTR_NAME_NIMBUS - - 0x20 - GREATER_THAN_OR_EQUAL - - - ENUM_ATTR_NAME_CUMULUS + ENUM_ATTR_NAME_AXONE 0x10 GREATER_THAN_OR_EQUAL @@ -165,7 +147,6 @@ - ATTR_CHIP_EC_FEATURE_NO_NPU2_FIR -- cgit v1.2.1