os/kernelhwsrv/kerneltest/e32utils/testusbcldd/inc/kerndefs.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// f32test\testusbcldd\inc\dtestusblogdev.h
sl@0
    15
// Macro's, typedefs and definitions to account for changes between EKA1 and EKA2.
sl@0
    16
// 
sl@0
    17
//
sl@0
    18
sl@0
    19
/**
sl@0
    20
 @file
sl@0
    21
 @internalTechnology
sl@0
    22
*/
sl@0
    23
sl@0
    24
#ifndef __KERNDEFS_H_
sl@0
    25
#define __KERNDEFS_H_
sl@0
    26
sl@0
    27
#include <kernel/kern_priv.h>
sl@0
    28
sl@0
    29
/** 
sl@0
    30
 *	OS Version Specifics - Macro'd here to facilitate sharing of code between EKA1 and EKA2
sl@0
    31
 */
sl@0
    32
typedef HBuf8							HBuf8Plat;
sl@0
    33
#define __NEWPLATBUF(a,b)				a = HBuf8Plat::New(b); if(a) a->SetMax();
sl@0
    34
#define __KSTRING(x)					x
sl@0
    35
#define __MEMCPY(a, b, c)				memcpy((a), (b), (c));
sl@0
    36
#define __THREADWRITE(a, b, c)			Kern::ThreadDesWrite((a), (b), (c), 0);
sl@0
    37
#define __THREADWRITEOFFSET(a, b, c, d)	Kern::ThreadDesWrite((a), (b), (c), (d), (a));
sl@0
    38
#define __THREADRAWWRITE(a, b, c, d)	Kern::ThreadRawWrite((a), (b), (c), (d), (a));
sl@0
    39
#define __THREADREAD(a, b, c)			Kern::ThreadDesRead((a), (b), (c), 0);
sl@0
    40
#define __THREADRAWREAD(a, b, c, d)		Kern::ThreadRawRead((a), (b), (c), (d));
sl@0
    41
#define __THREADDESLEN(a, b)			Kern::ThreadGetDesLength((a), (b));
sl@0
    42
#define __THREADPANIC(a, b)				Kern::ThreadKill((a), EExitPanic, (b), KLitKernExec);
sl@0
    43
#define __THREADREADPLATBUF(a, b, c, d)	(d) = Kern::ThreadDesRead((a), (b), *(c), 0);
sl@0
    44
sl@0
    45
#endif // __KERNDEFS_H