os/kernelhwsrv/kerneltest/e32test/power/domainpolicytest.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef __DOMAIN_POLICY_TEST_H__
sl@0
    17
#define __DOMAIN_POLICY_TEST_H__
sl@0
    18
sl@0
    19
// The test domain hierarchy id 
sl@0
    20
sl@0
    21
static const TDmHierarchyId	KDmHierarchyIdTest = 99;
sl@0
    22
sl@0
    23
/*
sl@0
    24
Domains defined in this hiearchy
sl@0
    25
The hierarchy desribed here looks like this:
sl@0
    26
		Root
sl@0
    27
		A				B				C
sl@0
    28
		AA	AB			BA				CA
sl@0
    29
			ABA	ABB						CAA
sl@0
    30
sl@0
    31
*/
sl@0
    32
static const TDmDomainId	KDmIdTestA		= 0x02;
sl@0
    33
static const TDmDomainId	KDmIdTestB		= 0x03;
sl@0
    34
static const TDmDomainId	KDmIdTestC		= 0x04;
sl@0
    35
sl@0
    36
static const TDmDomainId	KDmIdTestAA		= 0x05;
sl@0
    37
static const TDmDomainId	KDmIdTestAB		= 0x06;
sl@0
    38
static const TDmDomainId	KDmIdTestBA		= 0x07;
sl@0
    39
static const TDmDomainId	KDmIdTestCA		= 0x08;
sl@0
    40
sl@0
    41
static const TDmDomainId	KDmIdTestABA	= 0x09;
sl@0
    42
static const TDmDomainId	KDmIdTestABB	= 0x0A;
sl@0
    43
static const TDmDomainId	KDmIdTestCAA	= 0x0B;
sl@0
    44
static const TInt KTestDomains = 0x0B;	// number of domains including root
sl@0
    45
sl@0
    46
sl@0
    47
/*
sl@0
    48
System-wide start-up states
sl@0
    49
sl@0
    50
Some of these states may be ommitted depending on the start-up mode.
sl@0
    51
E.g. The system-starter might choose to omit EStartupNonCritical in "safe" mode
sl@0
    52
*/
sl@0
    53
enum TStartupState
sl@0
    54
	{
sl@0
    55
	/** In this state, all ROM based (static) components or resources that 
sl@0
    56
	are critical to the operation of the phone are started */
sl@0
    57
	EStartupCriticalStatic,
sl@0
    58
sl@0
    59
	/** In this state, all non-ROM based (dynamic) components or resources that 
sl@0
    60
	are critical to the operation of the phone are started */
sl@0
    61
	EStartupCriticalDynamic,
sl@0
    62
sl@0
    63
	/** In this state, all ROM based (static) or non-ROM based (dynamic) 
sl@0
    64
	components or resources that are not critical to the operation of the phone 
sl@0
    65
	are started */
sl@0
    66
	EStartupNonCritical,
sl@0
    67
sl@0
    68
	/** An integer that is strictly greater thean any legal start-up state value */
sl@0
    69
	EStartupLimit
sl@0
    70
	};
sl@0
    71
sl@0
    72
#endif
sl@0
    73