os/kernelhwsrv/kerneltest/e32test/system/execinfo.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 1998-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 // e32test\system\execinfo.h
    15 // 
    16 //
    17 
    18 #ifndef __EXEC_INFO_H__
    19 #define __EXEC_INFO_H__
    20 #include "u32std.h"
    21 
    22 struct SExecInfo
    23 	{
    24 	TInt iExecNum;
    25 	TInt iNumParams;
    26 	TInt iParamType1;
    27 	TInt iParamType2;
    28 	TInt iParamType3;
    29 	TInt iParamType4;
    30 	};
    31 
    32 
    33 #define ANY_HANDLE			0			// null, invalid, thread, library
    34 #define THREAD_HANDLE		1			// null, invalid, thread, process
    35 #define PROCESS_HANDLE		2			// null, invalid, thread, process
    36 #define CHUNK_HANDLE		3			// null, invalid, thread, chunk
    37 #define LIBRARY_HANDLE		4			// null, invalid, thread, library
    38 #define SEM_HANDLE			5			// null, invalid, thread, semaphore
    39 #define MUTEX_HANDLE		6			// null, invalid, thread, mutex
    40 #define TIMER_HANDLE		7			// null, invalid, thread, timer
    41 #define SERVER_HANDLE		8			// null, invalid, thread, server
    42 #define SESSION_HANDLE		9			// null, invalid, thread, session
    43 #define LDEV_HANDLE			10			// null, invalid, thread, logical device
    44 #define PDEV_HANDLE			11			// null, invalid, thread, physical device
    45 #define CHANNEL_HANDLE		12			// null, invalid, thread, logical channel
    46 #define CHNOT_HANDLE		13			// null, invalid, thread, change notifier
    47 #define UND_HANDLE			14			// null, invalid, thread, undertaker
    48 #define MAX_HANDLE			32
    49 #define	NO_PAR				-1
    50 #define ANY_INT				128			// 0, 1, 2, -1, 299792458
    51 #define ANY_PTR				129			// null, invalid, valid user, valid supervisor
    52 #define INT_PTR				130			// null, invalid, valid user, valid supervisor, unaligned
    53 #define	DES8				131			// null, invalid, valid supervisor, null ptr, invalid ptr, valid sup ptr, valid user ptr
    54 #define WDES8				132			// null, invalid, valid supervisor, null ptr, invalid ptr, valid sup ptr, valid user ptr, valid user DesC
    55 #define	DES					133			// null, invalid, valid supervisor, null ptr, invalid ptr, valid sup ptr, valid user ptr
    56 #define WDES				134			// null, invalid, valid supervisor, null ptr, invalid ptr, valid sup ptr, valid user ptr, valid user DesC
    57 #define	BOOL				135			// 0, 1, other
    58 #define OBJECT_TYPE			136			// 0, 3, 14, 20000
    59 #define DEV_UNIT			137			// 0, 1, 20000
    60 #define MSG_HANDLE			138			// null, invalid, valid user, valid sup but not msg, valid msg
    61 #define MODULE_HANDLE		139			// null, invalid, valid
    62 #define SESSION_HANDLE_PTR	140			// null, invalid, valid user, valid supervisor
    63 
    64 
    65 #endif