0
|
1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// e32test\device\d_ldd.inl
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __KERNEL_MODE__
|
|
19 |
|
|
20 |
#include <e32svr.h>
|
|
21 |
#include <u32hal.h>
|
|
22 |
|
|
23 |
inline TInt RLddTest::Open()
|
|
24 |
{ return DoCreate(KLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); }
|
|
25 |
inline TInt RLddTest::Test1()
|
|
26 |
{ return DoControl(EControlTest1); }
|
|
27 |
inline TInt RLddTest::Test2()
|
|
28 |
{ return DoControl(EControlTest2); }
|
|
29 |
inline TInt RLddTest::Test3()
|
|
30 |
{ return DoControl(EControlTest3); }
|
|
31 |
inline TInt RLddTest::Test4()
|
|
32 |
{ return DoControl(EControlTest4); }
|
|
33 |
inline TInt RLddTest::Test5()
|
|
34 |
{ return DoControl(EControlTest5); }
|
|
35 |
inline TInt RLddTest::Test6(TInt aValue)
|
|
36 |
{ return DoControl(EControlTest6, (TAny*)aValue); }
|
|
37 |
inline TUint32 RLddTest::Test7()
|
|
38 |
{ return (TUint32)DoControl(EControlTest7); }
|
|
39 |
inline void RLddTest::Test8(TUint32 aValue)
|
|
40 |
{ DoControl(EControlTest8, (TAny*)aValue); }
|
|
41 |
inline TInt RLddTest::Test9()
|
|
42 |
{ return DoControl(EControlTest9); }
|
|
43 |
inline TInt RLddTest::LinkedTest1()
|
|
44 |
{ return DoControl(EControlLinkedTest1); }
|
|
45 |
inline TInt RLddTest::LinkedTest2()
|
|
46 |
{ return DoControl(EControlLinkedTest2); }
|
|
47 |
inline TInt RLddTest::LinkedTest3()
|
|
48 |
{ return DoControl(EControlLinkedTest3); }
|
|
49 |
inline TInt RLddTest::LinkedTest4()
|
|
50 |
{ return DoControl(EControlLinkedTest4); }
|
|
51 |
inline TInt RLddTest::LinkedTest5()
|
|
52 |
{ return DoControl(EControlLinkedTest5); }
|
|
53 |
inline TInt RLddTest::LinkedTest6(TInt aValue)
|
|
54 |
{ return DoControl(EControlLinkedTest6, (TAny*)aValue); }
|
|
55 |
inline TUint32 RLddTest::LinkedTest7()
|
|
56 |
{ return (TUint32)DoControl(EControlLinkedTest7); }
|
|
57 |
inline void RLddTest::LinkedTest8(TUint32 aValue)
|
|
58 |
{ DoControl(EControlLinkedTest8, (TAny*)aValue); }
|
|
59 |
inline TInt RLddTest::LinkedTest9()
|
|
60 |
{ return DoControl(EControlLinkedTest9); }
|
|
61 |
inline TInt RLddTest::TestKInstall()
|
|
62 |
{ return DoControl(EControlTestKInstall); }
|
|
63 |
inline TInt RLddTest::Unload()
|
|
64 |
{ return User::FreeLogicalDevice(KLddName); }
|
|
65 |
inline TInt RKInstallTest::Open()
|
|
66 |
{ return DoCreate(KKInstallLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); }
|
|
67 |
inline TInt RLddTest::UnloadAndWait()
|
|
68 |
{
|
|
69 |
TInt r = User::FreeLogicalDevice(KLddName);
|
|
70 |
if (r == KErrNone)
|
|
71 |
r = UserSvr::HalFunction(EHalGroupKernel, EKernelHalSupervisorBarrier, (TAny*)5000, 0);
|
|
72 |
return r;
|
|
73 |
}
|
|
74 |
#endif
|