equal
deleted
inserted
replaced
20 #include <drivers/dma.h> |
20 #include <drivers/dma.h> |
21 #include "d_dma.h" |
21 #include "d_dma.h" |
22 |
22 |
23 _LIT(KClientPanicCat, "D_DMA"); |
23 _LIT(KClientPanicCat, "D_DMA"); |
24 _LIT(KDFCThreadName,"D_DMA_DFC_THREAD"); |
24 _LIT(KDFCThreadName,"D_DMA_DFC_THREAD"); |
25 const TInt KDFCThreadPriority=26; |
|
26 |
25 |
27 ////////////////////////////////////////////////////////////////////////////// |
26 ////////////////////////////////////////////////////////////////////////////// |
28 |
27 |
29 // |
28 // |
30 // Class abstracting the way DMA buffers are created and destroyed to |
29 // Class abstracting the way DMA buffers are created and destroyed to |
240 return DoGetInfo(infoBuf().U.iInfo); |
239 return DoGetInfo(infoBuf().U.iInfo); |
241 else |
240 else |
242 { |
241 { |
243 if (!iDfcQ) |
242 if (!iDfcQ) |
244 { |
243 { |
245 r = Kern::DynamicDfcQCreate(iDfcQ, KDFCThreadPriority, KDFCThreadName); |
244 const TInt dfcThreadPrio = infoBuf().U.iOpen.iDfcThreadPriority; |
|
245 r = Kern::DynamicDfcQCreate(iDfcQ, dfcThreadPrio, KDFCThreadName); |
246 if (r != KErrNone) |
246 if (r != KErrNone) |
247 return r; |
247 return r; |
248 #ifdef CPU_AFFINITY_ANY |
248 #ifdef CPU_AFFINITY_ANY |
249 NKern::ThreadSetCpuAffinity((NThread*)(iDfcQ->iThread), KCpuAffinityAny); |
249 NKern::ThreadSetCpuAffinity((NThread*)(iDfcQ->iThread), KCpuAffinityAny); |
250 #endif |
250 #endif |
251 } |
251 } |
252 |
252 |
253 iMemMemPslInfo = DmaTestInfo().iMemMemPslInfo; |
253 iMemMemPslInfo = DmaTestInfo().iMemMemPslInfo; |
254 iCookie = infoBuf().U.iOpen.iId; |
254 iCookie = infoBuf().U.iOpen.iId; |
255 TDmaChannel::SCreateInfo info; |
255 TDmaChannel::SCreateInfo info; |
256 info.iCookie = iCookie; |
256 info.iCookie = iCookie; |