startup/stem_noncriticalcmdlist.rss
changeset 13 4f959124999b
child 30 292fee808849
equal deleted inserted replaced
12:ab7598bdae30 13:4f959124999b
       
     1 /*
       
     2 * Copyright (c) 2009-2010 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 Non-critical startup state in minimal startup mode.
       
    16 *
       
    17 */
       
    18 
       
    19 #include <ssm/conditionresourcetypes.rh>
       
    20 #include <ssm/ssmcmd.rh>
       
    21 #include <ssm/startupreason.h>
       
    22 #include <ssm/clayerswp.hrh>
       
    23 
       
    24 #include "ssmswp.hrh"
       
    25 #include "ssmsubstateext.hrh"
       
    26 #include "ssmdlldatadefs.rh"
       
    27 
       
    28 // Identify command list type
       
    29 UID2 KUidSsmCommandListResourceFile
       
    30 
       
    31 // ---------------------------------------------------------------------------
       
    32 // r_entry_point
       
    33 // This must be the first resource
       
    34 // ---------------------------------------------------------------------------
       
    35 //
       
    36 RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point
       
    37     {
       
    38     command_list_mapping = r_map;
       
    39     }
       
    40 
       
    41 // ---------------------------------------------------------------------------
       
    42 // r_map
       
    43 // Mapping of command list ids to resource ids.
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 RESOURCE SSM_COMMAND_LIST_MAPPING r_map
       
    47     {
       
    48     mappings =
       
    49         {
       
    50         SSM_COMMANDLISTID_TO_RESOURCEID
       
    51             {
       
    52             command_list_id = ESsmStateNonCritical;
       
    53             resource_id = r_cmds;
       
    54             }
       
    55         };
       
    56     }
       
    57 
       
    58 // ===========================================================================
       
    59 // Command lists in alphabetical order
       
    60 // ===========================================================================
       
    61 //
       
    62 
       
    63 // ---------------------------------------------------------------------------
       
    64 // r_cmds
       
    65 // ---------------------------------------------------------------------------
       
    66 //
       
    67 RESOURCE SSM_COMMAND_LIST r_cmds
       
    68     {
       
    69     commands =
       
    70         {
       
    71         r_cmd_sastate,          // This needs to be the first command in state, prio 0xFFF2
       
    72         r_cmd_publishstate,     // prio 0xFFF1
       
    73         r_cmd_psstate,          // prio 0xFFF0
       
    74         // prio 0xFFE7
       
    75         r_cmd_simcheck,
       
    76         r_cmd_clearstartupreason,
       
    77         r_cmd_createswp_uiphase,
       
    78         r_cmd_createswp_rfstatus,
       
    79         r_cmd_waitforofflinequery,
       
    80         r_cmd_setswp_uistart,   // After offline query has been made // prio 0xFFD7 
       
    81         r_cmd_bsengine,					// prio 0xFFD3      
       
    82         // prio 0xFFC7
       
    83         r_cmd_setswp_rfon,
       
    84         r_cmd_setswp_rfoff,
       
    85         r_cmd_startupready      // Last command, prio 0x0000
       
    86         };
       
    87     }
       
    88 
       
    89 // ===========================================================================
       
    90 // Command items in alphabetical order
       
    91 // ===========================================================================
       
    92 //
       
    93 // ---------------------------------------------------------------------------
       
    94 // r_cmd_bsengine
       
    95 // ---------------------------------------------------------------------------
       
    96 //
       
    97 RESOURCE SSM_START_PROCESS_INFO r_cmd_bsengine
       
    98     {
       
    99     priority = 0xFFD3;
       
   100     name = "z:\\sys\\bin\\bsengine.exe";
       
   101     execution_behaviour = ESsmWaitForSignal;
       
   102     timeout = 10000;
       
   103     }
       
   104 
       
   105 // ---------------------------------------------------------------------------
       
   106 // r_cmd_createswp_rfstatus
       
   107 // ---------------------------------------------------------------------------
       
   108 //
       
   109 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_cmd_createswp_rfstatus
       
   110     {
       
   111     priority = 0xFFE7;
       
   112     severity = ECmdCriticalSeverity;
       
   113     key = SWP_UID_SSM_RF_STATUS;
       
   114     filename = "rfstatusswppolicy.dll";
       
   115     }
       
   116 
       
   117 // ---------------------------------------------------------------------------
       
   118 // r_cmd_createswp_uiphase
       
   119 // ---------------------------------------------------------------------------
       
   120 //
       
   121 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_cmd_createswp_uiphase
       
   122     {
       
   123     priority = 0xFFE7;
       
   124     severity = ECmdCriticalSeverity;
       
   125     key = SWP_UID_SSM_UI_PHASE;
       
   126     filename = "ssmuiswppolicy.dll";
       
   127     }
       
   128 
       
   129 // ---------------------------------------------------------------------------
       
   130 // r_cmd_psstate
       
   131 // ---------------------------------------------------------------------------
       
   132 //
       
   133 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_psstate
       
   134     {
       
   135     priority = 0xFFF0;
       
   136     severity = ECmdCriticalSeverity;
       
   137     category = 0x101F8766; // KPSUidStartup
       
   138     key      = 0x00000041; // KPSGlobalSystemState
       
   139     value    = 104;        // ESwStateCriticalPhaseOK
       
   140     }
       
   141 
       
   142 // ---------------------------------------------------------------------------
       
   143 // r_cmd_publishstate
       
   144 // ---------------------------------------------------------------------------
       
   145 //
       
   146 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_cmd_publishstate
       
   147     {
       
   148     priority = 0xFFF1;
       
   149     severity = ECmdCriticalSeverity;
       
   150     retries = 2;
       
   151     }
       
   152 
       
   153 // ---------------------------------------------------------------------------
       
   154 // r_cmd_sastate
       
   155 // ---------------------------------------------------------------------------
       
   156 //
       
   157 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_sastate
       
   158     {
       
   159     priority = 0xFFF2;
       
   160     severity = ECmdCriticalSeverity;
       
   161     dllname = "customcmds.dll";
       
   162     ordinal = 8;
       
   163     unload_on_finish = ENeverUnload;
       
   164     retries = 2;
       
   165     dll_data = r_dlldata_sastate;
       
   166     }
       
   167 
       
   168 // ---------------------------------------------------------------------------
       
   169 // r_cmd_setswp_rfoff
       
   170 // ---------------------------------------------------------------------------
       
   171 //
       
   172 RESOURCE SSM_REQUEST_SYSTEM_WIDE_PROPERTY r_cmd_setswp_rfoff
       
   173     {
       
   174     priority = 0xFFC7;
       
   175     severity = ECmdCriticalSeverity;
       
   176     key = SWP_UID_SSM_RF_STATUS;
       
   177     value = ESsmRfOff;
       
   178     conditional_information = r_cond_simnotusable_or_bootoffline;
       
   179     }
       
   180 
       
   181 // ---------------------------------------------------------------------------
       
   182 // r_cmd_setswp_rfon
       
   183 // ---------------------------------------------------------------------------
       
   184 //
       
   185 RESOURCE SSM_REQUEST_SYSTEM_WIDE_PROPERTY r_cmd_setswp_rfon
       
   186     {
       
   187     priority = 0xFFC7;
       
   188     severity = ECmdCriticalSeverity;
       
   189     key = SWP_UID_SSM_RF_STATUS;
       
   190     value = ESsmRfOn;
       
   191     conditional_information = r_cond_simusable_and_bootonline;
       
   192     }
       
   193 
       
   194 // ---------------------------------------------------------------------------
       
   195 // r_cmd_setswp_uistart
       
   196 // ---------------------------------------------------------------------------
       
   197 //
       
   198 RESOURCE SSM_REQUEST_SYSTEM_WIDE_PROPERTY r_cmd_setswp_uistart
       
   199     {
       
   200     priority = 0xFFD7;
       
   201     severity = ECmdCriticalSeverity;
       
   202     key = SWP_UID_SSM_UI_PHASE;
       
   203     value = ESsmUiPhaseStarted;
       
   204     }
       
   205 
       
   206 // ---------------------------------------------------------------------------
       
   207 // r_cmd_simcheck
       
   208 // ---------------------------------------------------------------------------
       
   209 //
       
   210 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_simcheck
       
   211     {
       
   212     priority = 0xFFE7;
       
   213     severity = ECmdCriticalSeverity;
       
   214     dllname = "customcmds.dll";
       
   215     ordinal = 10;
       
   216     unload_on_finish = ENeverUnload;
       
   217     conditional_information = r_cond_ps_simusable;
       
   218     }
       
   219 
       
   220 // ---------------------------------------------------------------------------
       
   221 // r_cmd_startupready
       
   222 // ---------------------------------------------------------------------------
       
   223 //
       
   224 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_startupready
       
   225     {
       
   226     priority = 0x0000;
       
   227     severity = ECmdMediumSeverity;
       
   228     category = 0x100059C9;
       
   229     key = 2;
       
   230     value = 1;
       
   231     }
       
   232 
       
   233 // ---------------------------------------------------------------------------
       
   234  
       
   235 // ---------------------------------------------------------------------------
       
   236 // r_cmd_waitforofflinequery
       
   237 // ---------------------------------------------------------------------------
       
   238 //
       
   239 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_waitforofflinequery
       
   240     {
       
   241     priority = 0xFFE7;
       
   242     severity = ECmdCriticalSeverity;
       
   243     dllname = "ssmsystemcmds.dll";
       
   244     ordinal = 6; // WaitPsKeyRange
       
   245     dll_data = r_dlldata_waitofflinequery;
       
   246     unload_on_finish = ENeverUnload;
       
   247     retries = 2;
       
   248     execution_behaviour = ESsmWaitForSignal;
       
   249     }
       
   250 
       
   251 // ---------------------------------------------------------------------------
       
   252 // r_cmd_clearstartupreason
       
   253 // ---------------------------------------------------------------------------
       
   254 //
       
   255 RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_clearstartupreason
       
   256     {
       
   257     priority = 0xFFE7;
       
   258     severity = ECmdCriticalSeverity;
       
   259     dllname = "customcmds.dll";
       
   260     ordinal = 16; // Clearstartupreason
       
   261     retries = 2;
       
   262     execution_behaviour = ESsmWaitForSignal;
       
   263     }
       
   264 
       
   265 // ===========================================================================
       
   266 // DLL data items in alphabetical order
       
   267 // ===========================================================================
       
   268 //
       
   269 
       
   270 // ---------------------------------------------------------------------------
       
   271 // r_dlldata_activitymonitor_timeout
       
   272 // ---------------------------------------------------------------------------
       
   273 //
       
   274 RESOURCE CMD_PARAM_TIMEOUT r_dlldata_activitymonitor_timeout
       
   275     {
       
   276     timeout = 2;
       
   277     }
       
   278 
       
   279 // ---------------------------------------------------------------------------
       
   280 // r_dlldata_sastate
       
   281 // ---------------------------------------------------------------------------
       
   282 //
       
   283 RESOURCE CMD_PARAM_STATE_CHANGE r_dlldata_sastate
       
   284     {
       
   285     mainstate = 0; // ESsmStartup
       
   286     substate = ESsmStateNonCritical;
       
   287     }
       
   288 
       
   289 // ---------------------------------------------------------------------------
       
   290 // r_dlldata_waitcleanbootinfo
       
   291 // ---------------------------------------------------------------------------
       
   292 //
       
   293 RESOURCE CMD_PARAM_WAIT_PS_2 r_dlldata_waitcleanbootinfo
       
   294     {
       
   295     category = 0x101F8766;  // KPSUidStartup
       
   296     key = 0x00000012;       // KStartupCleanBoot
       
   297     target1 = 101;          // EStartupNormalBoot
       
   298     target2 = 102;          // EStartupCleanBoot
       
   299     }
       
   300 
       
   301 // ---------------------------------------------------------------------------
       
   302 // r_dlldata_waitofflinequery
       
   303 // ---------------------------------------------------------------------------
       
   304 //
       
   305 RESOURCE CMD_PARAM_WAIT_PS_2 r_dlldata_waitofflinequery
       
   306     {
       
   307     category = 0x101F8766;  // KPSUidStartup
       
   308     key = 0x00000011;       // KStartupBootIntoOffline
       
   309     target1 = 101;          // EBootIntoOnlineMode
       
   310     target2 = 102;          // EBootIntoOfflineMode
       
   311     }
       
   312 
       
   313 // ===========================================================================
       
   314 // Conditional blocks in alphabetical order
       
   315 // ===========================================================================
       
   316 //
       
   317 
       
   318 // ---------------------------------------------------------------------------
       
   319 // r_cond_ps_firstboot
       
   320 // ---------------------------------------------------------------------------
       
   321 //
       
   322 RESOURCE SSM_CND_PUB_SUB_VALUE r_cond_ps_firstboot
       
   323     {
       
   324     category		  = 0x101F8766; // KPSUidStartup
       
   325     key           = 0x00000013; // KPSStartupFirstBoot
       
   326     value         = 101;        // EPSStartupFirstBoot
       
   327     }
       
   328 
       
   329 // ---------------------------------------------------------------------------
       
   330 // r_cond_feat_pnp_mobile_services
       
   331 // ---------------------------------------------------------------------------
       
   332 //
       
   333 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_pnp_mobile_services
       
   334     {
       
   335     feature_id = KFeatureIdPlugAndPlayMobileServices;
       
   336     }
       
   337 
       
   338 // ---------------------------------------------------------------------------
       
   339 // r_cond_feat_sdnd
       
   340 // ---------------------------------------------------------------------------
       
   341 //
       
   342 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_sdnd
       
   343     {
       
   344     feature_id = KFeatureIdSdnd;
       
   345     }
       
   346 
       
   347 // ---------------------------------------------------------------------------
       
   348 // r_cond_feat_sind
       
   349 // ---------------------------------------------------------------------------
       
   350 //
       
   351 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_sind
       
   352     {
       
   353     feature_id = KFeatureIdSind;
       
   354     }
       
   355 
       
   356 // ---------------------------------------------------------------------------
       
   357 // r_cond_feat_syncml_dm
       
   358 // ---------------------------------------------------------------------------
       
   359 //
       
   360 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_syncml_dm
       
   361     {
       
   362     feature_id = KFeatureIdSyncMlDm;
       
   363     }
       
   364 
       
   365 // ---------------------------------------------------------------------------
       
   366 // r_cond_feat_syncml_dm_fota
       
   367 // ---------------------------------------------------------------------------
       
   368 //
       
   369 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_syncml_dm_fota
       
   370     {
       
   371     feature_id = KFeatureIdSyncMlDmFota;
       
   372     }
       
   373 
       
   374 // ---------------------------------------------------------------------------
       
   375 // r_cond_no_sdnd
       
   376 // ---------------------------------------------------------------------------
       
   377 //
       
   378 RESOURCE SSM_CND_LOGICAL_NOT r_cond_no_sdnd
       
   379     {
       
   380     sub_condition = r_cond_feat_sdnd;
       
   381     }
       
   382 
       
   383 // ---------------------------------------------------------------------------
       
   384 // r_cond_ps_bootoffline
       
   385 // ---------------------------------------------------------------------------
       
   386 //
       
   387 RESOURCE SSM_CND_PUB_SUB_VALUE r_cond_ps_bootoffline
       
   388     {
       
   389     category = 0x101F8766; // KPSUidStartup
       
   390     key = 0x00000011;      // KStartupBootIntoOffline
       
   391     value = 102;           // EBootIntoOfflineMode
       
   392     }
       
   393 
       
   394 // ---------------------------------------------------------------------------
       
   395 // r_cond_ps_bootonline
       
   396 // ---------------------------------------------------------------------------
       
   397 //
       
   398 RESOURCE SSM_CND_PUB_SUB_VALUE r_cond_ps_bootonline
       
   399     {
       
   400     category = 0x101F8766; // KPSUidStartup
       
   401     key = 0x00000011;      // KStartupBootIntoOffline
       
   402     value = 101;           // EBootIntoOnlineMode
       
   403     }
       
   404 
       
   405 // ---------------------------------------------------------------------------
       
   406 // r_cond_ps_fotareset
       
   407 // ---------------------------------------------------------------------------
       
   408 //
       
   409 RESOURCE SSM_CND_PUB_SUB_VALUE r_cond_ps_fotareset
       
   410     {
       
   411     category = 0x101F8766; // KPSUidStartup
       
   412     key = 0x00000045;      // KPSStartupReason
       
   413     value = EFirmwareUpdate;
       
   414     }
       
   415 
       
   416 // ---------------------------------------------------------------------------
       
   417 // r_cond_ps_simusable
       
   418 // ---------------------------------------------------------------------------
       
   419 //
       
   420 RESOURCE SSM_CND_PUB_SUB_VALUE r_cond_ps_simusable
       
   421     {
       
   422     category = 0x101F8766; // KPSUidStartup
       
   423     key = 0x00000031;      // KPSSimStatus
       
   424     value = 101;           // ESimUsable
       
   425     }
       
   426 
       
   427 // ---------------------------------------------------------------------------
       
   428 // r_cond_simnotusable
       
   429 // ---------------------------------------------------------------------------
       
   430 //
       
   431 RESOURCE SSM_CND_LOGICAL_NOT r_cond_simnotusable
       
   432     {
       
   433     sub_condition = r_cond_ps_simusable;
       
   434     }
       
   435 
       
   436 // ---------------------------------------------------------------------------
       
   437 // r_cond_simnotusable_or_bootoffline
       
   438 // ---------------------------------------------------------------------------
       
   439 //
       
   440 RESOURCE SSM_CND_LOGICAL_OR r_cond_simnotusable_or_bootoffline
       
   441     {
       
   442     lhs = r_cond_simnotusable;
       
   443     rhs = r_cond_ps_bootoffline;
       
   444     }
       
   445 
       
   446 // ---------------------------------------------------------------------------
       
   447 // r_cond_simusable_and_bootonline
       
   448 // ---------------------------------------------------------------------------
       
   449 //
       
   450 RESOURCE SSM_CND_LOGICAL_AND r_cond_simusable_and_bootonline
       
   451     {
       
   452     lhs = r_cond_ps_simusable;
       
   453     rhs = r_cond_ps_bootonline;
       
   454     }
       
   455 
       
   456 // ---------------------------------------------------------------------------
       
   457 // r_cond_sind_and_no_sdnd
       
   458 // ---------------------------------------------------------------------------
       
   459 //
       
   460 RESOURCE SSM_CND_LOGICAL_AND r_cond_sind_and_no_sdnd
       
   461     {
       
   462     lhs = r_cond_feat_sind;
       
   463     rhs = r_cond_no_sdnd;
       
   464     }
       
   465 
       
   466 // ---------------------------------------------------------------------------
       
   467 // r_cond_syncml_dm_fota_and_fotareset
       
   468 // ---------------------------------------------------------------------------
       
   469 //
       
   470 RESOURCE SSM_CND_LOGICAL_AND r_cond_syncml_dm_fota_and_fotareset
       
   471     {
       
   472     lhs = r_cond_feat_syncml_dm_fota;
       
   473     rhs = r_cond_ps_fotareset;
       
   474     }
       
   475 
       
   476 // ---------------------------------------------------------------------------
       
   477 // r_cond_syncml_dm_or_pnp_mobile_services
       
   478 // ---------------------------------------------------------------------------
       
   479 //
       
   480 RESOURCE SSM_CND_LOGICAL_OR r_cond_syncml_dm_or_pnp_mobile_services
       
   481     {
       
   482     lhs = r_cond_feat_syncml_dm;
       
   483     rhs = r_cond_feat_pnp_mobile_services;
       
   484     }
       
   485 
       
   486 // monitoring.rss contains resource definitions, so it may not be included
       
   487 // before entry point.
       
   488 #include "stem_monitoring.rss"