sl@0: // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // f32test\testusbcldd\inc\dtestusblogdev.h sl@0: // Macro's, typedefs and definitions to account for changes between EKA1 and EKA2. sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef __KERNDEFS_H_ sl@0: #define __KERNDEFS_H_ sl@0: sl@0: #include sl@0: sl@0: /** sl@0: * OS Version Specifics - Macro'd here to facilitate sharing of code between EKA1 and EKA2 sl@0: */ sl@0: typedef HBuf8 HBuf8Plat; sl@0: #define __NEWPLATBUF(a,b) a = HBuf8Plat::New(b); if(a) a->SetMax(); sl@0: #define __KSTRING(x) x sl@0: #define __MEMCPY(a, b, c) memcpy((a), (b), (c)); sl@0: #define __THREADWRITE(a, b, c) Kern::ThreadDesWrite((a), (b), (c), 0); sl@0: #define __THREADWRITEOFFSET(a, b, c, d) Kern::ThreadDesWrite((a), (b), (c), (d), (a)); sl@0: #define __THREADRAWWRITE(a, b, c, d) Kern::ThreadRawWrite((a), (b), (c), (d), (a)); sl@0: #define __THREADREAD(a, b, c) Kern::ThreadDesRead((a), (b), (c), 0); sl@0: #define __THREADRAWREAD(a, b, c, d) Kern::ThreadRawRead((a), (b), (c), (d)); sl@0: #define __THREADDESLEN(a, b) Kern::ThreadGetDesLength((a), (b)); sl@0: #define __THREADPANIC(a, b) Kern::ThreadKill((a), EExitPanic, (b), KLitKernExec); sl@0: #define __THREADREADPLATBUF(a, b, c, d) (d) = Kern::ThreadDesRead((a), (b), *(c), 0); sl@0: sl@0: #endif // __KERNDEFS_H