kernel/eka/include/drivers/sdcard.h
changeset 140 2ac1c5c27758
parent 90 947f0dc9f7a8
child 244 a77889bee936
equal deleted inserted replaced
135:5e441a173c63 140:2ac1c5c27758
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    42 const TUint32 KSDSwitchFuncLength		 = 0x40;
    42 const TUint32 KSDSwitchFuncLength		 = 0x40;
    43 const TUint32 KSDCheckFunctionHighSpeed	 = 0x00FFFF01;
    43 const TUint32 KSDCheckFunctionHighSpeed	 = 0x00FFFF01;
    44 const TUint32 KSDSwitchFunctionHighSpeed = 0x80FFFF01;
    44 const TUint32 KSDSwitchFunctionHighSpeed = 0x80FFFF01;
    45 
    45 
    46 const TUint32 KSDCardIsSDCard			 = KBit16;	// KMMCardFirstCustomFlag
    46 const TUint32 KSDCardIsSDCard			 = KBit16;	// KMMCardFirstCustomFlag
       
    47 const TUint32 KSDCardIsCorrupt           = KBit17;
    47 const TUint32 KSDCardFirstCustomFlag	 = KBit24;
    48 const TUint32 KSDCardFirstCustomFlag	 = KBit24;
    48 
    49 
    49 const TUint   KSDDTClk25MHz				 = 25000; //25000KHz
    50 const TUint   KSDDTClk25MHz				 = 25000; //25000KHz
    50 const TUint   KSDDTClk50MHz				 = 50000; //50000KHz
    51 const TUint   KSDDTClk50MHz				 = 50000; //50000KHz
    51 
    52 
    79 	virtual TInt64 DeviceSize64() const;
    80 	virtual TInt64 DeviceSize64() const;
    80 	enum {KPARootDirEndUnknown = 0};
    81 	enum {KPARootDirEndUnknown = 0};
    81 	inline TUint32 PARootDirEnd() const;
    82 	inline TUint32 PARootDirEnd() const;
    82 	inline void SetPARootDirEnd(TUint32 aPARootDirEnd);
    83 	inline void SetPARootDirEnd(TUint32 aPARootDirEnd);
    83 	virtual TUint MaxTranSpeedInKilohertz() const;
    84 	virtual TUint MaxTranSpeedInKilohertz() const;
       
    85 	inline void RegisterClient();
       
    86 	inline void DeregisterClient();
       
    87 	inline TBool ClientsRegistered();
    84 private:
    88 private:
    85 	TUint32 iProtectedAreaSize;
    89 	TUint32 iProtectedAreaSize;
    86 	TUint32 iPARootDirEnd;
    90 	TUint32 iPARootDirEnd;
    87 	TUint8	iAUSize;
    91 	TUint8	iAUSize;
    88 	TUint8 iPad[3];
    92 	TUint8 iPad[3];
    89 	TUint32 iSpare[4];
    93 	TUint32 iClientCountSD;
       
    94 	TUint32 iSpare[3];
    90 	};
    95 	};
    91 
    96 
    92 class TSDCardArray : public TMMCardArray
    97 class TSDCardArray : public TMMCardArray
    93 	{
    98 	{
    94 public:
    99 public: