diff options
| author | vanlee <vanlee@us.ibm.com> | 2013-04-28 00:59:59 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-05-08 14:24:52 -0500 |
| commit | 877e635c96a6c7f2d657fb8abb974417b033e282 (patch) | |
| tree | 5f8fdd8bdf32117127143870aa13fc7ab7332b75 /src/include | |
| parent | 7af1d3ab7d3ab0049032cbdb3f04fd0e773724fe (diff) | |
| download | blackbird-hostboot-877e635c96a6c7f2d657fb8abb974417b033e282.tar.gz blackbird-hostboot-877e635c96a6c7f2d657fb8abb974417b033e282.zip | |
Port FSP TOD service module to Hostboot for SPless system
Change-Id: I9f61df4b8ea05c5634578cc8e27f5ffa7dadf8da
RTC: 67846
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4250
Tested-by: Jenkins Server
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/usr/hbotcompid.H | 8 | ||||
| -rw-r--r-- | src/include/usr/hwpf/hwp/tod_init/tod_init_reasoncodes.H | 72 | ||||
| -rw-r--r-- | src/include/usr/isteps/istep18list.H | 27 |
3 files changed, 105 insertions, 2 deletions
diff --git a/src/include/usr/hbotcompid.H b/src/include/usr/hbotcompid.H index 662bb7982..ce725012d 100644 --- a/src/include/usr/hbotcompid.H +++ b/src/include/usr/hbotcompid.H @@ -170,7 +170,13 @@ const compId_t INTR_COMP_ID = 0x0F00; const char INTR_COMP_NAME[] = "intr"; //@} -// 0x1000 - open to reclaim +/** @name TOD + * TOD component + */ +//@{ +const compId_t TOD_COMP_ID = 0x1000; +const char TOD_COMP_NAME[] = "tod"; +//@} /** @name MBOX * MBOX component diff --git a/src/include/usr/hwpf/hwp/tod_init/tod_init_reasoncodes.H b/src/include/usr/hwpf/hwp/tod_init/tod_init_reasoncodes.H new file mode 100644 index 000000000..3b74904bb --- /dev/null +++ b/src/include/usr/hwpf/hwp/tod_init/tod_init_reasoncodes.H @@ -0,0 +1,72 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/usr/hwpf/hwp/tod_init/tod_init_reasoncodes.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 TOD_INIT_REASONCODES_H +#define TOD_INIT_REASONCODES_H + +#include <hbotcompid.H> + +namespace TOD +{ + enum TODModuleId + { + TOD_PICK_MDMT = 0x01, + TOD_BUILD_TOD_DRAWERS = 0x02, + TOD_QUERY_ACTIVE_CONFIG = 0x03, + TOD_FIND_MASTER_PROC = 0x04, + TOD_SETUP_HWP = 0x05, + TOD_SAVEREGS_HWP = 0x06, + TOD_LOG_UNSUPPORTED_BUSTYPE = 0x07, + TOD_LOG_UNSUPPORTED_BUSPORT = 0x08, + TOD_SETUP = 0x09, + TOD_READ = 0x0A, + TOD_LOG_INVALID_CONFIG = 0x0B, + TOD_LOG_UNSUPORTED_ORDINALID = 0x0C, + TOD_GETSCOM = 0x0D, + TOD_GETFUNCNODETARGETSONSYSTEM = 0x0E, + TOD_TOPOLOGY_CREATE = 0x0F, + TOD_WIRE_PROCS = 0x10, + TOD_WIRE_DRAWERS = 0x11, + TOD_INIT_HWP = 0x12, + }; + + enum TODReasonCode + { + TOD_NO_MASTER_PROC = TOD_COMP_ID | 0x01, + TOD_NO_FUNC_NODE_AVAILABLE = TOD_COMP_ID | 0x02, + TOD_NO_DRAWERS = TOD_COMP_ID | 0x03, + TOD_HW_ERROR = TOD_COMP_ID | 0x04, + TOD_UNSUPPORTED_BUSTYPE = TOD_COMP_ID | 0x05, + TOD_UNSUPPORTED_BUSPORT = TOD_COMP_ID | 0x06, + TOD_INVALID_ACTION = TOD_COMP_ID | 0x07, + TOD_INVALID_CONFIG = TOD_COMP_ID | 0x08, + TOD_UNSUPORTED_ORDINALID = TOD_COMP_ID | 0x09, + TOD_ECMD_ERROR = TOD_COMP_ID | 0x0A, + TOD_NULL_INPUT_TARGET = TOD_COMP_ID | 0x0B, + TOD_INVALID_TARGET = TOD_COMP_ID | 0x0C, + TOD_CREATION_ERR = TOD_COMP_ID | 0x0D, + TOD_CREATION_ERR_NO_DRAWER = TOD_COMP_ID | 0x0E, + TOD_CANNOT_WIRE_DRAWER = TOD_COMP_ID | 0x0F, + }; + +}; +#endif diff --git a/src/include/usr/isteps/istep18list.H b/src/include/usr/isteps/istep18list.H index beea51552..98bb9ca85 100644 --- a/src/include/usr/isteps/istep18list.H +++ b/src/include/usr/isteps/istep18list.H @@ -31,6 +31,10 @@ * * 18.10 host_coalesce_host * : Create single host image + * 18.11 proc_tod_setup + * : Create TOD topology + * 18.12 proc_tod_init + * : Start TOD to running state * * ***************************************************************** * THIS FILE WAS PARTIALLY GENERATED ON 2012-04-11:1611 @@ -46,6 +50,7 @@ // include prototypes file #include "../../../usr/hwpf/hwp/establish_system_smp/establish_system_smp.H" +#include "../../../usr/hwpf/hwp/tod_init/tod_init.H" namespace INITSERVICE { @@ -172,7 +177,26 @@ namespace INITSERVICE false, } }, - + { + ISTEPNAME(18,11,"proc_tod_setup"), + TOD::call_tod_setup, + { + START_FN, + EXT_IMAGE, + NORMAL_IPL_OP, + false, + } + }, + { + ISTEPNAME(18,12,"proc_tod_init"), + TOD::call_tod_init, + { + START_FN, + EXT_IMAGE, + NORMAL_IPL_OP, + false, + } + }, // END OF LIST! }; @@ -180,6 +204,7 @@ namespace INITSERVICE const DepModInfo g_istep18Dependancies = { { DEP_LIB(libestablish_system_smp.so), + DEP_LIB(libtod_init.so), { 0 }, } }; |

