kernel/eka/include/drivers/pccd_chunk.h
changeset 9 96e5fb8b040d
equal deleted inserted replaced
-1:000000000000 9:96e5fb8b040d
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32\include\drivers\pccd_chunk.h
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @publishedPartner
       
    21  @released
       
    22 */
       
    23 
       
    24 #ifndef __PCCD_CHUNK_H__
       
    25 #define __PCCD_CHUNK_H__
       
    26 #include <pccd_ifc.h>
       
    27 
       
    28 const TUint KPccdChunkByteAccessOnly=0x00000001;
       
    29 
       
    30 NONSHARABLE_CLASS(DPlatPccdChunk) : public DPccdChunkBase
       
    31 	{
       
    32 public:
       
    33 	DPlatPccdChunk();
       
    34 	virtual ~DPlatPccdChunk();
       
    35 	virtual void Close();
       
    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);
       
    48 public:
       
    49 	void ConfigAccessSpeed(TPccdAccessSpeed aSpeed,TBool aWordAccess,TUint aFlag);
       
    50 public:
       
    51 	DPlatChunkHw *iChunk;
       
    52 	TUint iFlag;
       
    53 	};
       
    54 
       
    55 #endif
       
    56 
       
    57