From a2fbc8cb2e51821331f3ba8d920dddf8ab0fb96d Mon Sep 17 00:00:00 2001 From: Mark Wenning Date: Mon, 6 Jun 2011 14:07:51 -0500 Subject: Initialization Service (Flow Control) - save off changes before switch branch - rename to get rid of '_' in filenames. - split into separate files - adding errorlogs, saved off so CC guru could work - fix problem in vfs_main where we would crash if there is no _start in launched task. - refactor - fix problems with coding guidelines - add testcases for startTask and reportError - add fixes from code review Change-Id: I2ae34cb6097c466d4f6d0e41b4b32c2eba47e9df Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/145 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/include/usr/initservice/initsvcreasoncodes.H | 66 ++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 src/include/usr/initservice/initsvcreasoncodes.H (limited to 'src/include/usr/initservice') diff --git a/src/include/usr/initservice/initsvcreasoncodes.H b/src/include/usr/initservice/initsvcreasoncodes.H new file mode 100644 index 000000000..41b11f43d --- /dev/null +++ b/src/include/usr/initservice/initsvcreasoncodes.H @@ -0,0 +1,66 @@ +/** + * @file initsvcreasoncodes.H + * + * Detail all the possible reason codes for errorlog returns + * + */ +#ifndef __INITSERVICE_RC_H +#define __INITSERVICE_RC_H + +#include + +namespace INITSERVICE +{ + +/** + * @enum InitServiceModuleID + * + * module id's used in returned errorlogs + */ +enum InitServiceModuleID +{ + START_TRACE_ID = 0x00, + START_ERRL_ID, + START_XSCOMDD_ID, + START_PNORDD_ID, + START_VFS_2_ID, + START_TARGETTING_ID, + GET_MASTER_CHIP_TARGET_ID, + START_MAILBOXDD_ID, + START_SP_COMM_ID, + ENABLE_STREAMING_TRACE_ID, + START_PROGRESS_CODES_ID, + START_FSIDD_ID, + SETUP_SLAVE_LINKS_ID, + START_FSISCOM_ID, + START_FSI_II2C_ID, + START_HWP_ID, + READ_MAX_CONFIG_FROM_PNOR_ID, + APPLY_PRESENCE_DETECT_ID, + APPLY_PARTIAL_BAD_ID, + APPLY_GARD_ID, + COLLECT_HW_IDEC_ID, + VERIFY_IDEC_ID, + DISABLE_WATCHDOG_ID, + EXECUTE_ISTEPS_ID, + + // reserve some tasks for my unit tests... + INIT_SVC_TEST1_ID = 0xf0, + INIT_SVC_TEST2_ID, + INIT_SVC_TEST3_ID, + INIT_SVC_TEST4_ID, + INIT_SVC_TEST5_ID, + +}; + + +enum InitServiceReasonCode +{ + START_TASK_FAILED = INITSVC_COMP_ID | 0x01, + + +}; + +}; // namespace INITSERVICE + +#endif -- cgit v1.2.1