First public contribution.
1 // Copyright (c) 2004-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 // e32test\mmu\d_memorytest.h
22 #ifndef __KERNEL_MODE__
26 _LIT(KMemoryTestLddName,"d_asid");
30 TAny* iDes; // Pointer to the descriptor to read the header of.
31 TInt iLength; // Length of the descriptor.
32 TInt iMaxLength; // Maximum length of the descriptor.
36 class RAsidLdd : public RBusLogicalChannel
47 #ifndef __KERNEL_MODE__
51 TInt r=User::LoadLogicalDevice(KMemoryTestLddName);
52 if(r==KErrNone || r==KErrAlreadyExists)
53 r=DoCreate(KMemoryTestLddName,TVersion(),KNullUnit,NULL,NULL,EOwnerProcess,ETrue);
56 inline TInt GetCurrentThread(TAny*& aPtr)
57 { return DoControl(EGetCurrentThread, &aPtr); }
58 inline TInt OpenThread(TAny* aPtr)
59 { return DoControl(EOpenThread, aPtr); }
60 inline TInt CloseThread()
61 { return DoControl(ECloseThread); }
62 inline TInt ReadDesHeader(TAny* aThread, SDesHeader& aHdr)
63 { return DoControl(EReadDesHeader, aThread, &aHdr); }