diff options
3 files changed, 32 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H b/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H index fbb0cf9b1..6a0f9f54d 100644 --- a/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H +++ b/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H @@ -27286,6 +27286,26 @@ fapi_try_exit: return fapi2::current_err; } +/// +/// @brief ATTR_SBE_SYS_CONFIG getter +/// @param[out] uint64_t& reference to store the value +/// @note Generated by gen_accessors.pl generateParameters (SYSTEM) +/// @return fapi2::ReturnCode - FAPI2_RC_SUCCESS iff get is OK +/// @note System Configurtion information - 1 indicates a chip +/// present +/// +inline fapi2::ReturnCode sbe_sys_config(uint64_t& o_value) +{ + + FAPI_TRY( FAPI_ATTR_GET(fapi2::ATTR_SBE_SYS_CONFIG, fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>(), o_value) ); + return fapi2::current_err; + +fapi_try_exit: + FAPI_ERR("failed accessing ATTR_SBE_SYS_CONFIG: 0x%lx (system target)", + uint64_t(fapi2::current_err)); + return fapi2::current_err; +} + } diff --git a/src/import/chips/p9/procedures/xml/attribute_info/pervasive_attributes.xml b/src/import/chips/p9/procedures/xml/attribute_info/pervasive_attributes.xml index 22182288a..3457ec08a 100644 --- a/src/import/chips/p9/procedures/xml/attribute_info/pervasive_attributes.xml +++ b/src/import/chips/p9/procedures/xml/attribute_info/pervasive_attributes.xml @@ -622,4 +622,13 @@ <persistRuntime/> </attribute> +<attribute> + <id>ATTR_SBE_SYS_CONFIG</id> + <targetType>TARGET_TYPE_SYSTEM</targetType> + <description>System Configurtion information - 1 indicates a chip present</description> + <valueType>uint64</valueType> + <platInit/> +</attribute> + + </attributes> diff --git a/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml b/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml index 60ac1e843..9d1e8fd15 100644 --- a/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml +++ b/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml @@ -78,6 +78,9 @@ <id>ATTR_SBE_IMAGE_MINIMUM_VALID_ECS</id> <default>3</default> </attribute> + <attribute> + <id>ATTR_SBE_SYS_CONFIG</id> + </attribute> <!-- ===================================================================== End of temporary definitions |