summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2014-04-17 17:28:31 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-05-21 17:33:37 -0500
commit3faeb6dd6cbc8929ac94d92525d1d4f5dcfe9156 (patch)
treee85f34a6f2ff5457a366a80936d4cf1d54f80eb0 /src/include
parent42e2de679d889a35d67ff0be4f5433ef3b495ff7 (diff)
downloadtalos-hostboot-3faeb6dd6cbc8929ac94d92525d1d4f5dcfe9156.tar.gz
talos-hostboot-3faeb6dd6cbc8929ac94d92525d1d4f5dcfe9156.zip
Set CMFSI fields correctly in the devtree for altmaster
Change-Id: I4a36c70d36ec0603d053d5198a2aa78c07c63334 RTC: 35041 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/10626 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/fsi/fsiif.H26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/usr/fsi/fsiif.H b/src/include/usr/fsi/fsiif.H
index d5e0a6a38..14bb57da8 100644
--- a/src/include/usr/fsi/fsiif.H
+++ b/src/include/usr/fsi/fsiif.H
@@ -99,6 +99,32 @@ void getFsiFFDC( fsiFFDCType_t i_ffdc_type,
*/
errlHndl_t resetPib2Opb( TARGETING::Target* i_target );
+/**
+ * @brief Structure which defines info necessary to access a chip via FSI
+ */
+struct FsiLinkInfo_t
+{
+ TARGETING::Target* master; ///< FSI Master
+ TARGETING::FSI_MASTER_TYPE type; ///< Master or Cascaded Master
+ uint8_t link; ///< Which link is this chip hanging off of
+ uint8_t cascade; ///< Slave cascade position
+ uint8_t mPort; ///< FSI Master port (0=A,1=B)
+
+ FsiLinkInfo_t() :
+ master(NULL), type(TARGETING::FSI_MASTER_TYPE_NO_MASTER),
+ link(0xFF), cascade(0), mPort(0)
+ {};
+};
+
+/**
+ * @brief Retrieve some FSI attribute information
+ *
+ * @param[in] i_slave Slave Chip Target to query
+ * @param[out] o_info FSI Link Information
+ */
+void getFsiLinkInfo( TARGETING::Target* i_slave,
+ FsiLinkInfo_t& o_info );
+
/**
* FSI Slave Registers for P8
OpenPOWER on IntegriCloud