From 8e498eb418ccdb17da292ad0794c68815f343cf4 Mon Sep 17 00:00:00 2001 From: Adam Muhle Date: Mon, 25 Mar 2013 15:54:12 -0500 Subject: OCC DMA Support Added support to get LIDs from either PNOR Ext Img or through mailbox DMA from FSP. The Extended Image path is fully tested, however the mailbox DMA code can't be tested until FSP support is available. The OCC function will be enabled with RTC 50987. Change-Id: I798ea19b2ca566288ff4ce64ce7440de20703496 RTC: 51076 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3845 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell Reviewed-by: Douglas R. Gilbert Reviewed-by: A. Patrick Williams III --- src/include/usr/hwpf/hwp/occ.H | 35 --------------------------------- src/include/usr/hwpf/hwp/occ/occ.H | 34 ++++++++++++++++++++++++++++++++ src/include/usr/hwpf/hwpf_reasoncodes.H | 4 ++++ 3 files changed, 38 insertions(+), 35 deletions(-) delete mode 100644 src/include/usr/hwpf/hwp/occ.H create mode 100644 src/include/usr/hwpf/hwp/occ/occ.H (limited to 'src/include/usr/hwpf') diff --git a/src/include/usr/hwpf/hwp/occ.H b/src/include/usr/hwpf/hwp/occ.H deleted file mode 100644 index fd59137d4..000000000 --- a/src/include/usr/hwpf/hwp/occ.H +++ /dev/null @@ -1,35 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/include/usr/hwpf/hwp/occ.H $ */ -/* */ -/* IBM CONFIDENTIAL */ -/* */ -/* COPYRIGHT International Business Machines Corp. 2013 */ -/* */ -/* p1 */ -/* */ -/* Object Code Only (OCO) source materials */ -/* Licensed Internal Code Source Materials */ -/* IBM HostBoot Licensed Internal Code */ -/* */ -/* The source code for this program is not published or otherwise */ -/* divested of its trade secrets, irrespective of what has been */ -/* deposited with the U.S. Copyright Office. */ -/* */ -/* Origin: 30 */ -/* */ -/* IBM_PROLOG_END_TAG */ -#ifndef OCC_H_ -#define OCC_H_ - -namespace OCC { - - errlHndl_t loadnStartOcc(uint64_t i_homer_addr, - uint64_t i_common_addr, - TARGETING::Target* i_target); - - -} //end OCC namespace - -#endif diff --git a/src/include/usr/hwpf/hwp/occ/occ.H b/src/include/usr/hwpf/hwp/occ/occ.H new file mode 100644 index 000000000..3e77af1dd --- /dev/null +++ b/src/include/usr/hwpf/hwp/occ/occ.H @@ -0,0 +1,34 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/usr/hwpf/hwp/occ.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2013 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ +#ifndef OCC_H_ +#define OCC_H_ + +namespace OCC { + + errlHndl_t loadnStartOcc(uint64_t i_homer_addr, + uint64_t i_common_addr, + TARGETING::Target* i_target); + +} //end OCC namespace + +#endif diff --git a/src/include/usr/hwpf/hwpf_reasoncodes.H b/src/include/usr/hwpf/hwpf_reasoncodes.H index 53ba4622e..cb20f4b9c 100644 --- a/src/include/usr/hwpf/hwpf_reasoncodes.H +++ b/src/include/usr/hwpf/hwpf_reasoncodes.H @@ -80,6 +80,7 @@ namespace fapi MOD_GET_CACHE_DECONFIG = 0x29, MOD_FAPI_GET_OTHER_SIDE_OF_MEM_CHANNEL = 0x2A, MOD_MBVPD_ACCESS = 0x2B, + MOD_OCC_LOAD_OCC_IMAGE_TO_HOMER = 0x2C, }; /** @@ -118,6 +119,9 @@ namespace fapi RC_NO_SINGLE_MCS = HWPF_COMP_ID | 0x25, RC_NO_SINGLE_MEMBUFF = HWPF_COMP_ID | 0x26, RC_STATE_MISMATCH = HWPF_COMP_ID | 0x27, + + // OCC Errors + RC_MMIO_UNMAP_ERR = HWPF_COMP_ID | 0x28, }; /** -- cgit v1.2.3