#ifndef _MMCHS_H_\r
#define _MMCHS_H_\r
\r
-#include <Library/BaseLib.h>
-#include <Library/MemoryAllocationLib.h>
-#include <Library/DebugLib.h>
-#include <Library/IoLib.h>
-#include <Library/PcdLib.h>
-#include <Library/UefiBootServicesTableLib.h>
-#include <Library/BaseMemoryLib.h>
-
+#include <Uefi.h>\r
+\r
+#include <Library/BaseLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/IoLib.h>\r
+#include <Library/PcdLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/OmapLib.h>\r
+#include <Library/OmapDmaLib.h>\r
+#include <Library/DmaLib.h>\r
+\r
#include <Protocol/EmbeddedExternalDevice.h>\r
-#include <Protocol/BlockIo.h>
-#include <Protocol/DevicePath.h>
-
+#include <Protocol/BlockIo.h>\r
+#include <Protocol/DevicePath.h>\r
+\r
#include <Omap3530/Omap3530.h>\r
#include <TPS65950.h>\r
\r
-#define MAX_RETRY_COUNT (100*5)
-
+#define MAX_RETRY_COUNT (100*5)\r
+\r
#define HCS BIT30 //Host capacity support/1 = Supporting high capacity\r
#define CCS BIT30 //Card capacity status/1 = High capacity card\r
typedef struct {\r
UINT8 CSD_STRUCTURE: 2; // CSD structure [127:126]\r
}CSD_SDV2;\r
\r
-typedef enum {
- UNKNOWN_CARD,
- MMC_CARD, //MMC card
- SD_CARD, //SD 1.1 card
- SD_CARD_2, //SD 2.0 or above standard card
- SD_CARD_2_HIGH //SD 2.0 or above high capacity card
+typedef enum {\r
+ UNKNOWN_CARD,\r
+ MMC_CARD, //MMC card\r
+ SD_CARD, //SD 1.1 card\r
+ SD_CARD_2, //SD 2.0 or above standard card\r
+ SD_CARD_2_HIGH //SD 2.0 or above high capacity card\r
} CARD_TYPE;\r
\r
typedef enum {\r
CSD CSDData;\r
} CARD_INFO;\r
\r
-EFI_STATUS
-DetectCard (
- VOID
+EFI_STATUS\r
+DetectCard (\r
+ VOID\r
);\r
\r
extern EFI_BLOCK_IO_PROTOCOL gBlockIo;\r