os/kernelhwsrv/kerneltest/e32test/device/d_ldd.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 1997-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\device\d_ldd.inl
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
#ifndef __KERNEL_MODE__
sl@0
    19
sl@0
    20
#include <e32svr.h>
sl@0
    21
#include <u32hal.h>
sl@0
    22
sl@0
    23
inline TInt RLddTest::Open()
sl@0
    24
	{ return DoCreate(KLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); }
sl@0
    25
inline TInt RLddTest::Test1()
sl@0
    26
	{ return DoControl(EControlTest1); }
sl@0
    27
inline TInt RLddTest::Test2()
sl@0
    28
	{ return DoControl(EControlTest2); }
sl@0
    29
inline TInt RLddTest::Test3()
sl@0
    30
	{ return DoControl(EControlTest3); }
sl@0
    31
inline TInt RLddTest::Test4()
sl@0
    32
	{ return DoControl(EControlTest4); }
sl@0
    33
inline TInt RLddTest::Test5()
sl@0
    34
	{ return DoControl(EControlTest5); }
sl@0
    35
inline TInt RLddTest::Test6(TInt aValue)
sl@0
    36
	{ return DoControl(EControlTest6, (TAny*)aValue); }
sl@0
    37
inline TUint32 RLddTest::Test7()
sl@0
    38
	{ return (TUint32)DoControl(EControlTest7); }
sl@0
    39
inline void RLddTest::Test8(TUint32 aValue)
sl@0
    40
	{ DoControl(EControlTest8, (TAny*)aValue); }
sl@0
    41
inline TInt RLddTest::Test9()
sl@0
    42
	{ return DoControl(EControlTest9); }
sl@0
    43
inline TInt RLddTest::LinkedTest1()
sl@0
    44
	{ return DoControl(EControlLinkedTest1); }
sl@0
    45
inline TInt RLddTest::LinkedTest2()
sl@0
    46
	{ return DoControl(EControlLinkedTest2); }
sl@0
    47
inline TInt RLddTest::LinkedTest3()
sl@0
    48
	{ return DoControl(EControlLinkedTest3); }
sl@0
    49
inline TInt RLddTest::LinkedTest4()
sl@0
    50
	{ return DoControl(EControlLinkedTest4); }
sl@0
    51
inline TInt RLddTest::LinkedTest5()
sl@0
    52
	{ return DoControl(EControlLinkedTest5); }
sl@0
    53
inline TInt RLddTest::LinkedTest6(TInt aValue)
sl@0
    54
	{ return DoControl(EControlLinkedTest6, (TAny*)aValue); }
sl@0
    55
inline TUint32 RLddTest::LinkedTest7()
sl@0
    56
	{ return (TUint32)DoControl(EControlLinkedTest7); }
sl@0
    57
inline void RLddTest::LinkedTest8(TUint32 aValue)
sl@0
    58
	{ DoControl(EControlLinkedTest8, (TAny*)aValue); }
sl@0
    59
inline TInt RLddTest::LinkedTest9()
sl@0
    60
	{ return DoControl(EControlLinkedTest9); }
sl@0
    61
inline TInt RLddTest::TestKInstall()
sl@0
    62
	{ return DoControl(EControlTestKInstall); }
sl@0
    63
inline TInt RLddTest::Unload()
sl@0
    64
	{ return User::FreeLogicalDevice(KLddName); }
sl@0
    65
inline TInt RKInstallTest::Open()
sl@0
    66
	{ return DoCreate(KKInstallLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); }
sl@0
    67
inline TInt RLddTest::UnloadAndWait()
sl@0
    68
	{
sl@0
    69
	TInt r = User::FreeLogicalDevice(KLddName);
sl@0
    70
	if (r == KErrNone)
sl@0
    71
		r = UserSvr::HalFunction(EHalGroupKernel, EKernelHalSupervisorBarrier, (TAny*)5000, 0);
sl@0
    72
	return r;
sl@0
    73
	}
sl@0
    74
#endif