startup/stem_failcmdlist.rss
changeset 13 4f959124999b
equal deleted inserted replaced
12:ab7598bdae30 13:4f959124999b
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Command list for the Selftest OK startup state.
       
    16 *
       
    17 */
       
    18 
       
    19 #include <ssm/conditionresourcetypes.rh>
       
    20 #include <ssm/ssmcmd.rh>
       
    21 
       
    22 #include "ssmsubstateext.hrh"
       
    23 #include "ssmdlldatadefs.rh"
       
    24 
       
    25 // Identify command list type
       
    26 UID2 KUidSsmCommandListResourceFile
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // r_entry_point
       
    30 // This must be the first resource
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point
       
    34     {
       
    35     command_list_mapping = r_map;
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // r_map
       
    40 // Mapping of command list ids to resource ids.
       
    41 // ---------------------------------------------------------------------------
       
    42 //
       
    43 RESOURCE SSM_COMMAND_LIST_MAPPING r_map
       
    44     {
       
    45     mappings =
       
    46         {
       
    47         SSM_COMMANDLISTID_TO_RESOURCEID
       
    48             {
       
    49             command_list_id = ESsmStateFail;
       
    50             resource_id = r_cmds;
       
    51             }
       
    52         };
       
    53     }
       
    54 
       
    55 // ===========================================================================
       
    56 // Command lists in alphabetical order
       
    57 // ===========================================================================
       
    58 //
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // r_cmds
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 RESOURCE SSM_COMMAND_LIST r_cmds
       
    65     {
       
    66     commands =
       
    67         {
       
    68         r_cmd_sastate,          // This needs to be the first command in state, prio 0xFFF2
       
    69         r_cmd_publishstate,     // prio 0xFFF1
       
    70         r_cmd_psstate,          // prio 0xFFF0
       
    71         r_cmd_cancelmonitoring,	// prio 0xFFE8
       
    72         // prio 0xFFE7	
       
    73         r_cmd_killsplash,
       
    74         r_cmd_contactservice,
       
    75         r_cmd_sysap,
       
    76         // prio 0xFFE6
       
    77         r_cmd_multiwaitforever
       
    78         };
       
    79     }
       
    80 
       
    81 // ===========================================================================
       
    82 // Command items in alphabetical order
       
    83 // ===========================================================================
       
    84 //
       
    85 // ---------------------------------------------------------------------------
       
    86 // r_cmd_cancelmonitoring
       
    87 // ---------------------------------------------------------------------------
       
    88 //
       
    89 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_cancelmonitoring
       
    90 	{
       
    91 	priority = 0xFFE8;
       
    92 	dllname = "cmncustomcmds.dll";
       
    93 	ordinal = 3; // Request to the sysmon server to cancel all the outstanding monitors
       
    94 	retries = 2;
       
    95 	}
       
    96 
       
    97 // ---------------------------------------------------------------------------
       
    98 // r_cmd_contactservice
       
    99 // ---------------------------------------------------------------------------
       
   100 //
       
   101 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_contactservice
       
   102     {
       
   103     priority = 0xFFE7;
       
   104     severity = ECmdCriticalSeverity;
       
   105     execution_behaviour = ESsmDeferredWaitForSignal;
       
   106     dllname = "syserrcmd.dll";
       
   107     ordinal = 1;
       
   108     retries = 2;
       
   109     }
       
   110 
       
   111 // ---------------------------------------------------------------------------
       
   112 // r_cmd_killsplash
       
   113 // ---------------------------------------------------------------------------
       
   114 //
       
   115 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_killsplash
       
   116     {
       
   117     priority = 0xFFE7;
       
   118     category = 0x101F8766; // KPSUidStartup
       
   119     key      = 0x00000301; // KPSSplashShutdown
       
   120     value    = 101;        // ESplashShutdown
       
   121     }
       
   122 
       
   123 // ---------------------------------------------------------------------------
       
   124 // r_cmd_multiwaitforever
       
   125 // ---------------------------------------------------------------------------
       
   126 //
       
   127 RESOURCE SSM_MULTIPLE_WAIT r_cmd_multiwaitforever
       
   128     {
       
   129     priority = 0xFFE6;
       
   130     }
       
   131 
       
   132 // ---------------------------------------------------------------------------
       
   133 // r_cmd_psstate
       
   134 // ---------------------------------------------------------------------------
       
   135 //
       
   136 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_psstate
       
   137     {
       
   138     priority = 0xFFF0;
       
   139     severity = ECmdCriticalSeverity;
       
   140     category = 0x101F8766; // KPSUidStartup
       
   141     key      = 0x00000041; // KPSGlobalSystemState
       
   142     value    = 116;        // ESWStateFatalStartupError
       
   143     }
       
   144 
       
   145 // ---------------------------------------------------------------------------
       
   146 // r_cmd_publishstate
       
   147 // ---------------------------------------------------------------------------
       
   148 //
       
   149 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_cmd_publishstate
       
   150     {
       
   151     priority = 0xFFF1;
       
   152     severity = ECmdCriticalSeverity;
       
   153     retries = 2;
       
   154     }
       
   155 
       
   156 // ---------------------------------------------------------------------------
       
   157 // r_cmd_sastate
       
   158 // ---------------------------------------------------------------------------
       
   159 //
       
   160 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_sastate
       
   161     {
       
   162     priority = 0xFFF2;
       
   163     severity = ECmdCriticalSeverity;
       
   164     dllname = "customcmds.dll";
       
   165     ordinal = 8;
       
   166     unload_on_finish = ENeverUnload;
       
   167     retries = 2;
       
   168     dll_data = r_dlldata_sastate;
       
   169     }
       
   170 
       
   171 // ---------------------------------------------------------------------------
       
   172 // r_cmd_sysap
       
   173 // ---------------------------------------------------------------------------
       
   174 //
       
   175 RESOURCE SSM_START_APP_INFO r_cmd_sysap
       
   176     {
       
   177     priority = 0xFFE7;
       
   178     name = "Z:\\sys\\bin\\sysap.exe";
       
   179     execution_behaviour = ESsmDeferredWaitForSignal;
       
   180     severity = ECmdCriticalSeverity;
       
   181     retries = 2;
       
   182     background = 1; // To background
       
   183     monitor_info = r_mon_reset;
       
   184     }
       
   185 
       
   186 // ===========================================================================
       
   187 // DLL data items in alphabetical order
       
   188 // ===========================================================================
       
   189 //
       
   190 
       
   191 // ---------------------------------------------------------------------------
       
   192 // r_dlldata_sastate
       
   193 // ---------------------------------------------------------------------------
       
   194 //
       
   195 RESOURCE CMD_PARAM_STATE_CHANGE r_dlldata_sastate
       
   196     {
       
   197     mainstate = 3; // ESsmFail
       
   198     substate = 0xFFFF; // KSsmAnySubState, saastateadapataion expects this
       
   199     }
       
   200 
       
   201 // monitoring.rss contains resource definitions, so it may not be included
       
   202 // before entry point.
       
   203 #include "stem_monitoring.rss"