sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0"" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // include/drivers/dma_v2.inl sl@0: // DMA Framework - Client API v2 definition. sl@0: // sl@0: // sl@0: // WARNING: This file contains some APIs which are internal and are subject sl@0: // to change without noticed. Such APIs should therefore not be used sl@0: // outside the Kernel and Hardware Services package. sl@0: sl@0: sl@0: // sl@0: // TDmaChannel sl@0: // sl@0: sl@0: inline void TDmaChannel::Wait() sl@0: { sl@0: NKern::ThreadEnterCS(); sl@0: Kern::MutexWait(*iMutex); sl@0: } sl@0: sl@0: inline void TDmaChannel::Signal() sl@0: { sl@0: Kern::MutexSignal(*iMutex); sl@0: NKern::ThreadLeaveCS(); sl@0: } sl@0: sl@0: inline void TDmaChannel::Flash() sl@0: { sl@0: Kern::MutexSignal(*iMutex); sl@0: Kern::MutexWait(*iMutex); sl@0: } sl@0: sl@0: inline TBool TDmaChannel::IsOpened() const sl@0: { sl@0: __KTRACE_OPT(KDMA, Kern::Printf("Warning: TDmaChannel::IsOpened() is deprecated")); sl@0: return iController != NULL; sl@0: } sl@0: sl@0: inline TBool TDmaChannel::IsQueueEmpty() const sl@0: { sl@0: return const_cast(this)->iReqQ.IsEmpty(); sl@0: } sl@0: sl@0: inline TUint32 TDmaChannel::PslId() const sl@0: { sl@0: return iPslId; sl@0: } sl@0: sl@0: sl@0: // ---