diff options
Diffstat (limited to 'src/usr/pnor/pnorrp.H')
-rw-r--r-- | src/usr/pnor/pnorrp.H | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/usr/pnor/pnorrp.H b/src/usr/pnor/pnorrp.H index 509cf1436..27e52732f 100644 --- a/src/usr/pnor/pnorrp.H +++ b/src/usr/pnor/pnorrp.H @@ -33,7 +33,8 @@ #include <vmmconst.h> #include <map> #include "pnor_common.H" - +#include "ffs.h" +#include <config.h> /** * PNOR Resource Provider */ @@ -102,8 +103,9 @@ class PnorRP // TOC 0 and 1 offsets of both PNOR sides. The active PNOR side determined // by the Seeprom the SBE booted from std::pair<uint64_t, uint64_t> iv_activeTocOffsets; +#ifdef CONFIG_PNOR_TWO_SIDE_SUPPORT std::pair<uint64_t, uint64_t> iv_altTocOffsets; - +#endif enum { BASE_VADDR = VMM_VADDR_PNOR_RP, /**< 2GB = 0x80000000*/ @@ -153,6 +155,13 @@ class PnorRP void initDaemon(); /** + * @brief Determine the TOC offsets based on the HBB address + * System does a shutdown if any errors detected + * @return Error from device + */ + errlHndl_t findTOC(); + + /** * @brief Verify both TOC's and store section information from one of the * verified TOC's. Additionally set each section permissions * (e.g. readOnly) |