kernel/eka/include/drivers/dma_hai.h
branchRCL_3
changeset 87 2f92ad2dc5db
parent 36 538db54a451d
child 130 c30940f6d922
equal deleted inserted replaced
81:e7d2d738d3c2 87:2f92ad2dc5db
     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".
   861 	};
   861 	};
   862 
   862 
   863 
   863 
   864 //////////////////////////////////////////////////////////////////////////////
   864 //////////////////////////////////////////////////////////////////////////////
   865 
   865 
       
   866 // Trace macros intended for use by the DMA PSL
       
   867 #define DMA_PRINTF(MSG) __KTRACE_OPT(KDMA, Kern::Printf((MSG)))
       
   868 #define DMA_PRINTF1(MSG, ARG1) __KTRACE_OPT(KDMA, Kern::Printf((MSG), (ARG1)))
       
   869 #define DMA_PRINTF2(MSG, ARG1, ARG2) __KTRACE_OPT(KDMA, Kern::Printf((MSG), (ARG1), (ARG2)))
       
   870 
       
   871 #define DMA_PSL_MESG "DMA PSL: "
       
   872 
       
   873 // General PSL tracing
       
   874 #define DMA_PSL_TRACE(MSG) DMA_PRINTF(DMA_PSL_MESG MSG)
       
   875 #define DMA_PSL_TRACE1(MSG, ARG1) DMA_PRINTF1(DMA_PSL_MESG MSG, (ARG1))
       
   876 #define DMA_PSL_TRACE2(MSG, ARG1, ARG2) DMA_PRINTF2(DMA_PSL_MESG MSG, (ARG1), (ARG2))
       
   877 
       
   878 
       
   879 #define DMA_PSL_CHAN_MESG DMA_PSL_MESG "ChanId %d: "
       
   880 #define DMA_PSL_CHAN_ARGS(CHAN) ((CHAN).PslId())
       
   881 
       
   882 // For channel specific tracing (where CHAN is a TDmaChannel)
       
   883 #define DMA_PSL_CHAN_TRACE_STATIC(CHAN, MSG) DMA_PRINTF1(DMA_PSL_CHAN_MESG MSG, DMA_PSL_CHAN_ARGS(CHAN))
       
   884 #define DMA_PSL_CHAN_TRACE_STATIC1(CHAN, MSG, ARG1) DMA_PRINTF2(DMA_PSL_CHAN_MESG MSG, DMA_PSL_CHAN_ARGS(CHAN), (ARG1))
       
   885 
       
   886 // For channel specific tracing, for use within methods of TDmaChannel derived
       
   887 // class
       
   888 #define DMA_PSL_CHAN_TRACE(MSG) DMA_PSL_CHAN_TRACE_STATIC(*this, MSG)
       
   889 #define DMA_PSL_CHAN_TRACE1(MSG, ARG1) DMA_PSL_CHAN_TRACE_STATIC1(*this, MSG, (ARG1))
       
   890 
       
   891 
   866 
   892 
   867 #include <drivers/dma_hai.inl>
   893 #include <drivers/dma_hai.inl>
   868 
   894 
   869 
   895 
   870 #endif	// #ifndef __DMA_HAI_H__
   896 #endif	// #ifndef __DMA_HAI_H__