kernel/eka/include/drivers/usbcsc.h
changeset 247 d8d70de2bd36
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
201:43365a9b78a3 247:d8d70de2bd36
     1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2000-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".
   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;
       
   239 
   238 
   240 	TInt8 iPageNtz; // Number of trailing zeros for a page. (Eg 4k page has 12 t.z.)
   239 	TInt8 iPageNtz; // Number of trailing zeros for a page. (Eg 4k page has 12 t.z.)
   241 	TInt iAllocatedSize;
   240 	TInt iAllocatedSize;
   242 	TInt8* iChunkMem;
   241 	TInt8* iChunkMem;
   243 	TUint32 iChunkMapAttr;
   242 	TUint32 iChunkMapAttr;
   413 	void Pop();
   412 	void Pop();
   414 	TInt Add(TRequestStatus* aStatus, TInt aLength, TUint aStart, TUint aFlags);
   413 	TInt Add(TRequestStatus* aStatus, TInt aLength, TUint aStart, TUint aFlags);
   415 	void CancelQueued(TInt aErrorCode=KErrCancel);
   414 	void CancelQueued(TInt aErrorCode=KErrCancel);
   416 	TInt Complete(TInt aError);
   415 	TInt Complete(TInt aError);
   417 	void Complete();
   416 	void Complete();
       
   417 	void SetClient(DThread& aThread);
       
   418 	TBool IsRequestPending();
   418 public:
   419 public:
   419 	TUsbcScStatusState iState;
   420 	TUsbcScStatusState iState;
   420 
   421 
   421 private:
   422 private:
   422 	DThread* iClient;
   423 	DThread* iClient;
   455 	void Cancel(TInt aErrorCode);
   456 	void Cancel(TInt aErrorCode);
   456 
   457 
   457 	void UpdateBufferList(TInt aByteCount,TUint aFlags, TBool aStartNextRead=ETrue);
   458 	void UpdateBufferList(TInt aByteCount,TUint aFlags, TBool aStartNextRead=ETrue);
   458 	void Ep0CancelLddRead();
   459 	void Ep0CancelLddRead();
   459 	void SendEp0StatusPacket(TInt aState);
   460 	void SendEp0StatusPacket(TInt aState);
       
   461 	TBool IsRequestPending();
   460 
   462 
   461 public:
   463 public:
   462 	
   464 	
   463 	TInt8 iDirection;
   465 	TInt8 iDirection;
   464 	TInt8 iMode;
   466 	TInt8 iMode;