equal
deleted
inserted
replaced
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 the License "Eclipse Public License v1.0" |
4 // under the terms of the License "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". |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // e32test\dma\d_dma.h |
14 // e32test\dma\d_dma.h |
15 // User-side API for LDD used to test DMA framework. |
15 // User-side API for LDD used to test DMA framework. |
16 // |
16 // |
17 // |
17 // |
18 |
18 |
19 #ifndef __D_DMA_H__ |
19 #ifndef __D_DMA_H__ |
20 #define __D_DMA_H__ |
20 #define __D_DMA_H__ |
21 |
21 |
50 { |
50 { |
51 TAny* iInfo; |
51 TAny* iInfo; |
52 struct |
52 struct |
53 { |
53 { |
54 TUint32 iId; |
54 TUint32 iId; |
|
55 TInt iDfcThreadPriority; |
55 TInt iDesCount; |
56 TInt iDesCount; |
56 TInt iMaxTransferSize; |
57 TInt iMaxTransferSize; |
57 } iOpen; |
58 } iOpen; |
58 } U; |
59 } U; |
59 }; |
60 }; |
111 inline TInt RTestDma::Open(TUint32 aId, TInt aDesCount, TInt aMaxTransferSize) |
112 inline TInt RTestDma::Open(TUint32 aId, TInt aDesCount, TInt aMaxTransferSize) |
112 { |
113 { |
113 TPckgBuf<TOpenInfo> infoBuf; |
114 TPckgBuf<TOpenInfo> infoBuf; |
114 infoBuf().iWhat = TOpenInfo::EOpen; |
115 infoBuf().iWhat = TOpenInfo::EOpen; |
115 infoBuf().U.iOpen.iId = aId; |
116 infoBuf().U.iOpen.iId = aId; |
|
117 #if defined(DMA_INVERTED_THREAD_PRIORITIES) |
|
118 infoBuf().U.iOpen.iDfcThreadPriority = 11; |
|
119 #else |
|
120 infoBuf().U.iOpen.iDfcThreadPriority = 26; |
|
121 #endif // #if defined(DMA_INVERTED_THREAD_PRIORITIES) |
116 infoBuf().U.iOpen.iDesCount = aDesCount; |
122 infoBuf().U.iOpen.iDesCount = aDesCount; |
117 infoBuf().U.iOpen.iMaxTransferSize = aMaxTransferSize; |
123 infoBuf().U.iOpen.iMaxTransferSize = aMaxTransferSize; |
118 return DoCreate(KTestDmaLddName, TestDmaLddVersion(), 0, NULL, &infoBuf, EOwnerThread); |
124 return DoCreate(KTestDmaLddName, TestDmaLddVersion(), 0, NULL, &infoBuf, EOwnerThread); |
119 } |
125 } |
120 |
126 |
188 } |
194 } |
189 } |
195 } |
190 else |
196 else |
191 return ETrue; |
197 return ETrue; |
192 } |
198 } |
|
199 |
193 #endif // #ifndef __KERNEL_MODE__ |
200 #endif // #ifndef __KERNEL_MODE__ |
194 |
201 |
195 #endif |
202 #endif |