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 // e32test\device\d_ldd2.cpp
15 // Secondary LDD for testing linking one driver to another
19 #include <kernel/kernel.h>
28 TAny* dataptr=(TAny*)&AFunction;
36 void Update(TUint32 a);
47 __KTRACE_OPT(KDEVICE,Kern::Printf("TGlobal::TGlobal()"));
48 iPtr = Kern::Alloc(65536);
54 __KTRACE_OPT(KDEVICE,Kern::Printf("TGlobal::~TGlobal()"));
58 void TGlobal::Update(TUint32 a)
63 TUint32* p = (TUint32*)iPtr;
64 TUint32* pE = p + 65536/4;
73 TInt TGlobal::Verify()
78 TUint32* p = (TUint32*)iPtr;
79 TUint32* pE = p + 65536/4;
91 EXPORT_C TInt LinkedTest1()
96 EXPORT_C TInt LinkedTest2()
101 EXPORT_C TInt LinkedTest3()
106 EXPORT_C TInt LinkedTest4()
111 EXPORT_C TInt LinkedTest5()
116 EXPORT_C TInt LinkedTest6(TInt aValue)
122 EXPORT_C TUint32 LinkedTest7()
124 return (TInt)Global.iInt;
127 EXPORT_C void LinkedTest8(TUint32 aValue)
129 Global.Update(aValue);
132 EXPORT_C TInt LinkedTest9()
134 return Global.Verify();
137 DECLARE_STANDARD_LDD()