summaryrefslogtreecommitdiffstats
path: root/src/include/usr/pnor
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2018-12-07 16:49:09 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-01-14 10:20:13 -0600
commit37132b70227cde9f5896268a264b13e74703cf3d (patch)
tree935c6a2701d4f6d170886631f185db41ad65b6c6 /src/include/usr/pnor
parentdd65f35941d2c97663f11223a3ba8b9b32e6b89d (diff)
downloadtalos-hostboot-37132b70227cde9f5896268a264b13e74703cf3d.tar.gz
talos-hostboot-37132b70227cde9f5896268a264b13e74703cf3d.zip
Generate error when pnor is not accessed via ipmi
Change-Id: Ia44001c45dbe5a0f4f51202136d2649bb365d73f Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69585 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
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