From ceb3218e063333cbe8f20fd57de84e2a75c773fd Mon Sep 17 00:00:00 2001 From: Sudheendra K Srivathsa Date: Fri, 26 Aug 2016 05:58:08 -0400 Subject: p9_pstate_paramter_block L2 commit Change-Id: I8d3d557ade04c88a77145feeb15d46f45f472e84 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28837 Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Christian R. Geddes Reviewed-by: Gregory S. Still Reviewed-by: Jennifer A. Stofer --- import/chips/p9/procedures/hwp/lib/p9_pstates.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/import/chips/p9/procedures/hwp/lib/p9_pstates.h b/import/chips/p9/procedures/hwp/lib/p9_pstates.h index c9defe93..5a7e8ae4 100644 --- a/import/chips/p9/procedures/hwp/lib/p9_pstates.h +++ b/import/chips/p9/procedures/hwp/lib/p9_pstates.h @@ -33,6 +33,22 @@ // *HWP Consumed by : PGPE, OCC +// @todo RTC 162565 - Temporary definition, +// Pick up p9_pm_utils code for revlev when code is merged +#ifdef _BIG_ENDIAN + + #define revle16(x) x + #define revle32(x) x + #define revle64(x) x + +#else + + uint16_t revle16(uint16_t i_x); + uint32_t revle32(uint32_t i_x); + uint64_t revle64(uint64_t i_x); + +#endif + #ifndef __P9_PSTATES_H__ #define __P9_PSTATES_H__ @@ -646,7 +662,7 @@ typedef struct iVRMInfo uint8_t strength_lookup[IVRM_ARRAY_SIZE]; // Each entry is a six bit value, right justified /// Scaling factor for the Vin_Adder calculation. - uint8_t vin_multipler[IVRM_ARRAY_SIZE]; // Each entry is from 0 to 255. + uint8_t vin_multiplier[IVRM_ARRAY_SIZE]; // Each entry is from 0 to 255. /// Vin_Max used in Vin_Adder calculation (in millivolts) uint16_t vin_max_mv; @@ -739,6 +755,10 @@ typedef struct typedef struct { + + /// Magic Number + uint64_t magic; // the last byte of this number the structure's version. + /// Pstate options /// /// The options are included as part of the GlobalPstateTable so that they -- cgit v1.2.3