os/kernelhwsrv/kerneltest/e32test/power/domainpolicytest.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/power/domainpolicytest.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,73 @@
     1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef __DOMAIN_POLICY_TEST_H__
    1.20 +#define __DOMAIN_POLICY_TEST_H__
    1.21 +
    1.22 +// The test domain hierarchy id 
    1.23 +
    1.24 +static const TDmHierarchyId	KDmHierarchyIdTest = 99;
    1.25 +
    1.26 +/*
    1.27 +Domains defined in this hiearchy
    1.28 +The hierarchy desribed here looks like this:
    1.29 +		Root
    1.30 +		A				B				C
    1.31 +		AA	AB			BA				CA
    1.32 +			ABA	ABB						CAA
    1.33 +
    1.34 +*/
    1.35 +static const TDmDomainId	KDmIdTestA		= 0x02;
    1.36 +static const TDmDomainId	KDmIdTestB		= 0x03;
    1.37 +static const TDmDomainId	KDmIdTestC		= 0x04;
    1.38 +
    1.39 +static const TDmDomainId	KDmIdTestAA		= 0x05;
    1.40 +static const TDmDomainId	KDmIdTestAB		= 0x06;
    1.41 +static const TDmDomainId	KDmIdTestBA		= 0x07;
    1.42 +static const TDmDomainId	KDmIdTestCA		= 0x08;
    1.43 +
    1.44 +static const TDmDomainId	KDmIdTestABA	= 0x09;
    1.45 +static const TDmDomainId	KDmIdTestABB	= 0x0A;
    1.46 +static const TDmDomainId	KDmIdTestCAA	= 0x0B;
    1.47 +static const TInt KTestDomains = 0x0B;	// number of domains including root
    1.48 +
    1.49 +
    1.50 +/*
    1.51 +System-wide start-up states
    1.52 +
    1.53 +Some of these states may be ommitted depending on the start-up mode.
    1.54 +E.g. The system-starter might choose to omit EStartupNonCritical in "safe" mode
    1.55 +*/
    1.56 +enum TStartupState
    1.57 +	{
    1.58 +	/** In this state, all ROM based (static) components or resources that 
    1.59 +	are critical to the operation of the phone are started */
    1.60 +	EStartupCriticalStatic,
    1.61 +
    1.62 +	/** In this state, all non-ROM based (dynamic) components or resources that 
    1.63 +	are critical to the operation of the phone are started */
    1.64 +	EStartupCriticalDynamic,
    1.65 +
    1.66 +	/** In this state, all ROM based (static) or non-ROM based (dynamic) 
    1.67 +	components or resources that are not critical to the operation of the phone 
    1.68 +	are started */
    1.69 +	EStartupNonCritical,
    1.70 +
    1.71 +	/** An integer that is strictly greater thean any legal start-up state value */
    1.72 +	EStartupLimit
    1.73 +	};
    1.74 +
    1.75 +#endif
    1.76 +