diff options
author | Prachi Gupta <pragupta@us.ibm.com> | 2015-09-01 11:01:06 -0500 |
---|---|---|
committer | Martin Peschke <mpeschke@de.ibm.com> | 2015-10-01 10:11:10 +0200 |
commit | eb63d22a8c2194a64de1c32b1003add3bcd3ff29 (patch) | |
tree | 59e9d68fd1ca5eb439c4c16d7c9d734c28c11400 /import/hwpf/fapi2/include/plat/hw_access.H | |
parent | 4a8d9bca5cc0f145146c42e44ff4e5c2299cae5c (diff) | |
download | talos-sbe-eb63d22a8c2194a64de1c32b1003add3bcd3ff29.tar.gz talos-sbe-eb63d22a8c2194a64de1c32b1003add3bcd3ff29.zip |
Build Sequencer for one initfile, parse attr ovd, target resolution
Change-Id: I815e70686b066016cf6576c8a644cd27684bd05a
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19211
Tested-by: Jenkins Server
Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'import/hwpf/fapi2/include/plat/hw_access.H')
-rw-r--r-- | import/hwpf/fapi2/include/plat/hw_access.H | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/import/hwpf/fapi2/include/plat/hw_access.H b/import/hwpf/fapi2/include/plat/hw_access.H index 56c3f22b..d86dce17 100644 --- a/import/hwpf/fapi2/include/plat/hw_access.H +++ b/import/hwpf/fapi2/include/plat/hw_access.H @@ -34,6 +34,10 @@ #include <plat_hw_access.H> #include <fapi2_hw_access.H> +//@TODO remove with RTC: 133089 +#ifdef TEMPORARY_FOR_INITFILE + #include <SpyInterface.H> +#endif namespace fapi2 { //-------------------------------------------------------------------------- @@ -483,8 +487,33 @@ inline ReturnCode putSpy(const Target<K>& i_target, const char* const i_spyId, const variable_buffer& i_data) { +//@TODO remove with RTC: 133089 +#ifdef TEMPORARY_FOR_INITFILE + uint32_t l_chipId = strtol(getenv("CHIPID"), NULL, 16); + uint32_t l_chipEc = strtol(getenv("CHIPEC"), NULL, 16); + + return (SPY::PutSpy(l_chipId, l_chipEc, i_spyId, i_data )); +#else static_assert(K == 0, "implement putSpy (string)"); return ~FAPI2_RC_SUCCESS; +#endif +} + +template< TargetType K > +inline ReturnCode putSpy(const Target<K>& i_target, + const char* const i_spyId, + const char* i_enum) +{ +//@TODO remove with RTC: 133089 +#ifdef TEMPORARY_FOR_INITFILE + uint32_t l_chipId = strtol(getenv("CHIPID"), NULL, 16); + uint32_t l_chipEc = strtol(getenv("CHIPEC"), NULL, 16); + + return (SPY::PutSpy(l_chipId, l_chipEc, i_spyId, i_enum )); +#else + static_assert(K == 0, "implement putSpy (string)"); + return ~FAPI2_RC_SUCCESS; +#endif } #endif /// @brief Writes spy data into a buffer holding ring data image |