equal
deleted
inserted
replaced
|
1 // Copyright (c) 2002-2010 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 "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 // include/drivers/dma_v2.inl |
|
15 // DMA Framework - Client API v2 definition. |
|
16 // |
|
17 // |
|
18 // WARNING: This file contains some APIs which are internal and are subject |
|
19 // to change without noticed. Such APIs should therefore not be used |
|
20 // outside the Kernel and Hardware Services package. |
|
21 |
|
22 |
|
23 // |
|
24 // TDmaChannel |
|
25 // |
|
26 |
|
27 inline void TDmaChannel::Wait() |
|
28 { |
|
29 NKern::FMWait(&iLock); |
|
30 } |
|
31 |
|
32 inline void TDmaChannel::Signal() |
|
33 { |
|
34 NKern::FMSignal(&iLock); |
|
35 } |
|
36 |
|
37 inline TBool TDmaChannel::Flash() |
|
38 { |
|
39 return NKern::FMFlash(&iLock); |
|
40 } |
|
41 |
|
42 inline TBool TDmaChannel::IsOpened() const |
|
43 { |
|
44 __KTRACE_OPT(KDMA, Kern::Printf("Warning: TDmaChannel::IsOpened() is deprecated")); |
|
45 return iController != NULL; |
|
46 } |
|
47 |
|
48 inline TBool TDmaChannel::IsQueueEmpty() const |
|
49 { |
|
50 return const_cast<TDmaChannel*>(this)->iReqQ.IsEmpty(); |
|
51 } |
|
52 |
|
53 inline TUint32 TDmaChannel::PslId() const |
|
54 { |
|
55 return iPslId; |
|
56 } |
|
57 |
|
58 |
|
59 // --- |