summaryrefslogtreecommitdiffstats
path: root/src/usr/vpd/cvpd.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/vpd/cvpd.H')
-rw-r--r--src/usr/vpd/cvpd.H32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/usr/vpd/cvpd.H b/src/usr/vpd/cvpd.H
index 73c54128d..31f89b29f 100644
--- a/src/usr/vpd/cvpd.H
+++ b/src/usr/vpd/cvpd.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2013,2017 */
+/* Contributors Listed Below - COPYRIGHT 2013,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -176,6 +176,22 @@ class CvpdFacade: public IpVpdFacade
*/
CvpdFacade( );
+#ifdef CONFIG_SECUREBOOT
+ /**
+ * @brief Load/unload the appropriate secure section for
+ * an overriden PNOR section
+ * @param[in] i_args Record/keyword
+ * @param[in] i_target Target pointer
+ * @param[in] i_load true=load, false=unload
+ * @param[out] o_loaded true=section loaded, false=section not loaded
+ * @return Error log
+ */
+ virtual errlHndl_t loadUnloadSecureSection( input_args_t i_args,
+ TARGETING::Target* i_target,
+ bool i_load,
+ bool& o_loaded );
+#endif
+
private:
/**
@@ -197,5 +213,19 @@ class CvpdFacade: public IpVpdFacade
const recordInfo* & o_altVpdRecords,
uint64_t & o_altRecSize);
+ protected:
+ /**
+ * @brief Callback function to check for a record override and
+ * set iv_overridePtr appropriately
+ * @param[in] i_record Record name
+ * @param[in] i_target Target pointer
+ * @param[out] o_ptr Pointer to location of record in PNOR,
+ * ==nullptr if there is no override
+ * @return Error log
+ */
+ virtual errlHndl_t checkForRecordOverride( const char* i_record,
+ TARGETING::Target* i_target,
+ uint8_t*& o_ptr );
+
};
#endif // __CVPD_H
OpenPOWER on IntegriCloud