]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Universal/MmcDxe/Mmc.h
EmbeddedPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / EmbeddedPkg / Universal / MmcDxe / Mmc.h
index 8a7d5a3de32b1898967cee6a130a9fece1512bbc..58027973ffff78d8a14e7087f4521f47055ff7cf 100644 (file)
@@ -3,13 +3,7 @@
 \r
   Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
 \r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
 #define EMMC_CMD6_ARG_VALUE(x)              (((x) & 0xFF) << 8)\r
 #define EMMC_CMD6_ARG_CMD_SET(x)            (((x) & 0x7) << 0)\r
 \r
+#define SWITCH_CMD_DATA_LENGTH              64\r
+#define SD_HIGH_SPEED_SUPPORTED             0x20000\r
+#define SD_DEFAULT_SPEED                    25000000\r
+#define SD_HIGH_SPEED                       50000000\r
+#define SWITCH_CMD_SUCCESS_MASK             0x0f000000\r
+\r
+#define SD_CARD_CAPACITY                    0x00000002\r
+\r
+#define BUSWIDTH_4                          4\r
+\r
 typedef enum {\r
   UNKNOWN_CARD,\r
   MMC_CARD,              //MMC card\r
@@ -319,7 +323,7 @@ typedef struct  {
   OCR       OCRData;\r
   CID       CIDData;\r
   CSD       CSDData;\r
-  ECSD      ECSDData;                         // MMC V4 extended card specific\r
+  ECSD      *ECSDData;                         // MMC V4 extended card specific\r
 } CARD_INFO;\r
 \r
 typedef struct _MMC_HOST_INSTANCE {\r