summaryrefslogtreecommitdiffstats
path: root/src/usr/lpc/lpcdd.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/lpc/lpcdd.C')
-rw-r--r--src/usr/lpc/lpcdd.C15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/usr/lpc/lpcdd.C b/src/usr/lpc/lpcdd.C
index a8a23fde1..81577a5b0 100644
--- a/src/usr/lpc/lpcdd.C
+++ b/src/usr/lpc/lpcdd.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2016 */
+/* Contributors Listed Below - COPYRIGHT 2014,2017 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -363,6 +363,19 @@ errlHndl_t create_altmaster_objects( bool i_create,
return l_err;
}
+
+/**
+ * @brief Block/unblock all LPC operations
+ * @param[in] i_block true: block ops, false: allow ops
+ *
+ */
+void block_lpc_ops( bool i_block )
+{
+ // Note: this is ignoring the alt-master because the usecase for
+ // this function is only applicable for DD1
+ Singleton<LpcDD>::instance().lock(i_block);
+}
+
}; //namespace LPC
///////////////////////////////////////////////////////////////////////////////
OpenPOWER on IntegriCloud