0
|
1 |
// Copyright (c) 2003-2009 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 the License "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 |
//
|
|
15 |
|
|
16 |
#include <drivers/sdio/sdiocard.h>
|
|
17 |
#include "utraceepbussdio.h"
|
|
18 |
#include <drivers/sdio/regifc.h>
|
|
19 |
#include <drivers/sdio/cisreader.h>
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
EXPORT_C DSDIORegisterInterface::DSDIORegisterInterface(TSDIOCard* aCardP, TUint8 aFunctionNumber) :
|
|
24 |
/**
|
|
25 |
@publishedPartner
|
|
26 |
@released
|
|
27 |
|
|
28 |
Contructs a DSDIORegisterInterface with the specified function number.
|
|
29 |
|
|
30 |
@param aCardP Pointer to the TSDIOCard object that owns the function.
|
|
31 |
@param aFunctionNumber The number of the function upon which the register interface operates.
|
|
32 |
*/
|
|
33 |
DSDIOSession(iSessionEndCallBack, aFunctionNumber),
|
|
34 |
iSessionEndCallBack(DSDIORegisterInterface::SessionEndCallBack,this),
|
|
35 |
iSessionEndDfc(DSDIORegisterInterface::SessionEndDfc,this,1),
|
|
36 |
iSessionErr(KErrNone),
|
|
37 |
iMutexLock(NULL),
|
|
38 |
iIsSync(ETrue)
|
|
39 |
{
|
|
40 |
TRACE3(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceConstructor, reinterpret_cast<TUint32>(this), reinterpret_cast<TUint32>(aCardP), aFunctionNumber); // @SymTraceDataPublishedTvk
|
|
41 |
|
|
42 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
43 |
iTraceData = new TTraceData;
|
|
44 |
#endif
|
|
45 |
|
|
46 |
Init(aCardP);
|
|
47 |
|
|
48 |
TRACE1(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceConstructorReturning, reinterpret_cast<TUint32>(this)); // @SymTraceDataPublishedTvk
|
|
49 |
}
|
|
50 |
|
|
51 |
|
|
52 |
EXPORT_C DSDIORegisterInterface::DSDIORegisterInterface(TSDIOCard* aCardP, TUint8 aFunctionNumber, DMutex* aMutexLock) :
|
|
53 |
/**
|
|
54 |
@publishedPartner
|
|
55 |
@released
|
|
56 |
|
|
57 |
Contructs a DSDIORegisterInterface with the specified function number.
|
|
58 |
|
|
59 |
@param aCardP Pointer to the TSDIOCard object that owns the function.
|
|
60 |
@param aFunctionNumber The number of the function upon which the register interface operates.
|
|
61 |
@param aMutexLock Pointer to the mutex used to ensure exclusive access to the register interface.
|
|
62 |
*/
|
|
63 |
DSDIOSession(iSessionEndCallBack, aFunctionNumber),
|
|
64 |
iSessionEndCallBack(DSDIORegisterInterface::SessionEndCallBack,this),
|
|
65 |
iSessionEndDfc(DSDIORegisterInterface::SessionEndDfc,this,1),
|
|
66 |
iSessionErr(KErrNone),
|
|
67 |
iMutexLock(aMutexLock),
|
|
68 |
iIsSync(ETrue)
|
|
69 |
{
|
|
70 |
TRACE3(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceConstructor, reinterpret_cast<TUint32>(this), reinterpret_cast<TUint32>(aCardP), aFunctionNumber); // @SymTraceDataPublishedTvk
|
|
71 |
|
|
72 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
73 |
iTraceData = new TTraceData;
|
|
74 |
#endif
|
|
75 |
|
|
76 |
Init(aCardP);
|
|
77 |
|
|
78 |
TRACE1(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceConstructorReturning, reinterpret_cast<TUint32>(this)); // @SymTraceDataPublishedTvk
|
|
79 |
}
|
|
80 |
|
|
81 |
|
|
82 |
EXPORT_C DSDIORegisterInterface::~DSDIORegisterInterface()
|
|
83 |
/**
|
|
84 |
Destroys the DSDIORegisterInterface instance.
|
|
85 |
*/
|
|
86 |
{
|
|
87 |
TRACE1(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceDestructor, reinterpret_cast<TUint32>(this)); // @SymTraceDataPublishedTvk
|
|
88 |
|
|
89 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
90 |
delete iTraceData;
|
|
91 |
#endif
|
|
92 |
|
|
93 |
StackP()->MMCSocket()->EndInCritical();
|
|
94 |
iSessionEndDfc.Cancel();
|
|
95 |
|
|
96 |
TRACE1(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceDestructorReturning, reinterpret_cast<TUint32>(this)); // @SymTraceDataPublishedTvk
|
|
97 |
}
|
|
98 |
|
|
99 |
|
|
100 |
void DSDIORegisterInterface::Init(TSDIOCard* aCardP)
|
|
101 |
/**
|
|
102 |
Initialise the DSDIORegisterInterface instance.
|
|
103 |
*/
|
|
104 |
{
|
|
105 |
DMMCStack* stackP = aCardP->iStackP;
|
|
106 |
|
|
107 |
SetCallback(iSessionEndCallBack);
|
|
108 |
SetCard(aCardP);
|
|
109 |
SetStack(stackP);
|
|
110 |
|
|
111 |
iSessionEndDfc.SetDfcQ(&stackP->MMCSocket()->iDfcQ);
|
|
112 |
}
|
|
113 |
|
|
114 |
|
|
115 |
inline TBool DSDIORegisterInterface::ValidAddress(TUint32 aAddress) const
|
|
116 |
/**
|
|
117 |
Validates that the address is within range
|
|
118 |
@return EFalse if the address is out of range
|
|
119 |
*/
|
|
120 |
{
|
|
121 |
return((aAddress &~ KSdioCmdAddressMask) == 0);
|
|
122 |
}
|
|
123 |
|
|
124 |
|
|
125 |
EXPORT_C TInt DSDIORegisterInterface::Read8(TUint32 aReg, TUint8* aReadDataP)
|
|
126 |
/**
|
|
127 |
@publishedPartner
|
|
128 |
@released
|
|
129 |
|
|
130 |
Reads a single 8-bit value from the specified register.
|
|
131 |
|
|
132 |
@param aReg Source register address
|
|
133 |
@param aReadDataP Destination address
|
|
134 |
|
|
135 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
136 |
*/
|
|
137 |
{
|
|
138 |
__ASSERT_DEBUG(aReadDataP != NULL, DSDIORegisterInterface::Panic(DSDIORegisterInterface::EBadParameter));
|
|
139 |
|
|
140 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceRead, reinterpret_cast<TUint32>(this), 1); // @SymTraceDataPublishedTvk
|
|
141 |
|
|
142 |
if(!ValidAddress(aReg))
|
|
143 |
return(KErrArgument);
|
|
144 |
|
|
145 |
Lock();
|
|
146 |
|
|
147 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
148 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE0(TTraceContext(EDump), UTraceModuleEPBusSDIO::ESDIORead)); // @SymTraceDataInternalTechnology
|
|
149 |
if (iTraceData)
|
|
150 |
iTraceData->Set(aReadDataP, 1);
|
|
151 |
#endif
|
|
152 |
|
|
153 |
SetupCIMIoRead(aReg, aReadDataP);
|
|
154 |
|
|
155 |
TInt err = EngageSdio();
|
|
156 |
|
|
157 |
Unlock();
|
|
158 |
|
|
159 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceReadReturning, reinterpret_cast<TUint32>(this), err); // @SymTraceDataPublishedTvk
|
|
160 |
|
|
161 |
return err;
|
|
162 |
}
|
|
163 |
|
|
164 |
EXPORT_C TInt DSDIORegisterInterface::Write8(TUint32 aReg, TUint8 aWriteVal)
|
|
165 |
/**
|
|
166 |
@publishedPartner
|
|
167 |
@released
|
|
168 |
|
|
169 |
Writes a single 8-bit value to the specified register.
|
|
170 |
|
|
171 |
@param aReg Destination register address.
|
|
172 |
@param aWriteVal 8-Bit value to write.
|
|
173 |
|
|
174 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
175 |
*/
|
|
176 |
{
|
|
177 |
return Write8(aReg, aWriteVal, NULL);
|
|
178 |
}
|
|
179 |
|
|
180 |
EXPORT_C TInt DSDIORegisterInterface::Write8(TUint32 aReg, TUint8 aWriteVal, TUint8* aReadDataP)
|
|
181 |
/**
|
|
182 |
@publishedPartner
|
|
183 |
@released
|
|
184 |
|
|
185 |
Writes a single 8-bit value to the specified register. If the optional parameter aReadData is
|
|
186 |
not NULL, a read-after-write operation shall be performed.
|
|
187 |
|
|
188 |
@param aReg Destination register address.
|
|
189 |
@param aWriteVal 8-Bit value to write.
|
|
190 |
@param aReadDataP If specified, a read-after-write operation is performed and stored here.
|
|
191 |
|
|
192 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
193 |
*/
|
|
194 |
{
|
|
195 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceWrite, reinterpret_cast<TUint32>(this), 1); // @SymTraceDataPublishedTvk
|
|
196 |
|
|
197 |
if(!ValidAddress(aReg))
|
|
198 |
return(KErrArgument);
|
|
199 |
|
|
200 |
Lock();
|
|
201 |
|
|
202 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
203 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE(TTraceContext(EDump), UTraceModuleEPBusSDIO::ESDIOWrite, &aWriteVal, 1)); // @SymTraceDataInternalTechnology
|
|
204 |
if (iTraceData)
|
|
205 |
iTraceData->Set(aReadDataP, 1);
|
|
206 |
#endif
|
|
207 |
|
|
208 |
SetupCIMIoWrite(aReg, aWriteVal, aReadDataP);
|
|
209 |
TInt err = EngageSdio();
|
|
210 |
|
|
211 |
Unlock();
|
|
212 |
|
|
213 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceWriteReturning, reinterpret_cast<TUint32>(this), err); // @SymTraceDataPublishedTvk
|
|
214 |
|
|
215 |
return err;
|
|
216 |
}
|
|
217 |
|
|
218 |
EXPORT_C TInt DSDIORegisterInterface::Modify8(TUint32 aReg, TUint8 aSet, TUint8 aClr)
|
|
219 |
/**
|
|
220 |
@publishedPartner
|
|
221 |
@released
|
|
222 |
|
|
223 |
Performs a bitwise read-modify-write operation on the specified register.
|
|
224 |
|
|
225 |
@param aReg Destination register address
|
|
226 |
@param aSet Bitmask of values to Set
|
|
227 |
@param aClr Bitmask of values to Clear
|
|
228 |
|
|
229 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
230 |
*/
|
|
231 |
{
|
|
232 |
return Modify8(aReg, aSet, aClr, NULL);
|
|
233 |
}
|
|
234 |
|
|
235 |
EXPORT_C TInt DSDIORegisterInterface::Modify8(TUint32 aReg, TUint8 aSet, TUint8 aClr, TUint8* aReadDataP)
|
|
236 |
/**
|
|
237 |
@publishedPartner
|
|
238 |
@released
|
|
239 |
|
|
240 |
Performs a bitwise read-modify-write operation on the specified register. If the optional
|
|
241 |
parameter aReadData is not NULL, a read-after-write operation shall be performed.
|
|
242 |
|
|
243 |
@param aReg Destination register address
|
|
244 |
@param aSet Bitmask of values to Set
|
|
245 |
@param aClr Bitmask of values to Clear
|
|
246 |
@param aReadDataP If specified, a read-after-write operation is performed and stored here.
|
|
247 |
|
|
248 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
249 |
*/
|
|
250 |
{
|
|
251 |
__ASSERT_DEBUG((aSet & aClr) == 0, DSDIORegisterInterface::Panic(DSDIORegisterInterface::EBadParameter));
|
|
252 |
|
|
253 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceModify, reinterpret_cast<TUint32>(this), 1); // @SymTraceDataPublishedTvk
|
|
254 |
|
|
255 |
if(!ValidAddress(aReg))
|
|
256 |
return(KErrArgument);
|
|
257 |
|
|
258 |
Lock();
|
|
259 |
|
|
260 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
261 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE2(TTraceContext(EDump), UTraceModuleEPBusSDIO::ESDIOModified, static_cast<TUint32>(aSet), static_cast<TUint32>(aClr))); // @SymTraceDataInternalTechnology
|
|
262 |
if (iTraceData)
|
|
263 |
iTraceData->Clear();
|
|
264 |
#endif
|
|
265 |
|
|
266 |
SetupCIMIoModify(aReg, aSet, aClr, aReadDataP);
|
|
267 |
TInt err = EngageSdio();
|
|
268 |
|
|
269 |
Unlock();
|
|
270 |
|
|
271 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceModifyReturning, reinterpret_cast<TUint32>(this), err); // @SymTraceDataPublishedTvk
|
|
272 |
|
|
273 |
return err;
|
|
274 |
}
|
|
275 |
|
|
276 |
EXPORT_C TInt DSDIORegisterInterface::ReadMultiple8(TUint32 aReg, TUint8* aDataP, TUint32 aLen)
|
|
277 |
/**
|
|
278 |
@publishedPartner
|
|
279 |
@released
|
|
280 |
|
|
281 |
Reads aLen bytes starting from the specified register offset.
|
|
282 |
The destinatation address will be automatically incremented.
|
|
283 |
|
|
284 |
@param aReg Source register address
|
|
285 |
@param aDataP Destination address
|
|
286 |
@param aLen The number of bytes to transfer
|
|
287 |
|
|
288 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
289 |
*/
|
|
290 |
{
|
|
291 |
return ReadMultiple8(aReg, aDataP, aLen, ETrue);
|
|
292 |
}
|
|
293 |
|
|
294 |
EXPORT_C TInt DSDIORegisterInterface::ReadMultiple8(TUint32 aReg, TUint8* aDataP, TUint32 aLen, TBool aAutoInc)
|
|
295 |
/**
|
|
296 |
@publishedPartner
|
|
297 |
@released
|
|
298 |
|
|
299 |
Reads aLen bytes starting from the specified register offset. The parameter aAutoInc allows
|
|
300 |
auto-increment of the source address to be disabled if, for example, reading from a FIFO on the card.
|
|
301 |
|
|
302 |
@param aReg Source register address
|
|
303 |
@param aDataP Destination address
|
|
304 |
@param aLen The number of bytes to transfer
|
|
305 |
@param aAutoInc Specify ETrue to auto-increment the source address
|
|
306 |
|
|
307 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
308 |
*/
|
|
309 |
{
|
|
310 |
__ASSERT_DEBUG(aDataP != NULL, DSDIORegisterInterface::Panic(DSDIORegisterInterface::EBadParameter));
|
|
311 |
|
|
312 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceReadMultiple, reinterpret_cast<TUint32>(this), aLen); // @SymTraceDataPublishedTvk
|
|
313 |
|
|
314 |
if(!ValidAddress(aReg) || aLen == 0)
|
|
315 |
return(KErrArgument);
|
|
316 |
|
|
317 |
Lock();
|
|
318 |
|
|
319 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
320 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE0(TTraceContext(EDump), UTraceModuleEPBusSDIO::ESDIORead)); // @SymTraceDataInternalTechnology
|
|
321 |
if (iTraceData)
|
|
322 |
iTraceData->Set(aDataP, aLen);
|
|
323 |
#endif
|
|
324 |
|
|
325 |
SetupCIMIoReadMultiple(aReg, aLen, aDataP, aAutoInc);
|
|
326 |
TInt err = EngageSdio();
|
|
327 |
|
|
328 |
Unlock();
|
|
329 |
|
|
330 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceReadMultipleReturning, reinterpret_cast<TUint32>(this), err); // @SymTraceDataPublishedTvk
|
|
331 |
|
|
332 |
return err;
|
|
333 |
}
|
|
334 |
|
|
335 |
EXPORT_C TInt DSDIORegisterInterface::ReadMultiple8(TUint32 aReg, DChunk* aChunk, TUint32 aOffset, TUint32 aLen)
|
|
336 |
/**
|
|
337 |
@publishedPartner
|
|
338 |
@released
|
|
339 |
|
|
340 |
Reads aLen bytes starting from the specified register offset.
|
|
341 |
Transfers are performed utilising DMA, this is dependent on platform support.
|
|
342 |
The destinatation address will be automatically incremented.
|
|
343 |
|
|
344 |
@param aReg Source register address
|
|
345 |
@param aChunk Chunk which hosts the destination buffer
|
|
346 |
@param aOffset The offset from the start of the chunk, to the start of the destination buffer
|
|
347 |
@param aLen The number of bytes to transfer
|
|
348 |
|
|
349 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
350 |
*/
|
|
351 |
{
|
|
352 |
return ReadMultiple8(aReg, aChunk, aOffset, aLen, ETrue);
|
|
353 |
}
|
|
354 |
|
|
355 |
EXPORT_C TInt DSDIORegisterInterface::ReadMultiple8(TUint32 aReg, DChunk* aChunk, TUint32 aOffset, TUint32 aLen, TBool aAutoInc)
|
|
356 |
/**
|
|
357 |
@publishedPartner
|
|
358 |
@released
|
|
359 |
|
|
360 |
Reads aLen bytes starting from the specified register offset. The aAutoInc parameter allows
|
|
361 |
auto-increment of the source address to be disabled if, for example, reading from a FIFO on the card.
|
|
362 |
Transfers are performed utilising DMA, this is dependent on platform support.
|
|
363 |
|
|
364 |
@param aReg Source register address
|
|
365 |
@param aChunk Chunk which hosts the destination buffer
|
|
366 |
@param aOffset The offset from the start of the chunk, to the start of the destination buffer
|
|
367 |
@param aLen The number of bytes to transfer
|
|
368 |
@param aAutoInc Specify ETrue to auto-increment the source address
|
|
369 |
|
|
370 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
371 |
*/
|
|
372 |
{
|
|
373 |
__ASSERT_DEBUG(aChunk != NULL, DSDIORegisterInterface::Panic(DSDIORegisterInterface::EBadParameter));
|
|
374 |
|
|
375 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceReadMultipleChunk, reinterpret_cast<TUint32>(this), aLen); // @SymTraceDataPublishedTvk
|
|
376 |
|
|
377 |
if(!ValidAddress(aReg) || aLen == 0 || (aChunk->Size() < (TInt)aLen))
|
|
378 |
return(KErrArgument);
|
|
379 |
|
|
380 |
Lock();
|
|
381 |
|
|
382 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
383 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE0(TTraceContext(EDump), UTraceModuleEPBusSDIO::ESDIORead)); // @SymTraceDataInternalTechnology
|
|
384 |
if (iTraceData)
|
|
385 |
iTraceData->Set(aChunk, aOffset, aLen);
|
|
386 |
#endif
|
|
387 |
|
|
388 |
SetupCIMIoReadMultiple(aReg, aLen, (TUint8*)aOffset, aAutoInc);
|
|
389 |
|
|
390 |
SetupCIMIoChunkParams(aChunk);
|
|
391 |
|
|
392 |
TInt err = EngageSdio();
|
|
393 |
|
|
394 |
Unlock();
|
|
395 |
|
|
396 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceReadMultipleChunkReturning, reinterpret_cast<TUint32>(this), err); // @SymTraceDataPublishedTvk
|
|
397 |
|
|
398 |
return err;
|
|
399 |
}
|
|
400 |
|
|
401 |
EXPORT_C TInt DSDIORegisterInterface::WriteMultiple8(TUint32 aReg, TUint8* aDataP, TUint32 aLen)
|
|
402 |
/**
|
|
403 |
@publishedPartner
|
|
404 |
@released
|
|
405 |
|
|
406 |
This function writes aLen bytes starting at the specified register.
|
|
407 |
The destinatation address will be automatically incremented.
|
|
408 |
|
|
409 |
@param aReg Destination register address
|
|
410 |
@param aDataP Source address of data to be written
|
|
411 |
@param aLen The number of bytes to transfer
|
|
412 |
|
|
413 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
414 |
*/
|
|
415 |
{
|
|
416 |
return WriteMultiple8(aReg, aDataP, aLen, ETrue);
|
|
417 |
}
|
|
418 |
|
|
419 |
EXPORT_C TInt DSDIORegisterInterface::WriteMultiple8(TUint32 aReg, TUint8* aDataP, TUint32 aLen, TBool aAutoInc)
|
|
420 |
/**
|
|
421 |
@publishedPartner
|
|
422 |
@released
|
|
423 |
|
|
424 |
This function writes aLen bytes starting at the specified register. The optional parameter aAutoInc
|
|
425 |
allows auto-increment of the destination address to be disabled if, for example, writing to a FIFO on the card.
|
|
426 |
|
|
427 |
@param aReg Destination register address
|
|
428 |
@param aDataP Source address of data to be written
|
|
429 |
@param aLen The number of bytes to transfer
|
|
430 |
@param aAutoInc Specify ETrue to auto-increment the destination address
|
|
431 |
|
|
432 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
433 |
*/
|
|
434 |
{
|
|
435 |
__ASSERT_DEBUG(aDataP != NULL, DSDIORegisterInterface::Panic(DSDIORegisterInterface::EBadParameter));
|
|
436 |
|
|
437 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceWriteMultiple, reinterpret_cast<TUint32>(this), aLen); // @SymTraceDataPublishedTvk
|
|
438 |
|
|
439 |
if(!ValidAddress(aReg) || aLen == 0)
|
|
440 |
return(KErrArgument);
|
|
441 |
|
|
442 |
Lock();
|
|
443 |
|
|
444 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
445 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE(TTraceContext(EDump), UTraceModuleEPBusSDIO::ESDIOWrite, aDataP, aLen)); // @SymTraceDataInternalTechnology
|
|
446 |
if (iTraceData)
|
|
447 |
iTraceData->Set(NULL, 0);
|
|
448 |
#endif
|
|
449 |
|
|
450 |
SetupCIMIoWriteMultiple(aReg, aLen, aDataP, aAutoInc);
|
|
451 |
TInt err = EngageSdio();
|
|
452 |
|
|
453 |
Unlock();
|
|
454 |
|
|
455 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceWriteMultipleReturning, reinterpret_cast<TUint32>(this), err); // @SymTraceDataPublishedTvk
|
|
456 |
|
|
457 |
return err;
|
|
458 |
}
|
|
459 |
|
|
460 |
EXPORT_C TInt DSDIORegisterInterface::WriteMultiple8(TUint32 aReg, DChunk* aChunk, TUint32 aOffset, TUint32 aLen)
|
|
461 |
/**
|
|
462 |
@publishedPartner
|
|
463 |
@released
|
|
464 |
|
|
465 |
This function writes aLen bytes starting at the specified register.
|
|
466 |
Transfers are performed utilising DMA, this is dependent on platform support.
|
|
467 |
The destinatation address will be automatically incremented.
|
|
468 |
|
|
469 |
@param aReg Destination register address
|
|
470 |
@param aChunk Chunk which hosts the source buffer
|
|
471 |
@param aOffset The offset from the start of the chunk, to the start of the source buffer
|
|
472 |
@param aLen The number of bytes to transfer
|
|
473 |
|
|
474 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
475 |
*/
|
|
476 |
{
|
|
477 |
return WriteMultiple8(aReg, aChunk, aOffset, aLen, ETrue);
|
|
478 |
}
|
|
479 |
|
|
480 |
EXPORT_C TInt DSDIORegisterInterface::WriteMultiple8(TUint32 aReg, DChunk* aChunk, TUint32 aOffset, TUint32 aLen, TBool aAutoInc)
|
|
481 |
/**
|
|
482 |
@publishedPartner
|
|
483 |
@released
|
|
484 |
|
|
485 |
This function writes aLen bytes starting at the specified register. The optional parameter aAutoInc
|
|
486 |
allows auto-increment of the destination address to be disabled if, for example, writing to a FIFO on the card.
|
|
487 |
Transfers are performed utilising DMA, this is dependent on platform support.
|
|
488 |
|
|
489 |
@param aReg Destination register address
|
|
490 |
@param aChunk Chunk which hosts the source buffer
|
|
491 |
@param aOffset The offset from the start of the chunk, to the start of the source buffer
|
|
492 |
@param aLen The number of bytes to transfer
|
|
493 |
@param aAutoInc Specify ETrue to auto-increment the destination address
|
|
494 |
|
|
495 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
496 |
*/
|
|
497 |
{
|
|
498 |
__ASSERT_DEBUG(aChunk != NULL, DSDIORegisterInterface::Panic(DSDIORegisterInterface::EBadParameter));
|
|
499 |
|
|
500 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceWriteMultipleChunk, reinterpret_cast<TUint32>(this), aLen); // @SymTraceDataPublishedTvk
|
|
501 |
|
|
502 |
if(!ValidAddress(aReg) || aLen == 0 || (aChunk->Size() < (TInt)aLen) )
|
|
503 |
return(KErrArgument);
|
|
504 |
|
|
505 |
Lock();
|
|
506 |
|
|
507 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
508 |
if (iTraceData)
|
|
509 |
iTraceData->Set(aChunk, aOffset, aLen);
|
|
510 |
TraceChunk(UTraceModuleEPBusSDIO::ESDIOWrite);
|
|
511 |
#endif
|
|
512 |
|
|
513 |
SetupCIMIoWriteMultiple(aReg, aLen, (TUint8*)aOffset, aAutoInc);
|
|
514 |
|
|
515 |
SetupCIMIoChunkParams(aChunk);
|
|
516 |
|
|
517 |
TInt err = EngageSdio();
|
|
518 |
|
|
519 |
Unlock();
|
|
520 |
|
|
521 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceWriteMultipleChunkReturning, reinterpret_cast<TUint32>(this), err); // @SymTraceDataPublishedTvk
|
|
522 |
|
|
523 |
return err;
|
|
524 |
}
|
|
525 |
|
|
526 |
TInt DSDIORegisterInterface::SetBusWidth(TInt aBusWidth)
|
|
527 |
/**
|
|
528 |
Set the bus width
|
|
529 |
|
|
530 |
@param aBusWidth The desired bus width, usually 1 or 4
|
|
531 |
|
|
532 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
533 |
*/
|
|
534 |
{
|
|
535 |
__ASSERT_DEBUG((aBusWidth == 1 || aBusWidth == 4), DSDIORegisterInterface::Panic(DSDIORegisterInterface::EBadParameter));
|
|
536 |
|
|
537 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceSetBusWidth, reinterpret_cast<TUint32>(this), aBusWidth); // @SymTraceDataPublishedTvk
|
|
538 |
|
|
539 |
Lock();
|
|
540 |
|
|
541 |
SetupCIMIoSetBusWidth(aBusWidth);
|
|
542 |
TInt err = EngageSdio();
|
|
543 |
|
|
544 |
Unlock();
|
|
545 |
|
|
546 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceSetBusWidthReturning, reinterpret_cast<TUint32>(this), err); // @SymTraceDataPublishedTvk
|
|
547 |
|
|
548 |
return err;
|
|
549 |
}
|
|
550 |
|
|
551 |
EXPORT_C TBool DSDIORegisterInterface::SetAsync(TMMCCallBack& aCallback)
|
|
552 |
/**
|
|
553 |
Allows the synchronous nature of the DSDIORegInterface class to be disabled, using the specified callback
|
|
554 |
function to indicate completion instead of waiting on a semaphore.
|
|
555 |
|
|
556 |
Intended for use by device drivers that may be able to do useful work while waiting for completion of an
|
|
557 |
operation, this is similar to using the DSDIOSession class directly but provides encapsulation of the setting
|
|
558 |
the command arguments and submission of the session of the stack.
|
|
559 |
|
|
560 |
@param aCallback Callback function used to indicate Asynchronous Completion
|
|
561 |
|
|
562 |
@return ETrue if successful, otherwise EFalse.
|
|
563 |
*/
|
|
564 |
{
|
|
565 |
TRACE1(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceSetAsync, reinterpret_cast<TUint32>(this)); // @SymTraceDataPublishedTvk
|
|
566 |
|
|
567 |
Lock(); // Shall remain locked for the duration of the session
|
|
568 |
|
|
569 |
iIsSync = EFalse;
|
|
570 |
iClientCallback = aCallback;
|
|
571 |
|
|
572 |
TRACE1(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceSetAsyncReturning, reinterpret_cast<TUint32>(this)); // @SymTraceDataPublishedTvk
|
|
573 |
|
|
574 |
return(ETrue);
|
|
575 |
}
|
|
576 |
|
|
577 |
EXPORT_C TBool DSDIORegisterInterface::SetSync()
|
|
578 |
/**
|
|
579 |
Allows the synchronous nature of the DSDIORegInterface class to be enabled, using an internal semaphore
|
|
580 |
to signal completion instead of relying on the asynchronous nature of the session.
|
|
581 |
|
|
582 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
583 |
*/
|
|
584 |
{
|
|
585 |
TRACE1(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceSetSync, reinterpret_cast<TUint32>(this)); // @SymTraceDataPublishedTvk
|
|
586 |
|
|
587 |
Lock();
|
|
588 |
|
|
589 |
iIsSync = ETrue;
|
|
590 |
Unlock();
|
|
591 |
|
|
592 |
TRACE1(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceSetSyncReturning, reinterpret_cast<TUint32>(this)); // @SymTraceDataPublishedTvk
|
|
593 |
|
|
594 |
return(ETrue);
|
|
595 |
}
|
|
596 |
|
|
597 |
void DSDIORegisterInterface::SessionEndCallBack(TAny *aSelfP)
|
|
598 |
/**
|
|
599 |
Session end callback
|
|
600 |
*/
|
|
601 |
{
|
|
602 |
SYMBIAN_TRACE_SDIO_VERBOSE_ONLY(Printf(TTraceContext(EInternals), ">RegIfc:SesCB")); // @SymTraceDataInternalTechnology
|
|
603 |
|
|
604 |
DSDIORegisterInterface &self = *(DSDIORegisterInterface*)aSelfP;
|
|
605 |
|
|
606 |
// Clear any Shared Chunk information
|
|
607 |
self.ClearCIMIoChunkParams();
|
|
608 |
|
|
609 |
if(self.iIsSync)
|
|
610 |
{
|
|
611 |
if (!self.iSessionEndDfc.Queued())
|
|
612 |
{
|
|
613 |
self.iSessionEndDfc.Enque();
|
|
614 |
}
|
|
615 |
}
|
|
616 |
else
|
|
617 |
{
|
|
618 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
619 |
self.DumpOpComplete();
|
|
620 |
#endif
|
|
621 |
|
|
622 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceOpComplete, reinterpret_cast<TUint32>(aSelfP), 0); // @SymTraceDataPublishedTvk
|
|
623 |
|
|
624 |
self.iClientCallback.CallBack();
|
|
625 |
self.Unlock();
|
|
626 |
}
|
|
627 |
}
|
|
628 |
|
|
629 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
630 |
void DSDIORegisterInterface::DumpOpComplete()
|
|
631 |
/**
|
|
632 |
The read/write operation has completed, for a read operation output the data that has been read
|
|
633 |
*/
|
|
634 |
{
|
|
635 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE1(TTraceContext(EDump), UTraceModuleEPBusSDIO::ESDIOOperationComplete, iTraceData->TickCount())); // @SymTraceDataInternalTechnology
|
|
636 |
|
|
637 |
if (iTraceData)
|
|
638 |
{
|
|
639 |
if (iTraceData->Chunk())
|
|
640 |
TraceChunk(UTraceModuleEPBusSDIO::ESDIOReadComplete);
|
|
641 |
else if (iTraceData->Ptr())
|
|
642 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE(TTraceContext(EDump), UTraceModuleEPBusSDIO::ESDIOReadComplete, iTraceData->Ptr(), iTraceData->Length())); // @SymTraceDataInternalTechnology
|
|
643 |
}
|
|
644 |
}
|
|
645 |
|
|
646 |
/**
|
|
647 |
Dump the read/write data for a chunk
|
|
648 |
*/
|
|
649 |
void DSDIORegisterInterface::TraceChunk(TUint32 aTrace)
|
|
650 |
{
|
|
651 |
if (iTraceData && iTraceData->Chunk())
|
|
652 |
{
|
|
653 |
TInt r = KErrNone;
|
|
654 |
TLinAddr kernAddr;
|
|
655 |
TUint32 mapAttr;
|
|
656 |
TUint32 physAddr;
|
|
657 |
|
|
658 |
TUint32 pageSize = Kern::RoundToPageSize(1);
|
|
659 |
|
|
660 |
// calculate number of possible physical pages
|
|
661 |
// +1 for rounding & +1 for physical page spanning
|
|
662 |
TUint32 totalPages = (iTraceData->Length() / pageSize) + 2;
|
|
663 |
|
|
664 |
// Allocate array for list of physical pages
|
|
665 |
TUint32* physicalPages = new TPhysAddr[totalPages];
|
|
666 |
if(!physicalPages)
|
|
667 |
{
|
|
668 |
return;
|
|
669 |
}
|
|
670 |
|
|
671 |
// Query Physical Structure of chunk
|
|
672 |
r = Kern::ChunkPhysicalAddress(iTraceData->Chunk(), iTraceData->Offset(), iTraceData->Length(), kernAddr, mapAttr, physAddr, physicalPages);
|
|
673 |
|
|
674 |
if(KErrNone == r)
|
|
675 |
{
|
|
676 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE(TTraceContext(EDump), aTrace, reinterpret_cast<TUint8*>(kernAddr), iTraceData->Length())); // @SymTraceDataInternalTechnology
|
|
677 |
}
|
|
678 |
#ifndef __FRAGMENTED_RAM_SUPPORT
|
|
679 |
else
|
|
680 |
{
|
|
681 |
// Do nothing
|
|
682 |
}
|
|
683 |
#else
|
|
684 |
else if(r==1)
|
|
685 |
{
|
|
686 |
TUint32 lenToOutput = pageSize - (iTraceData->Offset() % pageSize);
|
|
687 |
TUint8* addr = reinterpret_cast<TUint8*>(kernAddr);
|
|
688 |
|
|
689 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE(TTraceContext(EDump), aTrace, addr, lenToOutput)); // @SymTraceDataInternalTechnology
|
|
690 |
aLen -= lenToOutput;
|
|
691 |
|
|
692 |
for(TUint i=1; i < totalPages; i++)
|
|
693 |
{
|
|
694 |
lenToOutput = aLen > pageSize ? pageSize : aLen;
|
|
695 |
SYMBIAN_TRACE_SDIO_DUMP_ONLY(TRACE(TTraceContext(EDump), aTrace, physicalPages[i], lenToOutput)); // @SymTraceDataInternalTechnology
|
|
696 |
aLen -= lenToOutput;
|
|
697 |
}
|
|
698 |
}
|
|
699 |
#endif
|
|
700 |
|
|
701 |
delete [] physicalPages;
|
|
702 |
}
|
|
703 |
}
|
|
704 |
|
|
705 |
#endif
|
|
706 |
|
|
707 |
void DSDIORegisterInterface::SessionEndDfc(TAny *aSelfP)
|
|
708 |
/**
|
|
709 |
Session end DFC
|
|
710 |
*/
|
|
711 |
{
|
|
712 |
DSDIORegisterInterface* pSelf = static_cast<DSDIORegisterInterface*>(aSelfP);
|
|
713 |
pSelf->DoSessionEndDfc();
|
|
714 |
}
|
|
715 |
|
|
716 |
void DSDIORegisterInterface::DoSessionEndDfc()
|
|
717 |
/**
|
|
718 |
When a session has been completed, extract any error codes
|
|
719 |
and signal completion of the current operation
|
|
720 |
*/
|
|
721 |
{
|
|
722 |
iSessionErr = EpocErrorCode();
|
|
723 |
NKern::FSSignal(&iSem);
|
|
724 |
}
|
|
725 |
|
|
726 |
|
|
727 |
TInt DSDIORegisterInterface::EngageSdio()
|
|
728 |
/**
|
|
729 |
Performs the operation, using a semaphore to create synchronous behaviour
|
|
730 |
|
|
731 |
@return KErrNone if successful, otherwise a standard Symbian OS error code.
|
|
732 |
*/
|
|
733 |
{
|
|
734 |
TInt err = KErrNone;
|
|
735 |
|
|
736 |
SYMBIAN_TRACE_SDIO_VERBOSE_ONLY(Printf(TTraceContext(EInternals), "DSDIORegisterInterface::EngageSdio, engaging the SDIO card")); // @SymTraceDataInternalTechnology
|
|
737 |
|
|
738 |
// Determine if there are any outstanding critical
|
|
739 |
// events (power down, media change etc..)
|
|
740 |
err = StackP()->MMCSocket()->InCritical();
|
|
741 |
if (err == KErrNone)
|
|
742 |
{
|
|
743 |
// Engage the session and wait on the response
|
|
744 |
|
|
745 |
// set the current thread as the owner - need to do this
|
|
746 |
// before the event can be signalled (which can happen in Engage())
|
|
747 |
if (iIsSync)
|
|
748 |
{
|
|
749 |
// check semaphore has not been signalled already (should never happen).
|
|
750 |
__ASSERT_ALWAYS(iSem.iCount == 0, DSDIORegisterInterface::Panic(DSDIORegisterInterface::ESemAlreadySignalled));
|
|
751 |
NKern::FSSetOwner(&iSem, NULL);
|
|
752 |
}
|
|
753 |
|
|
754 |
err = Engage();
|
|
755 |
if(err == KErrNone && iIsSync)
|
|
756 |
{
|
|
757 |
NKern::FSWait(&iSem);
|
|
758 |
|
|
759 |
err = iSessionErr;
|
|
760 |
|
|
761 |
if(CardP()->IsPresent() == EFalse)
|
|
762 |
{
|
|
763 |
err = KErrNotFound;
|
|
764 |
}
|
|
765 |
#if defined(SYMBIAN_TRACE_SDIO_DUMP)
|
|
766 |
DumpOpComplete();
|
|
767 |
#endif
|
|
768 |
}
|
|
769 |
|
|
770 |
if (iIsSync)
|
|
771 |
TRACE2(TTraceContext(EBorder), UTraceModuleEPBusSDIO::ESDIODSDIORegisterInterfaceOpComplete, reinterpret_cast<TUint32>(this), err); // @SymTraceDataPublishedTvk
|
|
772 |
}
|
|
773 |
else
|
|
774 |
{
|
|
775 |
if(!Kern::PowerGood())
|
|
776 |
{
|
|
777 |
err = KErrAbort;
|
|
778 |
}
|
|
779 |
|
|
780 |
if(CardP()->IsReady() == EFalse)
|
|
781 |
{
|
|
782 |
err = KErrNotReady;
|
|
783 |
}
|
|
784 |
}
|
|
785 |
|
|
786 |
StackP()->MMCSocket()->EndInCritical();
|
|
787 |
|
|
788 |
return(err);
|
|
789 |
}
|
|
790 |
|
|
791 |
void DSDIORegisterInterface::Lock()
|
|
792 |
/**
|
|
793 |
Lock the interface
|
|
794 |
*/
|
|
795 |
{
|
|
796 |
if(iMutexLock)
|
|
797 |
{
|
|
798 |
NKern::ThreadEnterCS();
|
|
799 |
__ASSERT_CRITICAL
|
|
800 |
Kern::MutexWait(*iMutexLock);
|
|
801 |
}
|
|
802 |
}
|
|
803 |
|
|
804 |
void DSDIORegisterInterface::Unlock()
|
|
805 |
/**
|
|
806 |
Unlock the interface
|
|
807 |
*/
|
|
808 |
{
|
|
809 |
if(iMutexLock)
|
|
810 |
{
|
|
811 |
Kern::MutexSignal(*iMutexLock);
|
|
812 |
NKern::ThreadLeaveCS();
|
|
813 |
}
|
|
814 |
}
|
|
815 |
|
|
816 |
void DSDIORegisterInterface::Panic(DSDIORegisterInterface::TPanic aPanic)
|
|
817 |
/**
|
|
818 |
Register Interface Panic
|
|
819 |
*/
|
|
820 |
{
|
|
821 |
Kern::Fault("SDIO_REGIFC", aPanic);
|
|
822 |
}
|
|
823 |
|
|
824 |
|
|
825 |
void DSDIORegisterInterface::TTraceData::Clear()
|
|
826 |
/**
|
|
827 |
Clear the trace data
|
|
828 |
*/
|
|
829 |
{
|
|
830 |
iData.iPtr = NULL;
|
|
831 |
iLength = 0;
|
|
832 |
iChunk = NULL;
|
|
833 |
iStartTickCount = NKern::FastCounter();
|
|
834 |
}
|
|
835 |
|
|
836 |
void DSDIORegisterInterface::TTraceData::Set(TUint8* aPtr, TUint32 aLength)
|
|
837 |
/**
|
|
838 |
Set the trace data for a byte buffer
|
|
839 |
*/
|
|
840 |
{
|
|
841 |
iData.iPtr = aPtr;
|
|
842 |
iLength = aLength;
|
|
843 |
iChunk = NULL;
|
|
844 |
iStartTickCount = NKern::FastCounter();
|
|
845 |
}
|
|
846 |
|
|
847 |
void DSDIORegisterInterface::TTraceData::Set(DChunk* aChunk, TUint32 aOffset, TUint32 aLength)
|
|
848 |
/**
|
|
849 |
Set the trace data for a DChunk buffer
|
|
850 |
*/
|
|
851 |
{
|
|
852 |
iChunk = aChunk;
|
|
853 |
iData.iOffset = aOffset;
|
|
854 |
iLength = aLength;
|
|
855 |
iStartTickCount = NKern::FastCounter();
|
|
856 |
}
|
|
857 |
|
|
858 |
DChunk* DSDIORegisterInterface::TTraceData::Chunk() const
|
|
859 |
/**
|
|
860 |
Return the chunk
|
|
861 |
*/
|
|
862 |
{
|
|
863 |
return iChunk;
|
|
864 |
}
|
|
865 |
|
|
866 |
TUint8* DSDIORegisterInterface::TTraceData::Ptr() const
|
|
867 |
/**
|
|
868 |
Return the byte buffer
|
|
869 |
*/
|
|
870 |
{
|
|
871 |
return iData.iPtr;
|
|
872 |
}
|
|
873 |
|
|
874 |
TUint32 DSDIORegisterInterface::TTraceData::Offset() const
|
|
875 |
/**
|
|
876 |
Return the chunk offset
|
|
877 |
*/
|
|
878 |
{
|
|
879 |
return iData.iOffset;
|
|
880 |
}
|
|
881 |
|
|
882 |
TUint32 DSDIORegisterInterface::TTraceData::Length() const
|
|
883 |
/**
|
|
884 |
Return the data buffer length
|
|
885 |
*/
|
|
886 |
{
|
|
887 |
return iLength;
|
|
888 |
}
|
|
889 |
|
|
890 |
TUint32 DSDIORegisterInterface::TTraceData::TickCount() const
|
|
891 |
/**
|
|
892 |
Return the Tick count since the trace data was set
|
|
893 |
*/
|
|
894 |
{
|
|
895 |
return NKern::FastCounter() - iStartTickCount;
|
|
896 |
}
|
|
897 |
|