os/kernelhwsrv/kernel/eka/include/drivers/iic_trace.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) 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
// e32\include\drivers\iic_trace.h
sl@0
    15
//
sl@0
    16
// WARNING: This file contains some APIs which are internal and are subject
sl@0
    17
//          to change without notice. Such APIs should therefore not be used
sl@0
    18
//          outside the Kernel and Hardware Services package.
sl@0
    19
//
sl@0
    20
sl@0
    21
sl@0
    22
/**
sl@0
    23
 @file
sl@0
    24
 @internalComponent
sl@0
    25
*/
sl@0
    26
#ifndef __IIC_TRACE_H__
sl@0
    27
#define __IIC_TRACE_H__
sl@0
    28
#ifdef BTRACE_IIC
sl@0
    29
sl@0
    30
//Function to format the output.
sl@0
    31
static void IicTraceFormatPrint(TDes8& aBuf, const char* aFmt, ...)
sl@0
    32
	{
sl@0
    33
	if(!(&aBuf))
sl@0
    34
		return;
sl@0
    35
	VA_LIST list;
sl@0
    36
	VA_START(list,aFmt);
sl@0
    37
	Kern::AppendFormat(aBuf,aFmt,list);
sl@0
    38
	}
sl@0
    39
sl@0
    40
//definition of subcategories.
sl@0
    41
#define IIC_REGISTERCHANS_START_PSL				BTrace::ERegisterChansStartPsl
sl@0
    42
#define IIC_REGISTERCHANS_START_PIL				BTrace::ERegisterChansStartPil
sl@0
    43
#define IIC_REGISTERCHANS_END_PIL				BTrace::ERegisterChansEndPil
sl@0
    44
#define IIC_REGISTERCHANS_END_PSL				BTrace::ERegisterChansEndPsl
sl@0
    45
#define IIC_DEREGISTERCHAN_START_PSL			BTrace::EDeRegisterChanStartPsl
sl@0
    46
#define IIC_DEREGISTERCHAN_START_PIL			BTrace::EDeRegisterChanStartPil
sl@0
    47
#define IIC_DEREGISTERCHAN_END_PIL				BTrace::EDeRegisterChanEndPil
sl@0
    48
#define IIC_DEREGISTERCHAN_END_PSL				BTrace::EDeRegisterChanEndPsl
sl@0
    49
#define IIC_MQTRANSSYNC_START_PIL				BTrace::EMQTransSyncStartPil
sl@0
    50
// #define IIC_MQTRANSSYNC_START_PSL				BTrace::EMQTransSyncStartPsl
sl@0
    51
// #define IIC_MQTRANSSYNC_END_PSL					BTrace::EMQTransSyncEndPsl
sl@0
    52
#define IIC_MQTRANSSYNC_END_PIL					BTrace::EMQTransSyncEndPil
sl@0
    53
#define IIC_MQTRANSASYNC_START_PIL				BTrace::EMQTransAsyncStartPil
sl@0
    54
// #define IIC_MQTRANSASYNC_START_PSL				BTrace::EMQTransAsyncStartPsl
sl@0
    55
// #define IIC_MQTRANSASYNC_END_PSL				BTrace::EMQTransAsyncEndPsl
sl@0
    56
#define IIC_MQTRANSASYNC_END_PIL				BTrace::EMQTransAsyncEndPil
sl@0
    57
#define IIC_MCANCELTRANS_START_PIL				BTrace::EMCancelTransStartPil
sl@0
    58
// #define IIC_MCANCELTRANS_START_PSL				BTrace::EMCancelTransStartPsl
sl@0
    59
// #define IIC_MCANCELTRANS_END_PSL				BTrace::EMCancelTransEndPsl
sl@0
    60
#define IIC_MCANCELTRANS_END_PIL				BTrace::EMCancelTransEndPil
sl@0
    61
#define IIC_MPROCESSTRANS_START_PIL				BTrace::EMProcessTransStartPil
sl@0
    62
#define IIC_MPROCESSTRANS_START_PSL				BTrace::EMProcessTransStartPsl
sl@0
    63
#define IIC_MPROCESSTRANS_END_PSL				BTrace::EMProcessTransEndPsl
sl@0
    64
#define IIC_MPROCESSTRANS_END_PIL				BTrace::EMProcessTransEndPil
sl@0
    65
#define IIC_SCAPTCHANSYNC_START_PIL				BTrace::ESCaptChanSyncStartPil
sl@0
    66
#define IIC_SCAPTCHANSYNC_START_PSL				BTrace::ESCaptChanSyncStartPsl
sl@0
    67
#define IIC_SCAPTCHANSYNC_END_PSL				BTrace::ESCaptChanSyncEndPsl
sl@0
    68
#define IIC_SCAPTCHANSYNC_END_PIL				BTrace::ESCaptChanSyncEndPil
sl@0
    69
#define IIC_SCAPTCHANASYNC_START_PIL			BTrace::ESCaptChanASyncStartPil
sl@0
    70
#define IIC_SCAPTCHANASYNC_START_PSL			BTrace::ESCaptChanASyncStartPsl
sl@0
    71
#define IIC_SCAPTCHANASYNC_END_PSL				BTrace::ESCaptChanASyncEndPsl
sl@0
    72
#define IIC_SCAPTCHANASYNC_END_PIL				BTrace::ESCaptChanASyncEndPil
sl@0
    73
#define IIC_SRELCHAN_START_PIL					BTrace::ESRelChanStartPil
sl@0
    74
#define IIC_SRELCHAN_START_PSL					BTrace::ESRelChanStartPsl
sl@0
    75
#define IIC_SRELCHAN_END_PSL					BTrace::ESRelChanEndPsl
sl@0
    76
#define IIC_SRELCHAN_END_PIL					BTrace::ESRelChanEndPil
sl@0
    77
#define IIC_SREGRXBUF_START_PIL					BTrace::ESRegRxBufStartPil
sl@0
    78
#define IIC_SREGRXBUF_START_PSL					BTrace::ESRegRxBufStartPsl
sl@0
    79
#define IIC_SREGRXBUF_END_PSL					BTrace::ESRegRxBufEndPsl
sl@0
    80
#define IIC_SREGRXBUF_END_PIL					BTrace::ESRegRxBufEndPil
sl@0
    81
#define IIC_SREGTXBUF_START_PIL					BTrace::ESRegTxBufStartPil
sl@0
    82
#define IIC_SREGTXBUF_START_PSL					BTrace::ESRegTxBufStartPsl
sl@0
    83
#define IIC_SREGTXBUF_END_PSL					BTrace::ESRegTxBufEndPsl
sl@0
    84
#define IIC_SREGTXBUF_END_PIL					BTrace::ESRegTxBufEndPil
sl@0
    85
#define IIC_SNOTIFTRIG_START_PIL				BTrace::ESNotifTrigStartPil
sl@0
    86
#define IIC_SNOTIFTRIG_START_PSL				BTrace::ESNotifTrigStartPsl
sl@0
    87
#define IIC_SNOTIFTRIG_END_PSL					BTrace::ESNotifTrigEndPsl
sl@0
    88
#define IIC_SNOTIFTRIG_END_PIL					BTrace::ESNotifTrigEndPil
sl@0
    89
#define IIC_MSSTATEXT_START_PIL					BTrace::EMStatExtStartPil
sl@0
    90
// #define IIC_MSSTATEXT_START_PSL					BTrace::EMStatExtStartPsl
sl@0
    91
// #define IIC_MSSTATEXT_END_PSL					BTrace::EMStatExtEndPsl
sl@0
    92
#define IIC_MSSTATEXT_END_PIL					BTrace::EMStatExtEndPil
sl@0
    93
#define IIC_MSTATEXT_START_PIL					BTrace::EMStatExtStartPil
sl@0
    94
#define IIC_MSTATEXT_START_PSL					BTrace::EMStatExtStartPsl
sl@0
    95
#define IIC_MSTATEXT_END_PSL					BTrace::EMStatExtEndPsl
sl@0
    96
#define IIC_MSTATEXT_END_PIL					BTrace::EMStatExtEndPil
sl@0
    97
#define IIC_SSTATEXT_START_PIL					BTrace::ESStatExtStartPil
sl@0
    98
#define IIC_SSTATEXT_START_PSL					BTrace::ESStatExtStartPsl
sl@0
    99
#define IIC_SSTATEXT_END_PSL					BTrace::ESStatExtEndPsl
sl@0
   100
#define IIC_SSTATEXT_END_PIL					BTrace::ESStatExtEndPil
sl@0
   101
sl@0
   102
// Macros for printing
sl@0
   103
#define IIC_REGISTERCHANS_START_PSL_TRACE					\
sl@0
   104
	{														\
sl@0
   105
	BTrace8(BTrace::EIic, IIC_REGISTERCHANS_START_PSL,ChannelPtrArray,NUM_CHANNELS);	\
sl@0
   106
	}
sl@0
   107
sl@0
   108
#define IIC_REGISTERCHANS_START_PIL_TRACE					\
sl@0
   109
	{														\
sl@0
   110
	BTrace12(BTrace::EIic, IIC_REGISTERCHANS_START_PIL,aListChannels, aNumberChannels, chanArray->Count());	\
sl@0
   111
	}
sl@0
   112
sl@0
   113
#define IIC_REGISTERCHANS_END_PIL_TRACE						\
sl@0
   114
	{														\
sl@0
   115
	BTrace8(BTrace::EIic, IIC_REGISTERCHANS_END_PIL,aListChannels, chanArray->Count());	\
sl@0
   116
	}
sl@0
   117
sl@0
   118
#define IIC_REGISTERCHANS_END_PSL_TRACE						\
sl@0
   119
	{														\
sl@0
   120
	BTrace8(BTrace::EIic, IIC_REGISTERCHANS_END_PSL,ChannelPtrArray, r);	\
sl@0
   121
	}
sl@0
   122
sl@0
   123
#define IIC_DEREGISTERCHAN_START_PSL_TRACE					\
sl@0
   124
	{														\
sl@0
   125
	BTrace4(BTrace::EIic, IIC_DEREGISTERCHAN_START_PSL,this);	\
sl@0
   126
	}
sl@0
   127
sl@0
   128
#define IIC_DEREGISTERCHAN_START_PIL_TRACE					\
sl@0
   129
	{														\
sl@0
   130
	BTrace8(BTrace::EIic, IIC_DEREGISTERCHAN_START_PIL,aChannel,chanArray->Count());	\
sl@0
   131
	}
sl@0
   132
sl@0
   133
#define IIC_DEREGISTERCHAN_END_PIL_TRACE					\
sl@0
   134
	{														\
sl@0
   135
	BTrace8(BTrace::EIic, IIC_DEREGISTERCHAN_END_PIL,aChannel,chanArray->Count());	\
sl@0
   136
	}
sl@0
   137
sl@0
   138
#define IIC_DEREGISTERCHAN_END_PSL_TRACE					\
sl@0
   139
	{														\
sl@0
   140
	BTrace8(BTrace::EIic, IIC_DEREGISTERCHAN_END_PSL,this,r);	\
sl@0
   141
	}
sl@0
   142
sl@0
   143
#define IIC_MQTRANSSYNC_START_PIL_TRACE						\
sl@0
   144
	{														\
sl@0
   145
	BTrace8(BTrace::EIic, IIC_MQTRANSSYNC_START_PIL,aBusId, aTransaction);	\
sl@0
   146
	}
sl@0
   147
sl@0
   148
// #define IIC_MQTRANSSYNC_START_PSL_TRACE
sl@0
   149
// #define IIC_MQTRANSSYNC_END_PSL_TRACE
sl@0
   150
sl@0
   151
#define IIC_MQTRANSSYNC_END_PIL_TRACE						\
sl@0
   152
	{														\
sl@0
   153
	BTrace8(BTrace::EIic, IIC_MQTRANSSYNC_START_PIL,aBusId, r);	\
sl@0
   154
	}
sl@0
   155
sl@0
   156
#define IIC_MQTRANSASYNC_START_PIL_TRACE					\
sl@0
   157
	{														\
sl@0
   158
	BTrace12(BTrace::EIic, IIC_MQTRANSASYNC_START_PIL,aBusId, aTransaction, aCallback);	\
sl@0
   159
	}
sl@0
   160
sl@0
   161
// #define IIC_MQTRANSASYNC_START_PSL_TRACE
sl@0
   162
// #define IIC_MQTRANSASYNC_END_PSL_TRACE
sl@0
   163
sl@0
   164
#define IIC_MQTRANSASYNC_END_PIL_TRACE						\
sl@0
   165
	{														\
sl@0
   166
	BTrace8(BTrace::EIic, IIC_MQTRANSASYNC_END_PIL,aBusId, r);	\
sl@0
   167
	}
sl@0
   168
sl@0
   169
#define IIC_MCANCELTRANS_START_PIL_TRACE					\
sl@0
   170
	{														\
sl@0
   171
	BTrace8(BTrace::EIic, IIC_MCANCELTRANS_START_PIL,aBusId, aTransaction);	\
sl@0
   172
	}
sl@0
   173
sl@0
   174
// #define IIC_MCANCELTRANS_START_PSL_TRACE
sl@0
   175
// #define IIC_MCANCELTRANS_END_PSL_TRACE
sl@0
   176
sl@0
   177
#define IIC_MCANCELTRANS_END_PIL_TRACE						\
sl@0
   178
	{														\
sl@0
   179
	BTrace8(BTrace::EIic, IIC_MCANCELTRANS_END_PIL,aTransaction,r);	\
sl@0
   180
	}
sl@0
   181
sl@0
   182
#define IIC_MPROCESSTRANS_START_PIL_TRACE					\
sl@0
   183
	{														\
sl@0
   184
    TBuf8<256> printBuf;									\
sl@0
   185
    printBuf.Zero();										\
sl@0
   186
    IicTraceFormatPrint(printBuf, "%d", 0);	\
sl@0
   187
	BTraceN(BTrace::EIic, IIC_MPROCESSTRANS_START_PIL, channel,trans, printBuf.Ptr(), printBuf.Length()); \
sl@0
   188
	}
sl@0
   189
sl@0
   190
#define IIC_MPROCESSTRANS_START_PSL_TRACE					\
sl@0
   191
	{														\
sl@0
   192
	BTrace4(BTrace::EIic, IIC_MPROCESSTRANS_START_PSL,aTransaction);	\
sl@0
   193
	}
sl@0
   194
sl@0
   195
#define IIC_MPROCESSTRANS_END_PSL_TRACE						\
sl@0
   196
	{														\
sl@0
   197
	BTraceContext4(BTrace::EIic, IIC_MPROCESSTRANS_END_PSL,aResult);	\
sl@0
   198
	}
sl@0
   199
sl@0
   200
#define IIC_MPROCESSTRANS_END_PIL_TRACE						\
sl@0
   201
	{														\
sl@0
   202
	BTraceContext12(BTrace::EIic, IIC_MPROCESSTRANS_END_PIL,aTrans, aResult, aCb);	\
sl@0
   203
	}
sl@0
   204
sl@0
   205
#define IIC_SCAPTCHANSYNC_START_PIL_TRACE					\
sl@0
   206
	{														\
sl@0
   207
	BTrace8(BTrace::EIic, IIC_SCAPTCHANSYNC_START_PIL,aBusId, aConfigHdr);	\
sl@0
   208
	}
sl@0
   209
sl@0
   210
#define IIC_SCAPTCHANSYNC_START_PSL_TRACE					\
sl@0
   211
	{														\
sl@0
   212
	BTrace8(BTrace::EIic, IIC_SCAPTCHANSYNC_START_PSL,this,iConfigHeader);	\
sl@0
   213
	}
sl@0
   214
sl@0
   215
#define IIC_SCAPTCHANSYNC_END_PSL_TRACE						\
sl@0
   216
	{														\
sl@0
   217
	BTrace8(BTrace::EIic, IIC_SCAPTCHANSYNC_END_PSL,this,r);	\
sl@0
   218
	}
sl@0
   219
sl@0
   220
#define IIC_SCAPTCHANSYNC_END_PIL_TRACE						\
sl@0
   221
	{														\
sl@0
   222
	BTrace12(BTrace::EIic, IIC_SCAPTCHANSYNC_END_PIL,aBusId,aChannelId,r);	\
sl@0
   223
	}
sl@0
   224
sl@0
   225
#define IIC_SCAPTCHANASYNC_START_PIL_TRACE					\
sl@0
   226
	{														\
sl@0
   227
	BTrace12(BTrace::EIic, IIC_SCAPTCHANASYNC_START_PIL,aBusId, aConfigHdr,aCallback);	\
sl@0
   228
	}
sl@0
   229
sl@0
   230
#define IIC_SCAPTCHANASYNC_START_PSL_TRACE					\
sl@0
   231
	{														\
sl@0
   232
	BTrace8(BTrace::EIic, IIC_SCAPTCHANASYNC_START_PSL,this,iConfigHeader);	\
sl@0
   233
	}
sl@0
   234
sl@0
   235
#define IIC_SCAPTCHANASYNC_END_PSL_TRACE					\
sl@0
   236
	{														\
sl@0
   237
	BTraceContext8(BTrace::EIic, IIC_SCAPTCHANASYNC_END_PSL,channel,r);	\
sl@0
   238
	}
sl@0
   239
sl@0
   240
#define IIC_SCAPTCHANASYNC_END_PIL_TRACE					\
sl@0
   241
	{														\
sl@0
   242
    TBuf8<256> printBuf;									\
sl@0
   243
    printBuf.Zero();										\
sl@0
   244
    IicTraceFormatPrint(printBuf, "%d", 0);	\
sl@0
   245
	BTraceN(BTrace::EIic, IIC_SCAPTCHANASYNC_END_PIL, this,aResult, printBuf.Ptr(), printBuf.Length()); \
sl@0
   246
	}
sl@0
   247
sl@0
   248
#define IIC_SRELCHAN_START_PIL_TRACE						\
sl@0
   249
	{														\
sl@0
   250
	BTrace4(BTrace::EIic, IIC_SRELCHAN_START_PIL,aChannelId);	\
sl@0
   251
	}
sl@0
   252
sl@0
   253
#define IIC_SRELCHAN_START_PSL_TRACE						\
sl@0
   254
	{														\
sl@0
   255
	BTrace4(BTrace::EIic, IIC_SRELCHAN_START_PSL,this);	\
sl@0
   256
	}
sl@0
   257
sl@0
   258
#define IIC_SRELCHAN_END_PSL_TRACE							\
sl@0
   259
	{														\
sl@0
   260
	BTrace8(BTrace::EIic, IIC_SRELCHAN_END_PSL,this,r);	\
sl@0
   261
	}
sl@0
   262
sl@0
   263
#define IIC_SRELCHAN_END_PIL_TRACE							\
sl@0
   264
	{														\
sl@0
   265
	BTrace8(BTrace::EIic, IIC_SRELCHAN_START_PIL,aChannelId,r);	\
sl@0
   266
	}
sl@0
   267
sl@0
   268
#define IIC_SREGRXBUF_START_PIL_TRACE						\
sl@0
   269
	{														\
sl@0
   270
    TBuf8<256> printBuf;									\
sl@0
   271
    printBuf.Zero();										\
sl@0
   272
    IicTraceFormatPrint(printBuf, "%d %d", aNumWords, aOffset);	\
sl@0
   273
	BTraceN(BTrace::EIic, IIC_SREGRXBUF_START_PIL, (TInt)&aRxBuffer, aBufGranularity, printBuf.Ptr(), printBuf.Length()); \
sl@0
   274
	}
sl@0
   275
sl@0
   276
#define IIC_SREGRXBUF_START_PSL_TRACE						\
sl@0
   277
	{														\
sl@0
   278
    TBuf8<256> printBuf;									\
sl@0
   279
    printBuf.Zero();										\
sl@0
   280
    IicTraceFormatPrint(printBuf, "%d %d %d", aBufGranularity, aNumWords, aOffset);	\
sl@0
   281
	BTraceN(BTrace::EIic, IIC_SREGRXBUF_START_PSL, this, (TInt)&aRxBuffer, printBuf.Ptr(), printBuf.Length()); \
sl@0
   282
	}
sl@0
   283
sl@0
   284
#define IIC_SREGRXBUF_END_PSL_TRACE							\
sl@0
   285
	{														\
sl@0
   286
	BTrace8(BTrace::EIic, IIC_SREGRXBUF_END_PSL,this,r);	\
sl@0
   287
	}
sl@0
   288
sl@0
   289
#define IIC_SREGRXBUF_END_PIL_TRACE							\
sl@0
   290
	{														\
sl@0
   291
	BTrace4(BTrace::EIic, IIC_SREGRXBUF_END_PIL,r);	\
sl@0
   292
	}
sl@0
   293
sl@0
   294
#define IIC_SREGTXBUF_START_PIL_TRACE						\
sl@0
   295
	{														\
sl@0
   296
    TBuf8<256> printBuf;									\
sl@0
   297
    printBuf.Zero();										\
sl@0
   298
    IicTraceFormatPrint(printBuf, "%d %d", aNumWords, aOffset);	\
sl@0
   299
	BTraceN(BTrace::EIic, IIC_SREGTXBUF_START_PIL, (TInt)&aTxBuffer, aBufGranularity, printBuf.Ptr(), printBuf.Length()); \
sl@0
   300
	}
sl@0
   301
sl@0
   302
#define IIC_SREGTXBUF_START_PSL_TRACE						\
sl@0
   303
	{														\
sl@0
   304
    TBuf8<256> printBuf;									\
sl@0
   305
    printBuf.Zero();										\
sl@0
   306
    IicTraceFormatPrint(printBuf, "%d %d %d", aBufGranularity, aNumWords, aOffset);	\
sl@0
   307
	BTraceN(BTrace::EIic, IIC_SREGTXBUF_START_PSL, this, (TInt)&aTxBuffer, printBuf.Ptr(), printBuf.Length()); \
sl@0
   308
	}
sl@0
   309
sl@0
   310
#define IIC_SREGTXBUF_END_PSL_TRACE							\
sl@0
   311
	{														\
sl@0
   312
	BTrace8(BTrace::EIic, IIC_SREGTXBUF_END_PSL,this,r);	\
sl@0
   313
	}
sl@0
   314
sl@0
   315
#define IIC_SREGTXBUF_END_PIL_TRACE							\
sl@0
   316
	{														\
sl@0
   317
	BTrace4(BTrace::EIic, IIC_SREGTXBUF_END_PIL,r);	\
sl@0
   318
	}
sl@0
   319
sl@0
   320
#define IIC_SNOTIFTRIG_START_PIL_TRACE						\
sl@0
   321
	{														\
sl@0
   322
	BTrace8(BTrace::EIic, IIC_SNOTIFTRIG_START_PIL,aChannelId, aTrigger);	\
sl@0
   323
	}
sl@0
   324
sl@0
   325
#define IIC_SNOTIFTRIG_START_PSL_TRACE						\
sl@0
   326
	{														\
sl@0
   327
	BTrace4(BTrace::EIic, IIC_SNOTIFTRIG_START_PSL,aTrigger);	\
sl@0
   328
	}
sl@0
   329
sl@0
   330
#define IIC_SNOTIFTRIG_END_PSL_TRACE						\
sl@0
   331
	{														\
sl@0
   332
	BTrace4(BTrace::EIic, IIC_SNOTIFTRIG_END_PSL,r);	\
sl@0
   333
	}
sl@0
   334
sl@0
   335
#define IIC_SNOTIFTRIG_END_PIL_TRACE						\
sl@0
   336
	{														\
sl@0
   337
	BTrace8(BTrace::EIic, IIC_SNOTIFTRIG_END_PIL,aChannelId, r);	\
sl@0
   338
	}
sl@0
   339
sl@0
   340
#define IIC_MSSTATEXT_START_PIL_TRACE						\
sl@0
   341
	{														\
sl@0
   342
    TBuf8<256> printBuf;									\
sl@0
   343
    printBuf.Zero();										\
sl@0
   344
    IicTraceFormatPrint(printBuf, "%d %d ", aParam1, aParam2);	\
sl@0
   345
	BTraceN(BTrace::EIic, IIC_MSSTATEXT_START_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
sl@0
   346
	}
sl@0
   347
sl@0
   348
// #define IIC_MSSTATEXT_START_PSL_TRACE
sl@0
   349
// #define IIC_MSSTATEXT_END_PSL_TRACE
sl@0
   350
sl@0
   351
#define IIC_MSSTATEXT_END_PIL_TRACE							\
sl@0
   352
	{														\
sl@0
   353
    TBuf8<256> printBuf;									\
sl@0
   354
    printBuf.Zero();										\
sl@0
   355
    IicTraceFormatPrint(printBuf, "%d ", r);	\
sl@0
   356
	BTraceN(BTrace::EIic, IIC_MSSTATEXT_END_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
sl@0
   357
	}
sl@0
   358
sl@0
   359
#define IIC_MSTATEXT_START_PIL_TRACE						\
sl@0
   360
	{														\
sl@0
   361
    TBuf8<256> printBuf;									\
sl@0
   362
    printBuf.Zero();										\
sl@0
   363
    IicTraceFormatPrint(printBuf, "%d %d ", aParam1, aParam2);	\
sl@0
   364
	BTraceN(BTrace::EIic, IIC_MSTATEXT_START_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
sl@0
   365
	}
sl@0
   366
sl@0
   367
#define IIC_MSTATEXT_START_PSL_TRACE						\
sl@0
   368
	{														\
sl@0
   369
    TBuf8<256> printBuf;									\
sl@0
   370
    printBuf.Zero();										\
sl@0
   371
    IicTraceFormatPrint(printBuf, "%d %d ", aParam1, aParam2);	\
sl@0
   372
	BTraceN(BTrace::EIic, IIC_MSTATEXT_START_PSL, this, aFunction, printBuf.Ptr(), printBuf.Length()); \
sl@0
   373
	}
sl@0
   374
sl@0
   375
#define IIC_MSTATEXT_END_PSL_TRACE						\
sl@0
   376
	{														\
sl@0
   377
    TBuf8<256> printBuf;									\
sl@0
   378
    printBuf.Zero();										\
sl@0
   379
    IicTraceFormatPrint(printBuf, "%d ", r);	\
sl@0
   380
	BTraceN(BTrace::EIic, IIC_MSTATEXT_END_PSL, this, aFunction, printBuf.Ptr(), printBuf.Length()); \
sl@0
   381
	}
sl@0
   382
sl@0
   383
#define IIC_MSTATEXT_END_PIL_TRACE							\
sl@0
   384
	{														\
sl@0
   385
    TBuf8<256> printBuf;									\
sl@0
   386
    printBuf.Zero();										\
sl@0
   387
    IicTraceFormatPrint(printBuf, "%d ", r);	\
sl@0
   388
	BTraceN(BTrace::EIic, IIC_MSTATEXT_END_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
sl@0
   389
	}
sl@0
   390
sl@0
   391
#define IIC_SSTATEXT_START_PIL_TRACE						\
sl@0
   392
	{														\
sl@0
   393
    TBuf8<256> printBuf;									\
sl@0
   394
    printBuf.Zero();										\
sl@0
   395
    IicTraceFormatPrint(printBuf, "%d %d ", aParam1, aParam2);	\
sl@0
   396
	BTraceN(BTrace::EIic, IIC_SSTATEXT_START_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
sl@0
   397
	}
sl@0
   398
sl@0
   399
#define IIC_SSTATEXT_START_PSL_TRACE						\
sl@0
   400
	{														\
sl@0
   401
    TBuf8<256> printBuf;									\
sl@0
   402
    printBuf.Zero();										\
sl@0
   403
    IicTraceFormatPrint(printBuf, "%d %d ", aParam1, aParam2);	\
sl@0
   404
	BTraceN(BTrace::EIic, IIC_SSTATEXT_START_PSL, this, aFunction, printBuf.Ptr(), printBuf.Length()); \
sl@0
   405
	}
sl@0
   406
sl@0
   407
#define IIC_SSTATEXT_END_PSL_TRACE						\
sl@0
   408
	{														\
sl@0
   409
    TBuf8<256> printBuf;									\
sl@0
   410
    printBuf.Zero();										\
sl@0
   411
    IicTraceFormatPrint(printBuf, "%d ", r);	\
sl@0
   412
	BTraceN(BTrace::EIic, IIC_SSTATEXT_END_PSL, this, aFunction, printBuf.Ptr(), printBuf.Length()); \
sl@0
   413
	}
sl@0
   414
sl@0
   415
#define IIC_SSTATEXT_END_PIL_TRACE							\
sl@0
   416
	{														\
sl@0
   417
    TBuf8<256> printBuf;									\
sl@0
   418
    printBuf.Zero();										\
sl@0
   419
    IicTraceFormatPrint(printBuf, "%d ", r);	\
sl@0
   420
	BTraceN(BTrace::EIic, IIC_SSTATEXT_END_PIL, aId, aFunction, printBuf.Ptr(), printBuf.Length()); \
sl@0
   421
	}
sl@0
   422
sl@0
   423
#else
sl@0
   424
sl@0
   425
#define IIC_REGISTERCHANS_START_PSL_TRACE
sl@0
   426
#define IIC_REGISTERCHANS_START_PIL_TRACE
sl@0
   427
#define IIC_REGISTERCHANS_END_PIL_TRACE
sl@0
   428
#define IIC_REGISTERCHANS_END_PSL_TRACE
sl@0
   429
#define IIC_DEREGISTERCHAN_START_PSL_TRACE
sl@0
   430
#define IIC_DEREGISTERCHAN_START_PIL_TRACE
sl@0
   431
#define IIC_DEREGISTERCHAN_END_PIL_TRACE
sl@0
   432
#define IIC_DEREGISTERCHAN_END_PSL_TRACE
sl@0
   433
#define IIC_MQTRANSSYNC_START_PIL_TRACE
sl@0
   434
// #define IIC_MQTRANSSYNC_START_PSL_TRACE
sl@0
   435
// #define IIC_MQTRANSSYNC_END_PSL_TRACE
sl@0
   436
#define IIC_MQTRANSSYNC_END_PIL_TRACE
sl@0
   437
#define IIC_MQTRANSASYNC_START_PIL_TRACE
sl@0
   438
// #define IIC_MQTRANSASYNC_START_PSL_TRACE
sl@0
   439
// #define IIC_MQTRANSASYNC_END_PSL_TRACE
sl@0
   440
#define IIC_MQTRANSASYNC_END_PIL_TRACE
sl@0
   441
#define IIC_MCANCELTRANS_START_PIL_TRACE
sl@0
   442
// #define IIC_MCANCELTRANS_START_PSL_TRACE
sl@0
   443
// #define IIC_MCANCELTRANS_END_PSL_TRACE
sl@0
   444
#define IIC_MCANCELTRANS_END_PIL_TRACE
sl@0
   445
#define IIC_MPROCESSTRANS_START_PIL_TRACE
sl@0
   446
#define IIC_MPROCESSTRANS_START_PSL_TRACE
sl@0
   447
#define IIC_MPROCESSTRANS_END_PSL_TRACE
sl@0
   448
#define IIC_MPROCESSTRANS_END_PIL_TRACE
sl@0
   449
#define IIC_SCAPTCHANSYNC_START_PIL_TRACE
sl@0
   450
#define IIC_SCAPTCHANSYNC_START_PSL_TRACE
sl@0
   451
#define IIC_SCAPTCHANSYNC_END_PSL_TRACE
sl@0
   452
#define IIC_SCAPTCHANSYNC_END_PIL_TRACE
sl@0
   453
#define IIC_SCAPTCHANASYNC_START_PIL_TRACE
sl@0
   454
#define IIC_SCAPTCHANASYNC_START_PSL_TRACE
sl@0
   455
#define IIC_SCAPTCHANASYNC_END_PSL_TRACE
sl@0
   456
#define IIC_SCAPTCHANASYNC_END_PIL_TRACE
sl@0
   457
#define IIC_SRELCHAN_START_PIL_TRACE
sl@0
   458
#define IIC_SRELCHAN_START_PSL_TRACE
sl@0
   459
#define IIC_SRELCHAN_END_PSL_TRACE
sl@0
   460
#define IIC_SRELCHAN_END_PIL_TRACE
sl@0
   461
#define IIC_SREGRXBUF_START_PIL_TRACE
sl@0
   462
#define IIC_SREGRXBUF_START_PSL_TRACE
sl@0
   463
#define IIC_SREGRXBUF_END_PSL_TRACE
sl@0
   464
#define IIC_SREGRXBUF_END_PIL_TRACE
sl@0
   465
#define IIC_SREGTXBUF_START_PIL_TRACE
sl@0
   466
#define IIC_SREGTXBUF_START_PSL_TRACE
sl@0
   467
#define IIC_SREGTXBUF_END_PSL_TRACE
sl@0
   468
#define IIC_SREGTXBUF_END_PIL_TRACE
sl@0
   469
#define IIC_SNOTIFTRIG_START_PIL_TRACE
sl@0
   470
#define IIC_SNOTIFTRIG_START_PSL_TRACE
sl@0
   471
#define IIC_SNOTIFTRIG_END_PSL_TRACE
sl@0
   472
#define IIC_SNOTIFTRIG_END_PIL_TRACE
sl@0
   473
#define IIC_MSSTATEXT_START_PIL_TRACE
sl@0
   474
// #define IIC_MSSTATEXT_START_PSL_TRACE
sl@0
   475
// #define IIC_MSSTATEXT_END_PSL_TRACE
sl@0
   476
#define IIC_MSSTATEXT_END_PIL_TRACE
sl@0
   477
#define IIC_MSTATEXT_START_PIL_TRACE
sl@0
   478
#define IIC_MSTATEXT_START_PSL_TRACE
sl@0
   479
#define IIC_MSTATEXT_END_PSL_TRACE
sl@0
   480
#define IIC_MSTATEXT_END_PIL_TRACE
sl@0
   481
#define IIC_SSTATEXT_START_PIL_TRACE
sl@0
   482
#define IIC_SSTATEXT_START_PSL_TRACE
sl@0
   483
#define IIC_SSTATEXT_END_PSL_TRACE
sl@0
   484
#define IIC_SSTATEXT_END_PIL_TRACE
sl@0
   485
sl@0
   486
#endif //BTRACE_IIC
sl@0
   487
sl@0
   488
#endif //__IIC_TRACE_H__
sl@0
   489