summaryrefslogtreecommitdiffstats
path: root/occ_status.hpp
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-08-09 21:42:10 +0530
committerVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-08-11 21:15:28 +0530
commitd298105de8ff706e66fe9f45b034219988dd1473 (patch)
tree1c15643a41e297965439f16a51496b50988517d3 /occ_status.hpp
parent30e329add77a72fffeb21e9d3203062a042c6f30 (diff)
downloadopenpower-occ-control-d298105de8ff706e66fe9f45b034219988dd1473.tar.gz
openpower-occ-control-d298105de8ff706e66fe9f45b034219988dd1473.zip
Call Hub FSI scan service prior to doing OCC bind
This is needed to make sure that the /dev/occ files are created that are needed to communicate with OCC device. Also, calling to this service is needed only when the first call to do OCC bind is received. Change-Id: I40466b8b74753b2f2366be385a8b066e912b32e4 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'occ_status.hpp')
-rw-r--r--occ_status.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/occ_status.hpp b/occ_status.hpp
index e07ca61..74839d0 100644
--- a/occ_status.hpp
+++ b/occ_status.hpp
@@ -109,6 +109,9 @@ class Status : public Interface
**/
sdbusplus::bus::match_t hostControlSignal;
+ /** @brief Indicates whether a hub FSI scan has been attempted or not */
+ static bool hubFsiScanDone;
+
/** @brief Callback handler when device errors are detected */
void deviceErrorHandler();
@@ -121,6 +124,10 @@ class Status : public Interface
/** @brief Sends a message to host control command handler to reset OCC
*/
void resetOCC();
+
+ /** @brief Initiates hub FSI scan so that /dev/occ files are created
+ */
+ void scanHubFSI();
};
} // namespace occ
OpenPOWER on IntegriCloud