os/kernelhwsrv/kernel/eka/include/drivers/pccd_chunk.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// e32\include\drivers\pccd_chunk.h
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
/**
sl@0
    19
 @file
sl@0
    20
 @publishedPartner
sl@0
    21
 @released
sl@0
    22
*/
sl@0
    23
sl@0
    24
#ifndef __PCCD_CHUNK_H__
sl@0
    25
#define __PCCD_CHUNK_H__
sl@0
    26
#include <pccd_ifc.h>
sl@0
    27
sl@0
    28
const TUint KPccdChunkByteAccessOnly=0x00000001;
sl@0
    29
sl@0
    30
NONSHARABLE_CLASS(DPlatPccdChunk) : public DPccdChunkBase
sl@0
    31
	{
sl@0
    32
public:
sl@0
    33
	DPlatPccdChunk();
sl@0
    34
	virtual ~DPlatPccdChunk();
sl@0
    35
	virtual void Close();
sl@0
    36
	virtual TInt DoCreate(TPccdChnk aChunk,TUint aFlag);
sl@0
    37
	virtual TInt SetupChunkHw(TPccdAccessSpeed aSpeed,TPccdMemType aMemType,TBool aWaitSig,TUint aFlag);
sl@0
    38
	virtual TLinAddr LinearAddress();
sl@0
    39
	virtual TInt Read(TInt aPos, TAny *aPtr, TInt aLength);
sl@0
    40
	virtual TInt Write(TInt aPos, const TAny *aPtr, TInt aLength);
sl@0
    41
	virtual TInt ReadByteMultiple(TInt aPos, TAny *aPtr, TInt aCount);
sl@0
    42
	virtual TInt WriteByteMultiple(TInt aPos, const TAny *aPtr, TInt aCount);
sl@0
    43
	virtual TInt ReadHWordMultiple(TInt aPos, TAny *aPtr, TInt aCount);
sl@0
    44
	virtual TInt WriteHWordMultiple(TInt aPos, const TAny *aPtr, TInt aCount);
sl@0
    45
	virtual TUint Read8(TInt aPos);
sl@0
    46
	virtual void Write8(TInt aPos, TUint aValue);
sl@0
    47
	virtual TBool IsTypeCompatible(TPccdMemType aMemType);
sl@0
    48
public:
sl@0
    49
	void ConfigAccessSpeed(TPccdAccessSpeed aSpeed,TBool aWordAccess,TUint aFlag);
sl@0
    50
public:
sl@0
    51
	DPlatChunkHw *iChunk;
sl@0
    52
	TUint iFlag;
sl@0
    53
	};
sl@0
    54
sl@0
    55
#endif
sl@0
    56
sl@0
    57