sl@0: // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32\include\drivers\pccard.inl sl@0: // sl@0: // WARNING: This file contains some APIs which are internal and are subject sl@0: // to change without noticed. Such APIs should therefore not be used sl@0: // outside the Kernel and Hardware Services package. sl@0: // sl@0: sl@0: // Class DPcCardSocket sl@0: inline TInt DPcCardSocket::CardFuncCount() sl@0: {return(iCardFuncArray.Count());} sl@0: inline TBool DPcCardSocket::IsValidCardFunc(TInt aCardFunc) sl@0: {return(aCardFunc0);} sl@0: inline TBool DPcCardSocket::IsMultiFuncCard() sl@0: {return(CardFuncCount()>1);} sl@0: sl@0: // Class TPcCardFunction sl@0: inline void TPcCardFunction::SetConfigBaseAddr(TUint32 anAddr) sl@0: {iConfigBaseAddr=anAddr;} sl@0: inline void TPcCardFunction::SetConfigRegMask(TInt aMask) sl@0: {iConfigRegMask=aMask;} sl@0: inline void TPcCardFunction::SetFuncType(TPccdFuncType aType) sl@0: {iFuncType=aType;} sl@0: inline TPccdFuncType TPcCardFunction::FuncType() sl@0: {return(iFuncType);} sl@0: inline TInt TPcCardFunction::ConfigOption() sl@0: {return(iConfigIndex);} sl@0: inline TBool TPcCardFunction::IsConfigured() sl@0: {return(iConfigIndex!=KInvalidConfOpt);} sl@0: inline TBool TPcCardFunction::IsConfiguredByClient(DBase *aClientID) sl@0: {return(IsConfigured()&&iClientID==aClientID);} sl@0: inline TBool TPcCardFunction::IsRestorableConfig() sl@0: {return(iConfigFlags&KPccdConfigRestorable);} sl@0: inline TUint32 TPcCardFunction::InitCisOffset() sl@0: {return(iInitCisOffset);} sl@0: inline TPccdMemType TPcCardFunction::InitCisMemType() sl@0: {return(iInitCisMemType);} sl@0: sl@0: // Class DPcCardVcc sl@0: inline void DPcCardVcc::SetVoltage(TPccdSocketVcc aVoltage) sl@0: {iVoltageSetting=aVoltage;} sl@0: inline TPccdSocketVcc DPcCardVcc::VoltageSetting() sl@0: {return(iVoltageSetting);} sl@0: sl@0: // Class DPccdChunkBase sl@0: inline TUint32 DPccdChunkBase::BaseAddr() sl@0: {return(iChnk.iMemBaseAddr);} sl@0: sl@0: // Class RPccdWindow sl@0: inline TInt RPccdWindow::Read(TInt aPos,TAny *aPtr,TInt aLength) sl@0: {return(iChunk->Read(aPos+iOffset,aPtr,aLength));} sl@0: inline TInt RPccdWindow::Write(TInt aPos,const TAny *aPtr,TInt aLength) sl@0: {return(iChunk->Write(aPos+iOffset,aPtr,aLength));} sl@0: inline TInt RPccdWindow::ReadByteMultiple(TInt aPos,TAny *aPtr,TInt aCount) sl@0: {return(iChunk->ReadByteMultiple(aPos+iOffset,aPtr,aCount));} sl@0: inline TInt RPccdWindow::WriteByteMultiple(TInt aPos,const TAny *aPtr,TInt aCount) sl@0: {return(iChunk->WriteByteMultiple(aPos+iOffset,aPtr,aCount));} sl@0: inline TInt RPccdWindow::ReadHWordMultiple(TInt aPos,TAny *aPtr,TInt aCount) sl@0: {return(iChunk->ReadHWordMultiple(aPos+iOffset,aPtr,aCount));} sl@0: inline TInt RPccdWindow::WriteHWordMultiple(TInt aPos,const TAny *aPtr,TInt aCount) sl@0: {return(iChunk->WriteHWordMultiple(aPos+iOffset,aPtr,aCount));} sl@0: inline TUint RPccdWindow::Read8(TInt aPos) sl@0: {return iChunk->Read8(aPos);} sl@0: inline void RPccdWindow::Write8(TInt aPos, TUint aValue) sl@0: {iChunk->Write8(aPos,aValue);} sl@0: inline void RPccdWindow::SetAccessSpeed(TPccdAccessSpeed aSpeed) sl@0: {iAccessSpeed=aSpeed;} sl@0: inline TBool RPccdWindow::IsPermanent() sl@0: {return(iType&KPccdChunkPermanent);} sl@0: inline TBool RPccdWindow::IsShareable() sl@0: {return(iType&KPccdChunkShared);} sl@0: inline TBool RPccdWindow::IsSystemOwned() sl@0: {return(iType&KPccdChunkSystemOwned);} sl@0: