1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0"" |
4 // under the terms of "Eclipse Public License v1.0"" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
396 |
396 |
397 ////////////////////////////////////////////////////////////////////////////// |
397 ////////////////////////////////////////////////////////////////////////////// |
398 // PIL-PSL INTERFACE |
398 // PIL-PSL INTERFACE |
399 ////////////////////////////////////////////////////////////////////////////// |
399 ////////////////////////////////////////////////////////////////////////////// |
400 |
400 |
|
401 // Trace macros intended for use by the DMA PSL |
|
402 #define DMA_PRINTF(MSG) __KTRACE_OPT(KDMA, Kern::Printf((MSG))) |
|
403 #define DMA_PRINTF1(MSG, ARG1) __KTRACE_OPT(KDMA, Kern::Printf((MSG), (ARG1))) |
|
404 #define DMA_PRINTF2(MSG, ARG1, ARG2) __KTRACE_OPT(KDMA, Kern::Printf((MSG), (ARG1), (ARG2))) |
|
405 |
|
406 #define DMA_PSL_MESG "DMA PSL: " |
|
407 |
|
408 // General PSL tracing |
|
409 #define DMA_PSL_TRACE(MSG) DMA_PRINTF(DMA_PSL_MESG MSG) |
|
410 #define DMA_PSL_TRACE1(MSG, ARG1) DMA_PRINTF1(DMA_PSL_MESG MSG, (ARG1)) |
|
411 #define DMA_PSL_TRACE2(MSG, ARG1, ARG2) DMA_PRINTF2(DMA_PSL_MESG MSG, (ARG1), (ARG2)) |
|
412 |
|
413 |
|
414 #define DMA_PSL_CHAN_MESG DMA_PSL_MESG "ChanId %d: " |
|
415 #define DMA_PSL_CHAN_ARGS(CHAN) ((CHAN).PslId()) |
|
416 |
|
417 // For channel specific tracing (where CHAN is a TDmaChannel) |
|
418 #define DMA_PSL_CHAN_TRACE_STATIC(CHAN, MSG) DMA_PRINTF1(DMA_PSL_CHAN_MESG MSG, DMA_PSL_CHAN_ARGS(CHAN)) |
|
419 #define DMA_PSL_CHAN_TRACE_STATIC1(CHAN, MSG, ARG1) DMA_PRINTF2(DMA_PSL_CHAN_MESG MSG, DMA_PSL_CHAN_ARGS(CHAN), (ARG1)) |
|
420 |
|
421 // For channel specific tracing, for use within methods of TDmaChannel derived |
|
422 // class |
|
423 #define DMA_PSL_CHAN_TRACE(MSG) DMA_PSL_CHAN_TRACE_STATIC(*this, MSG) |
|
424 #define DMA_PSL_CHAN_TRACE1(MSG, ARG1) DMA_PSL_CHAN_TRACE_STATIC1(*this, MSG, (ARG1)) |
|
425 |
|
426 |
401 /** |
427 /** |
402 Generic DMA descriptor used if the DMAC does not have support for hardware |
428 Generic DMA descriptor used if the DMAC does not have support for hardware |
403 descriptor. |
429 descriptor. |
404 @see DDmaRequest::Fragment |
430 @see DDmaRequest::Fragment |
405 @publishedPartner |
431 @publishedPartner |