diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2011-07-29 13:22:18 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2011-08-08 08:03:58 -0500 |
commit | df4b0117660700e195864b761dfe92dd3467c686 (patch) | |
tree | 8542d84e764200031416e89a5defa166a616e0d0 /src/include/usr/pnor/pnorif.H | |
parent | b6041015e48c8987813b2220f59da4bf6c54383e (diff) | |
download | blackbird-hostboot-df4b0117660700e195864b761dfe92dd3467c686.tar.gz blackbird-hostboot-df4b0117660700e195864b761dfe92dd3467c686.zip |
More PNOR RP work - Task 3440 (Story 3330)
Also includes testcase work for Task 3388
Change-Id: Ib4ff920f351554fe457c171f601a38809ca6ac6f
Functional PNOR RP code that works with the PNOR DD. Still missing
the complete path but should be ready for use by the next level up.
Task 3440
Change-Id: Id32a919f88da636c341116444e557387beaccdb2
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/230
Tested-by: Jenkins Server
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
Diffstat (limited to 'src/include/usr/pnor/pnorif.H')
-rw-r--r-- | src/include/usr/pnor/pnorif.H | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/src/include/usr/pnor/pnorif.H b/src/include/usr/pnor/pnorif.H index 1b551d8ee..49f4e7879 100644 --- a/src/include/usr/pnor/pnorif.H +++ b/src/include/usr/pnor/pnorif.H @@ -3,6 +3,7 @@ #include <stdint.h> #include <builtins.h> +#include <errl/errlentry.H> namespace PNOR { @@ -14,7 +15,7 @@ enum SectionId { TOC, /**< Table of Contents */ GLOBAL_DATA, /**< Global Data */ - SBE_IPL, /**< Self-Boot Enginer IPL image */ + SBE_IPL, /**< Self-Boot Engine IPL image */ HB_BASE_CODE, /**< Hostboot Base Image */ HB_DATA, /**< Hostboot Data */ HB_ERRLOGS, /**< Hostboot Error log Repository */ @@ -33,26 +34,29 @@ enum SectionId }; /** + * Select a side of flash to access + */ +enum SideSelect +{ + SIDE_A, /**< A-side of flash */ + SIDE_B, /**< B-side of flash */ + SIDELESS, /**< Sideless data */ +}; + +/** * Information about a section of PNOR */ struct SectionInfo_t { SectionId id; /**< Identifier for this section */ + SideSelect side; /**< Identifier for the side of flash */ const char* name; /**< Name of the section */ + uint64_t vaddr; /**< Virtual address for the start of the section */ uint64_t size; /**< Actual size of content in bytes */ bool eccProtected; /**< Section is ECC protected */ }; -/** - * Select a side of flash to access - */ -enum SideSelect -{ - SIDE_A = 0xA, /**< A-side of flash */ - SIDE_B = 0xB, /**< B-side of flash */ - SIDELESS = 0xF, /**< Sideless data */ -}; @@ -63,11 +67,11 @@ enum SideSelect * @param[in] i_side Side select * @param[out] o_info Location and size information * - * @return size_t Offset of section in bytes + * @return errlHndl_t Error log if request was invalid */ -void getSectionInfo( SectionId i_section, - SideSelect i_side, - SectionInfo_t& o_info ); +errlHndl_t getSectionInfo( SectionId i_section, + SideSelect i_side, + SectionInfo_t& o_info ); } |