kernel/eka/include/drivers/mmc.inl
branchRCL_3
changeset 110 c734af59ce98
parent 33 0173bcd7697c
child 244 a77889bee936
--- a/kernel/eka/include/drivers/mmc.inl	Tue Apr 27 18:02:57 2010 +0300
+++ b/kernel/eka/include/drivers/mmc.inl	Tue May 11 17:28:22 2010 +0300
@@ -190,6 +190,19 @@
 inline TUint TExtendedCSD::BootBusWidth() const {return iData[EBootBusWidthIndex];}
 inline TUint TExtendedCSD::EraseGroupDef() const {return iData[EEraseGroupDefIndex];}
 
+/*
+ * MMC v4.3 specification states the only valid values for CardType are 0x01 or 0x03
+ */
+inline TBool TExtendedCSD::IsSupportedCardType() const        
+        {
+        switch (CardType()&ECardTypeMsk)
+            {
+            case 0x01:
+            case 0x03: return ETrue;
+            default: return EFalse;
+            }
+        }
+
 //	--------  class TMMCStatus  --------
  /**
  * Constructor for TMMCStatus.