1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/device/d_ldd.inl Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,74 @@
1.4 +// Copyright (c) 1997-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 +// e32test\device\d_ldd.inl
1.18 +//
1.19 +//
1.20 +
1.21 +#ifndef __KERNEL_MODE__
1.22 +
1.23 +#include <e32svr.h>
1.24 +#include <u32hal.h>
1.25 +
1.26 +inline TInt RLddTest::Open()
1.27 + { return DoCreate(KLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); }
1.28 +inline TInt RLddTest::Test1()
1.29 + { return DoControl(EControlTest1); }
1.30 +inline TInt RLddTest::Test2()
1.31 + { return DoControl(EControlTest2); }
1.32 +inline TInt RLddTest::Test3()
1.33 + { return DoControl(EControlTest3); }
1.34 +inline TInt RLddTest::Test4()
1.35 + { return DoControl(EControlTest4); }
1.36 +inline TInt RLddTest::Test5()
1.37 + { return DoControl(EControlTest5); }
1.38 +inline TInt RLddTest::Test6(TInt aValue)
1.39 + { return DoControl(EControlTest6, (TAny*)aValue); }
1.40 +inline TUint32 RLddTest::Test7()
1.41 + { return (TUint32)DoControl(EControlTest7); }
1.42 +inline void RLddTest::Test8(TUint32 aValue)
1.43 + { DoControl(EControlTest8, (TAny*)aValue); }
1.44 +inline TInt RLddTest::Test9()
1.45 + { return DoControl(EControlTest9); }
1.46 +inline TInt RLddTest::LinkedTest1()
1.47 + { return DoControl(EControlLinkedTest1); }
1.48 +inline TInt RLddTest::LinkedTest2()
1.49 + { return DoControl(EControlLinkedTest2); }
1.50 +inline TInt RLddTest::LinkedTest3()
1.51 + { return DoControl(EControlLinkedTest3); }
1.52 +inline TInt RLddTest::LinkedTest4()
1.53 + { return DoControl(EControlLinkedTest4); }
1.54 +inline TInt RLddTest::LinkedTest5()
1.55 + { return DoControl(EControlLinkedTest5); }
1.56 +inline TInt RLddTest::LinkedTest6(TInt aValue)
1.57 + { return DoControl(EControlLinkedTest6, (TAny*)aValue); }
1.58 +inline TUint32 RLddTest::LinkedTest7()
1.59 + { return (TUint32)DoControl(EControlLinkedTest7); }
1.60 +inline void RLddTest::LinkedTest8(TUint32 aValue)
1.61 + { DoControl(EControlLinkedTest8, (TAny*)aValue); }
1.62 +inline TInt RLddTest::LinkedTest9()
1.63 + { return DoControl(EControlLinkedTest9); }
1.64 +inline TInt RLddTest::TestKInstall()
1.65 + { return DoControl(EControlTestKInstall); }
1.66 +inline TInt RLddTest::Unload()
1.67 + { return User::FreeLogicalDevice(KLddName); }
1.68 +inline TInt RKInstallTest::Open()
1.69 + { return DoCreate(KKInstallLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); }
1.70 +inline TInt RLddTest::UnloadAndWait()
1.71 + {
1.72 + TInt r = User::FreeLogicalDevice(KLddName);
1.73 + if (r == KErrNone)
1.74 + r = UserSvr::HalFunction(EHalGroupKernel, EKernelHalSupervisorBarrier, (TAny*)5000, 0);
1.75 + return r;
1.76 + }
1.77 +#endif