diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2016-07-05 08:44:36 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2016-08-17 15:01:21 -0400 |
commit | 0178b9e37b42a52d76aa64ac72c24701cad7abba (patch) | |
tree | a054cfad38ef4875a9dfba76c6f8532cec9cd784 /src/import/chips/p9/procedures/hwp/customize/p9_xip_section_append.H | |
parent | 644984fb1230696d7990d32b22fd551d9090a862 (diff) | |
download | talos-hostboot-0178b9e37b42a52d76aa64ac72c24701cad7abba.tar.gz talos-hostboot-0178b9e37b42a52d76aa64ac72c24701cad7abba.zip |
p9_xip_section_append: procedure that appends XIP image sections
Although the procedure is quite generic, it is meant to append
either a Hostboot Bootloader (.hbbl) or a ring section (.rings)
to an in-memory SEEPROM image.
It is called prior to XIP image customization (SEEPROM image).
Other use cases include FSP.
Change-Id: Iadd02ef9b9c37d1f5578751bcd80a3b3354c62b1
RTC:153780
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26630
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: GIRISANKAR PAULRAJ <gpaulraj@in.ibm.com>
Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28330
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/customize/p9_xip_section_append.H')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/customize/p9_xip_section_append.H | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/customize/p9_xip_section_append.H b/src/import/chips/p9/procedures/hwp/customize/p9_xip_section_append.H new file mode 100644 index 000000000..7ad01d202 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/customize/p9_xip_section_append.H @@ -0,0 +1,54 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/import/chips/p9/procedures/hwp/customize/p9_xip_section_append.H $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +#ifndef _P9_XIP_SECTION_APPEND_H_ +#define _P9_XIP_SECTION_APPEND_H_ + +#include <fapi2.H> +//------------------------------------------------------------------------------ +// Structure definitions +//------------------------------------------------------------------------------ + +// function pointer typedef definition for HWP call support +typedef fapi2::ReturnCode (*p9_xip_section_append_FP_t)( + void*, uint32_t, uint32_t, void*, uint32_t&); + +//------------------------------------------------------------------------------ +// Constant definitions +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +// Function prototypes +//------------------------------------------------------------------------------ +extern "C" +{ + fapi2::ReturnCode p9_xip_section_append( + void* i_section, // Ptr to buffer that gets appended + uint32_t i_section_size, // Size of buffer that gets appended + uint32_t i_section_id, // XIP section to be populated + void* i_image, // Ptr to XIP customize image (non-ecc) + uint32_t& io_image_size); // in: space available for enlarged XIP image + // out: size of enlarged XIP image +} +#endif //_P9_XIP_SECTION_APPEND_H_ |