kernel/eka/include/drivers/sdcard.h
branchRCL_3
changeset 19 4a8fed1c0ef6
parent 0 a41df078684a
child 22 2f92ad2dc5db
equal deleted inserted replaced
15:2d65c2f76d7b 19:4a8fed1c0ef6
   149 	
   149 	
   150 	IMPORT_C virtual TInt Init();
   150 	IMPORT_C virtual TInt Init();
   151 	IMPORT_C virtual TMMCErr AcquireStackSM();
   151 	IMPORT_C virtual TMMCErr AcquireStackSM();
   152 	IMPORT_C virtual TMMCErr CIMReadWriteBlocksSM();
   152 	IMPORT_C virtual TMMCErr CIMReadWriteBlocksSM();
   153 	IMPORT_C virtual DMMCSession* AllocSession(const TMMCCallBack& aCallBack) const;
   153 	IMPORT_C virtual DMMCSession* AllocSession(const TMMCCallBack& aCallBack) const;
   154 
   154 	
   155 	virtual void AddressCard(TInt aCardNumber) = 0;
   155 	virtual void AddressCard(TInt aCardNumber) = 0;
   156 
   156 
   157 	inline TSDCardArray& CardArray() const;
   157 	inline TSDCardArray& CardArray() const;
   158 
   158 
   159 protected:
   159 protected:
   173 	static TMMCErr SwitchToHighSpeedModeSMST(TAny* aStackP);
   173 	static TMMCErr SwitchToHighSpeedModeSMST(TAny* aStackP);
   174     TMMCErr SwitchToHighSpeedModeSM();
   174     TMMCErr SwitchToHighSpeedModeSM();
   175 
   175 
   176 private:
   176 private:
   177 	TInt iSpare;
   177 	TInt iSpare;
       
   178 protected:
   178 	enum TSDCardType {ESDCardTypeUnknown, ESDCardTypeIsMMC, ESDCardTypeIsSD};
   179 	enum TSDCardType {ESDCardTypeUnknown, ESDCardTypeIsMMC, ESDCardTypeIsSD};
   179 	TSDCardType iCxCardType; 			// Used when detecting whether an SD Memory card is present.
   180 	TSDCardType iCxCardType; 			// Used when detecting whether an SD Memory card is present.
       
   181 private:
   180 	TUint8 iACMD22[KSDACMD22BlockLen];
   182 	TUint8 iACMD22[KSDACMD22BlockLen];
   181 
   183 
   182 private:
   184 private:
   183     //
   185     //
   184     // Dummy functions to maintain binary compatibility
   186     // Dummy functions to maintain binary compatibility
   185     IMPORT_C virtual void Dummy1();
   187     IMPORT_C virtual void Dummy1();
   186     IMPORT_C virtual void Dummy2();
   188     IMPORT_C virtual void Dummy2();
   187     IMPORT_C virtual void Dummy3();
   189     IMPORT_C virtual void Dummy3();
   188     IMPORT_C virtual void Dummy4();
   190 
       
   191 public: 
       
   192     IMPORT_C virtual DSDStack::TSDCardType CardType(TInt aSocket, TInt aCardNumber);
       
   193 
       
   194 private:    
   189     //
   195     //
   190     // Reserved members to maintain binary compatibility
   196     // Reserved members to maintain binary compatibility
   191     TInt iReserved[68];
   197     TInt iReserved[68];
   192 	};
   198 	};
   193 
   199