summaryrefslogtreecommitdiffstats
path: root/src/usr/xscom
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2014-01-21 17:40:48 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-02-11 15:30:19 -0600
commit18bdf83d7705bd3c519b195ce095e39181214435 (patch)
tree5fac3905de3c887a375766446fc3935376516ed8 /src/usr/xscom
parenta8796c565730ff18859ee037ae517afbfabd0d34 (diff)
downloadtalos-hostboot-18bdf83d7705bd3c519b195ce095e39181214435.tar.gz
talos-hostboot-18bdf83d7705bd3c519b195ce095e39181214435.zip
HBRT: Defer indirect scoms to Sapphire.
Change-Id: I252016d0bfe3fea15deba5968d0d8a6ff044cb22 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8213 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/xscom')
-rw-r--r--src/usr/xscom/runtime/rt_xscom.C18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/usr/xscom/runtime/rt_xscom.C b/src/usr/xscom/runtime/rt_xscom.C
index 7aa8669cb..13c2557ba 100644
--- a/src/usr/xscom/runtime/rt_xscom.C
+++ b/src/usr/xscom/runtime/rt_xscom.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2013 */
+/* COPYRIGHT International Business Machines Corp. 2013,2014 */
/* */
/* p1 */
/* */
@@ -43,7 +43,7 @@ namespace XSCOM
enum
{
CHIPID_NODE_SHIFT = 3, // CHIPID is 'NNNCCC'b, shift 3
- MEMBUF_ID_SHIFT = 4, // CHIPID for MEMBUF is 'NNNCCCMMMM'b
+ MEMBUF_ID_SHIFT = 4, // CHIPID for MEMBUF is 'NNNCCCMMMM'b
MEMBUF_ID_FLAG = 0x80000000, // MEMBUF chip id has MSbit on
};
@@ -71,11 +71,11 @@ DEVICE_REGISTER_ROUTE(DeviceFW::WILDCARD,
/**
* @brief Convert target into chipId that the hypervisor uses
* @param[in] i_target The HB TARGETING target
- * @param[out] o_chipId 32-bit chipid
+ * @param[out] o_chipId Chipid
* @return errlHndl_t Error handle if there was an error
*/
errlHndl_t get_rt_target(TARGETING::Target* i_target,
- uint32_t & o_chipId);
+ uint64_t & o_chipId);
/**
* @brief Internal routine that verifies the validity of input parameters
@@ -162,7 +162,7 @@ errlHndl_t xscomOpSanityCheck(const DeviceFW::OperationType i_opType,
errlHndl_t get_rt_target(TARGETING::Target* i_target,
- uint32_t &o_chipId)
+ uint64_t &o_chipId)
{
errlHndl_t l_err = NULL;
@@ -276,7 +276,7 @@ errlHndl_t get_rt_target(TARGETING::Target* i_target,
o_chipId = (fabId << CHIPID_NODE_SHIFT) + procPos;
}
} while(0);
-
+
return l_err;
}
@@ -286,12 +286,12 @@ errlHndl_t get_rt_target(TARGETING::Target* i_target,
*/
errlHndl_t xScomDoOp(DeviceFW::OperationType i_ioType,
TARGETING::Target * i_target,
- uint32_t i_scomAddr,
+ uint64_t i_scomAddr,
void * io_buffer)
{
errlHndl_t l_err = NULL;
int rc = 0;
- uint32_t proc_id = 0;
+ uint64_t proc_id = 0;
// Convert target to something Sapphire understands
l_err = get_rt_target(i_target,
@@ -398,7 +398,7 @@ errlHndl_t xscomPerformOp(DeviceFW::OperationType i_opType,
l_err = xScomDoOp(i_opType,
i_target,
- (uint32_t)l_addr,
+ l_addr,
io_buffer);
}
OpenPOWER on IntegriCloud