Update contrib.
1 // Copyright (c) 1998-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32\include\drivers\pccd_chunk.h
24 #ifndef __PCCD_CHUNK_H__
25 #define __PCCD_CHUNK_H__
28 const TUint KPccdChunkByteAccessOnly=0x00000001;
30 NONSHARABLE_CLASS(DPlatPccdChunk) : public DPccdChunkBase
34 virtual ~DPlatPccdChunk();
36 virtual TInt DoCreate(TPccdChnk aChunk,TUint aFlag);
37 virtual TInt SetupChunkHw(TPccdAccessSpeed aSpeed,TPccdMemType aMemType,TBool aWaitSig,TUint aFlag);
38 virtual TLinAddr LinearAddress();
39 virtual TInt Read(TInt aPos, TAny *aPtr, TInt aLength);
40 virtual TInt Write(TInt aPos, const TAny *aPtr, TInt aLength);
41 virtual TInt ReadByteMultiple(TInt aPos, TAny *aPtr, TInt aCount);
42 virtual TInt WriteByteMultiple(TInt aPos, const TAny *aPtr, TInt aCount);
43 virtual TInt ReadHWordMultiple(TInt aPos, TAny *aPtr, TInt aCount);
44 virtual TInt WriteHWordMultiple(TInt aPos, const TAny *aPtr, TInt aCount);
45 virtual TUint Read8(TInt aPos);
46 virtual void Write8(TInt aPos, TUint aValue);
47 virtual TBool IsTypeCompatible(TPccdMemType aMemType);
49 void ConfigAccessSpeed(TPccdAccessSpeed aSpeed,TBool aWordAccess,TUint aFlag);