From 37132b70227cde9f5896268a264b13e74703cf3d Mon Sep 17 00:00:00 2001 From: Corey Swenson Date: Fri, 7 Dec 2018 16:49:09 -0600 Subject: 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 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Daniel M. Crowell --- src/include/usr/pnor/pnorif.H | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/include/usr/pnor') 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 -- cgit v1.2.1