summaryrefslogtreecommitdiffstats
path: root/src/include/usr/pnor
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/pnor')
-rw-r--r--src/include/usr/pnor/pnorif.H17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/include/usr/pnor/pnorif.H b/src/include/usr/pnor/pnorif.H
index 205bd453e..11cc98a10 100644
--- a/src/include/usr/pnor/pnorif.H
+++ b/src/include/usr/pnor/pnorif.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2018 */
+/* Contributors Listed Below - COPYRIGHT 2011,2019 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -60,6 +60,14 @@ struct PnorInfo_t
uint32_t flashSize; //< Size of PNOR in bytes
};
+/** PNOR access mode */
+enum hiomapMode
+{
+ PNOR_IPMI,
+ PNOR_MBOX,
+ PNOR_UNKNOWN
+};
+
/**
* @brief Returns information about a given side of pnor
*
@@ -203,6 +211,13 @@ errlHndl_t validateAltMaster( void );
*/
void getPnorInfo( PnorInfo_t& o_pnorInfo );
+/**
+ * @brief Get HIOMAP PNOR access mode
+ *
+ * @return hiomapMode Pnor access mode (ipmi/mbox)
+ */
+hiomapMode getPnorAccessMode( void );
+
/**
* @brief Check if PNOR section appears to be secure and sets the
OpenPOWER on IntegriCloud