os/kernelhwsrv/kerneltest/e32test/secure/d_sldd.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2002-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
// e32test\secure\d_sldd.h
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
#ifndef __D_SLDD_H__
sl@0
    19
#define __D_SLDD_H__
sl@0
    20
#include <e32cmn.h>
sl@0
    21
#ifndef __KERNEL_MODE__
sl@0
    22
#include <e32std.h>
sl@0
    23
#endif
sl@0
    24
sl@0
    25
class TCapsTestV01
sl@0
    26
	{
sl@0
    27
public:
sl@0
    28
	TVersion	iVersion;
sl@0
    29
	};
sl@0
    30
sl@0
    31
class RLddTest : public RBusLogicalChannel
sl@0
    32
	{
sl@0
    33
public:
sl@0
    34
	enum TControl
sl@0
    35
		{
sl@0
    36
		EControlTest1=0,
sl@0
    37
		EGetIds,
sl@0
    38
		EGetKernelConfigFlags,
sl@0
    39
		ESetKernelConfigFlags,
sl@0
    40
		ESetDisabledCapabilities0,
sl@0
    41
		EKernelTestData,
sl@0
    42
		EGetSecureInfos,
sl@0
    43
		};
sl@0
    44
	enum TRequest
sl@0
    45
		{
sl@0
    46
		};
sl@0
    47
	enum TTestValues
sl@0
    48
		{
sl@0
    49
		ETest1Value = 0x07654321,
sl@0
    50
		};
sl@0
    51
	
sl@0
    52
	struct TIds
sl@0
    53
		{
sl@0
    54
		TVendorId iThreadVID;
sl@0
    55
		TVendorId iProcessVID;
sl@0
    56
		TSecureId iThreadSID;
sl@0
    57
		TSecureId iProcessSID;
sl@0
    58
		};
sl@0
    59
sl@0
    60
public:
sl@0
    61
	inline TInt OpenLocal();
sl@0
    62
	inline TInt OpenProtected();
sl@0
    63
	inline TInt Test1();
sl@0
    64
	inline void GetIds(RLddTest::TIds& aIds);
sl@0
    65
	inline TUint32 GetKernelConfigFlags();
sl@0
    66
	inline void SetKernelConfigFlags(TUint32 aNewFlags);
sl@0
    67
	inline void SetDisabledCapabilities0(TUint32 aNewWord0);
sl@0
    68
	inline void KernelTestData(TUint32*& aAddress, TUint32& aData);
sl@0
    69
	inline void GetSecureInfos(TSecurityInfo* aThreadSecureInfo, TSecurityInfo* aProcessSecureInfo);
sl@0
    70
	};
sl@0
    71
sl@0
    72
#ifndef __KERNEL_MODE__
sl@0
    73
inline TInt RLddTest::OpenLocal()
sl@0
    74
	{ return DoCreate(_L("D_SLDD"),TVersion(0,1,1),KNullUnit,NULL,NULL); }
sl@0
    75
inline TInt RLddTest::OpenProtected()
sl@0
    76
	{ return DoCreate(_L("D_SLDD"),TVersion(0,1,1),KNullUnit,NULL,NULL,EOwnerThread,ETrue); }
sl@0
    77
inline TInt RLddTest::Test1()
sl@0
    78
	{ return DoControl(EControlTest1); }
sl@0
    79
inline void RLddTest::GetIds(RLddTest::TIds& aIds)
sl@0
    80
	{ DoControl(EGetIds,&aIds); }
sl@0
    81
inline TUint32 RLddTest::GetKernelConfigFlags()
sl@0
    82
	{ return DoControl(EGetKernelConfigFlags); }
sl@0
    83
inline void RLddTest::SetKernelConfigFlags(TUint32 aNewFlags)
sl@0
    84
	{ DoControl(ESetKernelConfigFlags, (TAny*)aNewFlags); }
sl@0
    85
inline void RLddTest::SetDisabledCapabilities0(TUint32 aNewWord0)
sl@0
    86
	{ DoControl(ESetDisabledCapabilities0, (TAny*)aNewWord0); }
sl@0
    87
inline void RLddTest::KernelTestData(TUint32*& aAddress, TUint32& aData)
sl@0
    88
	{ DoControl(EKernelTestData, &aAddress,&aData); }
sl@0
    89
inline void RLddTest::GetSecureInfos(TSecurityInfo* aThreadSecureInfo, TSecurityInfo* aProcessSecureInfo)
sl@0
    90
	{ DoControl(EGetSecureInfos, aThreadSecureInfo,aProcessSecureInfo); }
sl@0
    91
#endif
sl@0
    92
sl@0
    93
#endif