diff options
author | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-06-29 00:52:04 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-08-22 00:35:36 -0400 |
commit | c124a1b08269328b9e3b5c9b536d1d6eafc242f8 (patch) | |
tree | f56e25c4258e4a4fa5721b75cf04469584e7d9d7 /sbe/sbefw/sbescom.H | |
parent | 2ba02009c0eddff2d00e94da9284fc2f58479885 (diff) | |
download | talos-sbe-c124a1b08269328b9e3b5c9b536d1d6eafc242f8.tar.gz talos-sbe-c124a1b08269328b9e3b5c9b536d1d6eafc242f8.zip |
Indirect scom support
RTC: 126140
Change-Id: I916ed8b300a5d8acc86bd48eadf5f06297d425fd
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26393
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'sbe/sbefw/sbescom.H')
-rw-r--r-- | sbe/sbefw/sbescom.H | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sbe/sbefw/sbescom.H b/sbe/sbefw/sbescom.H new file mode 100644 index 00000000..84c4ecc4 --- /dev/null +++ b/sbe/sbefw/sbescom.H @@ -0,0 +1,39 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: sbe/sbefw/sbescom.H $ */ +/* */ +/* OpenPOWER sbe Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/** + * @brief check if scom address is Indirect scom and perform scom + * + * @param[in] i_isRead True if read operation, false otherwise + * @param[in] i_addr scom addess + * @param[in] io_data data for scom operation. For read, it is output operand. + * @param[in] o_pcbPibStatus pcbpib status + * + * @return seconday error code. + */ +uint32_t checkIndirectAndDoScom( const bool i_isRead, + const uint64_t i_addr, + uint64_t & io_data, + uint32_t & o_pcbPibStatus ); |