Update contrib.
1 // Copyright (c) 2008-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Bootstrap Shadow Memory Region Test Driver User I/F
23 #ifndef __KERNEL_MODE__
29 Interface to the fast-trace memory buffer.
31 class RSMRTest : public RBusLogicalChannel
35 #ifndef __KERNEL_MODE__
38 return DoCreate(Name(),TVersion(0,1,1),KNullUnit,NULL,NULL,EOwnerThread);
41 /* SMR Feature Testing
44 inline TUint Test_CheckSMRIBPtr(TBool aEnforce)
46 return DoControl(ECtrlCheckSMRIBPtr, (TAny*)aEnforce);
48 inline TUint Test_PrintSMRIB(TBool aEnforce)
50 return DoControl(ECtrlPrintSMRIB, (TAny*)aEnforce);
52 inline TUint Test_AccessAllSMRs(TBool aEnforce)
54 return DoControl(ECtrlAccessAllSMRs, (TAny*)aEnforce);
56 inline TUint Test_FreeHalfSMR1PhysicalRam(TBool aEnforce)
58 return DoControl(ECtrlFreeHalfSMR1PhysicalRam, (TAny*)aEnforce);
60 inline TUint Test_FreeAllSMR2PhysicalRam(TBool aEnforce)
62 return DoControl(ECtrlFreeAllSMR2PhysicalRam, (TAny*)aEnforce);
67 inline static const TDesC& Name();
77 ECtrlFreeHalfSMR1PhysicalRam,
78 ECtrlFreeAllSMR2PhysicalRam
82 friend class DSMRTestChannel;
83 friend class DSMRTestFactory;
86 inline const TDesC& RSMRTest::Name()
88 _LIT(KTestDriver,"d_smr");