os/kernelhwsrv/kernel/eka/include/drivers/sdcard.inl
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/include/drivers/sdcard.inl	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,77 @@
     1.4 +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// 
    1.18 +//
    1.19 +
    1.20 +/**
    1.21 + @file
    1.22 + @internalComponent
    1.23 +*/
    1.24 +
    1.25 +#ifndef __SDCARD_INL__
    1.26 +#define __SDCARD_INL__
    1.27 +
    1.28 +// ======== TSDCSD ========
    1.29 +
    1.30 +inline TSDCSD::TSDCSD(const TCSD& aCSD) : TCSD(aCSD.iData)
    1.31 +	{ /* empty */ }
    1.32 +
    1.33 +inline TBool TSDCSD::SDEraseBlkEn() const		{return( CSDField(46,46) );}
    1.34 +inline TBool TSDCSD::SDSectorSize() const		{return( CSDField(45,39) );}
    1.35 +inline TBool TSDCSD::SDWPGrpSize() const		{return( CSDField(38,32) );}
    1.36 +
    1.37 +// ======== TSDCard ========
    1.38 +
    1.39 +inline TBool TSDCard::IsSDCard() const					{return(iFlags&KSDCardIsSDCard);}
    1.40 +
    1.41 +inline TUint32 TSDCard::ProtectedAreaSize() const		{return(iProtectedAreaSize);}
    1.42 +inline void TSDCard::SetProtectedAreaSize(TUint32 aPAS)	{iProtectedAreaSize=aPAS;}
    1.43 +inline void TSDCard::SetAUSize(TUint8 aAU)	{iAUSize=aAU;}
    1.44 +inline TUint8 TSDCard::GetAUSize() const		{return(iAUSize);}
    1.45 +
    1.46 +
    1.47 +inline TUint32 TSDCard::PARootDirEnd() const			{return iPARootDirEnd;}
    1.48 +inline void TSDCard::SetPARootDirEnd(TUint32 aPARootDirEnd)	{iPARootDirEnd=aPARootDirEnd;}
    1.49 +
    1.50 +// ======== TSDCardArray ========
    1.51 +
    1.52 +inline TSDCardArray::TSDCardArray(DSDStack* aOwningStack) : TMMCardArray(aOwningStack)
    1.53 +	{ /* empty */ }
    1.54 +
    1.55 +inline TSDCard& TSDCardArray::Card(TUint aCardNumber) const
    1.56 +	{ return *static_cast<TSDCard*>(iCards[aCardNumber]); }
    1.57 +
    1.58 +inline TSDCard& TSDCardArray::NewCard(TUint aCardNumber) const
    1.59 +	{ return *static_cast<TSDCard*>(iNewCards[aCardNumber]); }
    1.60 +
    1.61 +// ========= DSDStack ========
    1.62 +
    1.63 +inline DSDStack::DSDStack(TInt aBus, DMMCSocket* aSocket)
    1.64 +:	DMMCStack(aBus, aSocket)
    1.65 +	{ iMultiplexedBus = ETrue; }
    1.66 +
    1.67 +inline TSDCardArray& DSDStack::CardArray() const
    1.68 +	{ return *static_cast<TSDCardArray*>(iCardArray); }
    1.69 +
    1.70 +inline TMMCErr DSDStack::BaseModifyCardCapabilitySMST( TAny* aStackP )
    1.71 +	{ return( static_cast<DSDStack *>(aStackP)->DSDStack::ModifyCardCapabilitySM() ); }
    1.72 +
    1.73 +// ========= DSDSession ========
    1.74 +
    1.75 +inline DSDSession::DSDSession(const TMMCCallBack& aCallBack)
    1.76 +:	DMMCSession(aCallBack)
    1.77 +	{ /* empty */ }
    1.78 +
    1.79 +#endif	// #ifndef __SDCARD_INL__
    1.80 +