sl@0: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32test\device\d_ldd.inl sl@0: // sl@0: // sl@0: sl@0: #ifndef __KERNEL_MODE__ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: inline TInt RLddTest::Open() sl@0: { return DoCreate(KLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); } sl@0: inline TInt RLddTest::Test1() sl@0: { return DoControl(EControlTest1); } sl@0: inline TInt RLddTest::Test2() sl@0: { return DoControl(EControlTest2); } sl@0: inline TInt RLddTest::Test3() sl@0: { return DoControl(EControlTest3); } sl@0: inline TInt RLddTest::Test4() sl@0: { return DoControl(EControlTest4); } sl@0: inline TInt RLddTest::Test5() sl@0: { return DoControl(EControlTest5); } sl@0: inline TInt RLddTest::Test6(TInt aValue) sl@0: { return DoControl(EControlTest6, (TAny*)aValue); } sl@0: inline TUint32 RLddTest::Test7() sl@0: { return (TUint32)DoControl(EControlTest7); } sl@0: inline void RLddTest::Test8(TUint32 aValue) sl@0: { DoControl(EControlTest8, (TAny*)aValue); } sl@0: inline TInt RLddTest::Test9() sl@0: { return DoControl(EControlTest9); } sl@0: inline TInt RLddTest::LinkedTest1() sl@0: { return DoControl(EControlLinkedTest1); } sl@0: inline TInt RLddTest::LinkedTest2() sl@0: { return DoControl(EControlLinkedTest2); } sl@0: inline TInt RLddTest::LinkedTest3() sl@0: { return DoControl(EControlLinkedTest3); } sl@0: inline TInt RLddTest::LinkedTest4() sl@0: { return DoControl(EControlLinkedTest4); } sl@0: inline TInt RLddTest::LinkedTest5() sl@0: { return DoControl(EControlLinkedTest5); } sl@0: inline TInt RLddTest::LinkedTest6(TInt aValue) sl@0: { return DoControl(EControlLinkedTest6, (TAny*)aValue); } sl@0: inline TUint32 RLddTest::LinkedTest7() sl@0: { return (TUint32)DoControl(EControlLinkedTest7); } sl@0: inline void RLddTest::LinkedTest8(TUint32 aValue) sl@0: { DoControl(EControlLinkedTest8, (TAny*)aValue); } sl@0: inline TInt RLddTest::LinkedTest9() sl@0: { return DoControl(EControlLinkedTest9); } sl@0: inline TInt RLddTest::TestKInstall() sl@0: { return DoControl(EControlTestKInstall); } sl@0: inline TInt RLddTest::Unload() sl@0: { return User::FreeLogicalDevice(KLddName); } sl@0: inline TInt RKInstallTest::Open() sl@0: { return DoCreate(KKInstallLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); } sl@0: inline TInt RLddTest::UnloadAndWait() sl@0: { sl@0: TInt r = User::FreeLogicalDevice(KLddName); sl@0: if (r == KErrNone) sl@0: r = UserSvr::HalFunction(EHalGroupKernel, EKernelHalSupervisorBarrier, (TAny*)5000, 0); sl@0: return r; sl@0: } sl@0: #endif