kernel/eka/include/drivers/mmc.inl
changeset 139 95f71bcdcdb7
parent 33 0173bcd7697c
child 244 a77889bee936
--- a/kernel/eka/include/drivers/mmc.inl	Fri May 14 17:13:29 2010 +0300
+++ b/kernel/eka/include/drivers/mmc.inl	Thu May 27 14:17:14 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.