diff options
author | Claus Michael Olsen <cmolsen@us.ibm.com> | 2016-11-01 12:20:15 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-11-04 12:27:41 -0400 |
commit | d737fed5c33eed4bbbd1a18ac363a3423dd16274 (patch) | |
tree | 134dfab8770bc46cce04a0f2224179d29c16dda0 /src | |
parent | 957e64902913b735e0f19520aacabf4276b4dc74 (diff) | |
download | talos-sbe-d737fed5c33eed4bbbd1a18ac363a3423dd16274.tar.gz talos-sbe-d737fed5c33eed4bbbd1a18ac363a3423dd16274.zip |
TOR API: Introducing API to expose TOR version and wrappers.
Change-Id: Id13f51cde14a4f0f7d59c1bb09d26d8d65342b05
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32074
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Kahn C. Evans <kahnevan@us.ibm.com>
Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32077
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/import/chips/p9/utils/imageProcs/p9_tor.C | 8 | ||||
-rw-r--r-- | src/import/chips/p9/utils/imageProcs/p9_tor.H | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/import/chips/p9/utils/imageProcs/p9_tor.C b/src/import/chips/p9/utils/imageProcs/p9_tor.C index ce03f238..41b5f1a0 100644 --- a/src/import/chips/p9/utils/imageProcs/p9_tor.C +++ b/src/import/chips/p9/utils/imageProcs/p9_tor.C @@ -2352,4 +2352,12 @@ int tor_append_ring( void* i_ringSection, // Ring section ptr } +// +// Inform caller of TOR version. +// +uint8_t tor_version( void) +{ + return (uint8_t)TOR_VERSION; +} + }; diff --git a/src/import/chips/p9/utils/imageProcs/p9_tor.H b/src/import/chips/p9/utils/imageProcs/p9_tor.H index fc8cc3f8..e9e38fb4 100644 --- a/src/import/chips/p9/utils/imageProcs/p9_tor.H +++ b/src/import/chips/p9/utils/imageProcs/p9_tor.H @@ -34,6 +34,8 @@ namespace P9_TOR extern const char* ppeTypeName[]; extern const char* ringVariantName[]; +#define TOR_VERSION 1 + typedef struct { uint32_t sizeOfThis; @@ -436,6 +438,15 @@ int tor_append_ring( void* i_ringSection, uint8_t i_instanceId, void* i_rs4Container, uint32_t i_dbgl = 0 ); + + +/// Inform caller of TOR version +/// +/// \param[in] - none +/// +/// \retval - TOR version +uint8_t tor_version( void); + }; #endif //_P9_TOR_H_ |