equal
deleted
inserted
replaced
1 // Copyright (c) 2000-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2000-2009 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". |
233 static TInt New(TUsbcScChunkInfo*& aChunk, TInt aSize, DLogicalDevice* aLdd); |
233 static TInt New(TUsbcScChunkInfo*& aChunk, TInt aSize, DLogicalDevice* aLdd); |
234 private: |
234 private: |
235 TUint* iPhysicalMap; |
235 TUint* iPhysicalMap; |
236 public: |
236 public: |
237 DChunk* iChunk; |
237 DChunk* iChunk; |
|
238 TDfc iCleanup; |
238 |
239 |
239 TInt8 iPageNtz; // Number of trailing zeros for a page. (Eg 4k page has 12 t.z.) |
240 TInt8 iPageNtz; // Number of trailing zeros for a page. (Eg 4k page has 12 t.z.) |
240 TInt iAllocatedSize; |
241 TInt iAllocatedSize; |
241 TInt8* iChunkMem; |
242 TInt8* iChunkMem; |
242 TUint32 iChunkMapAttr; |
243 TUint32 iChunkMapAttr; |
412 void Pop(); |
413 void Pop(); |
413 TInt Add(TRequestStatus* aStatus, TInt aLength, TUint aStart, TUint aFlags); |
414 TInt Add(TRequestStatus* aStatus, TInt aLength, TUint aStart, TUint aFlags); |
414 void CancelQueued(TInt aErrorCode=KErrCancel); |
415 void CancelQueued(TInt aErrorCode=KErrCancel); |
415 TInt Complete(TInt aError); |
416 TInt Complete(TInt aError); |
416 void Complete(); |
417 void Complete(); |
417 void SetClient(DThread& aThread); |
|
418 TBool IsRequestPending(); |
|
419 public: |
418 public: |
420 TUsbcScStatusState iState; |
419 TUsbcScStatusState iState; |
421 |
420 |
422 private: |
421 private: |
423 DThread* iClient; |
422 DThread* iClient; |
456 void Cancel(TInt aErrorCode); |
455 void Cancel(TInt aErrorCode); |
457 |
456 |
458 void UpdateBufferList(TInt aByteCount,TUint aFlags, TBool aStartNextRead=ETrue); |
457 void UpdateBufferList(TInt aByteCount,TUint aFlags, TBool aStartNextRead=ETrue); |
459 void Ep0CancelLddRead(); |
458 void Ep0CancelLddRead(); |
460 void SendEp0StatusPacket(TInt aState); |
459 void SendEp0StatusPacket(TInt aState); |
461 TBool IsRequestPending(); |
|
462 |
460 |
463 public: |
461 public: |
464 |
462 |
465 TInt8 iDirection; |
463 TInt8 iDirection; |
466 TInt8 iMode; |
464 TInt8 iMode; |