0
|
1 |
// Copyright (c) 2006-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 |
// f32test\demandpaging\t_ramstress.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef _T_RAMSTRESS_H_
|
|
19 |
#define _T_RAMSTRESS_H_
|
|
20 |
|
|
21 |
#include <e32cmn.h>
|
|
22 |
#ifndef __KERNEL_MODE__
|
|
23 |
#include <e32std.h>
|
|
24 |
#endif
|
|
25 |
|
|
26 |
_LIT(KRamStressTestLddName,"D_RAMSTRESS");
|
|
27 |
|
|
28 |
class RRamStressTestLdd : public RBusLogicalChannel
|
|
29 |
{
|
|
30 |
public:
|
|
31 |
enum TControl
|
|
32 |
{
|
|
33 |
EDoMovePagesInZone,
|
|
34 |
EDoSetDebugFlag,
|
|
35 |
EDoSetEndFlag,
|
|
36 |
};
|
|
37 |
|
|
38 |
#ifndef __KERNEL_MODE__
|
|
39 |
public:
|
|
40 |
inline TInt Open()
|
|
41 |
{ return DoCreate(KRamStressTestLddName,TVersion(),KNullUnit,NULL,NULL,EOwnerProcess,ETrue); }
|
|
42 |
inline TInt DoSetDebugFlag(TInt aState)
|
|
43 |
{ return DoControl(EDoSetDebugFlag,(TAny*)aState, (TAny*)NULL); }
|
|
44 |
inline TInt DoSetEndFlag(TInt aState)
|
|
45 |
{ return DoControl(EDoSetEndFlag,(TAny*)aState, (TAny*)NULL); }
|
|
46 |
inline TInt DoMovePagesInZone(TUint aZoneIndex)
|
|
47 |
{ return DoControl(EDoMovePagesInZone,(TAny*)aZoneIndex, (TAny*)NULL); }
|
|
48 |
#endif
|
|
49 |
};
|
|
50 |
|
|
51 |
|
|
52 |
#endif //_T_RAMSTRESS_H_
|
|
53 |
|