diff options
Diffstat (limited to 'src/usr/scom/scomtrans.H')
-rw-r--r-- | src/usr/scom/scomtrans.H | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/src/usr/scom/scomtrans.H b/src/usr/scom/scomtrans.H index f78249daf..aa8c4dd82 100644 --- a/src/usr/scom/scomtrans.H +++ b/src/usr/scom/scomtrans.H @@ -27,6 +27,7 @@ #include <devicefw/driverif.H> #include <p9_cu.H> +#include <centaur_scominfo.H> /** @file scomtrans.H * @brief Provides the interfaces to perform a SCom @@ -61,7 +62,7 @@ errlHndl_t startScomProcess(DeviceFW::OperationType i_opType, va_list i_args); /** - * @brief This function translates a scom address using the + * @brief This function translates a p9 scom address using * the interface that the HW team provided. * * @param[in] i_target SCom target is passed in @@ -72,22 +73,47 @@ errlHndl_t startScomProcess(DeviceFW::OperationType i_opType, * @return errlHndl_t */ errlHndl_t p9_translation (TARGETING::Target * &i_target, - TARGETING::TYPE i_type, + TARGETING::TYPE i_type, uint64_t &io_addr, bool & o_needsWakeup, uint64_t i_opMode = 0); /** - * @brief This function translates a scom address using the + * @brief This function translates a centaur scom address using * the interface that the HW team provided. * + * @param[in] i_target SCom target is passed in + * @param[in] i_type Type of the target + * @param[in|out] io_addr Address to be translated + * @param[in] i_opMode Defaults to 0 (Standard) + * @return errlHndl_t + */ +errlHndl_t centaur_translation (TARGETING::Target * &i_target, + TARGETING::TYPE i_type, + uint64_t &io_addr, + uint64_t i_opMode = 0); + +/** + * @brief This function gets the p9 chip unit for this target type. + * + * @param[in] i_type Type of the target + * @param[out] o_chipUnit Chip unit related to target type + * @return bool True if there was an error trying to find + * a chipUnit related to the inputed target type + */ +bool getChipUnitP9 (TARGETING::TYPE i_type, + p9ChipUnits_t &o_chipUnit); + +/** + * @brief This function gets the centaur chip unit for this target type. + * * @param[in] i_type Type of the target * @param[out] o_chipUnit Chip unit related to target type * @return bool True if there was an error trying to find * a chipUnit related to the inputed target type */ -bool getChipUnit (TARGETING::TYPE i_type, - p9ChipUnits_t &o_chipUnit); +bool getChipUnitCentaur (TARGETING::TYPE i_type, + centaurChipUnits_t &o_chipUnit); /** * @brief Computes the chip/ddlevel value to be passed into translator |