]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Sd/SdDxe/SdDxe.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Bus / Sd / SdDxe / SdDxe.h
index ca1609e900d07cee0cda27b2bb23c1a1ebaf4eb0..d23f5a07a511fdd06c03c0ed04370fdd6759208f 100644 (file)
@@ -4,14 +4,8 @@
   This file defines common data structures, macro definitions and some module\r
   internal function header files.\r
 \r
-  Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\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
+  Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -24,6 +18,8 @@
 #include <Protocol/SdMmcPassThru.h>\r
 #include <Protocol/BlockIo.h>\r
 #include <Protocol/BlockIo2.h>\r
+#include <Protocol/EraseBlock.h>\r
+#include <Protocol/DiskInfo.h>\r
 \r
 #include <Protocol/DevicePath.h>\r
 \r
@@ -38,6 +34,8 @@
 #include <Library/UefiRuntimeServicesTableLib.h>\r
 \r
 #include "SdBlockIo.h"\r
+#include "SdDiskInfo.h"\r
+\r
 //\r
 // Global Variables\r
 //\r
@@ -53,6 +51,12 @@ extern EFI_COMPONENT_NAME2_PROTOCOL     gSdDxeComponentName2;
 #define SD_DEVICE_DATA_FROM_BLKIO2(a) \\r
     CR(a, SD_DEVICE, BlockIo2, SD_DEVICE_SIGNATURE)\r
 \r
+#define SD_DEVICE_DATA_FROM_ERASEBLK(a) \\r
+    CR(a, SD_DEVICE, EraseBlock, SD_DEVICE_SIGNATURE)\r
+\r
+#define SD_DEVICE_DATA_FROM_DISKINFO(a) \\r
+    CR(a, SD_DEVICE, DiskInfo, SD_DEVICE_SIGNATURE)\r
+\r
 //\r
 // Take 2.5 seconds as generic time out value, 1 microsecond as unit.\r
 //\r
@@ -95,6 +99,8 @@ struct _SD_DEVICE {
   EFI_BLOCK_IO_PROTOCOL                 BlockIo;\r
   EFI_BLOCK_IO2_PROTOCOL                BlockIo2;\r
   EFI_BLOCK_IO_MEDIA                    BlockMedia;\r
+  EFI_ERASE_BLOCK_PROTOCOL              EraseBlock;\r
+  EFI_DISK_INFO_PROTOCOL                DiskInfo;\r
 \r
   LIST_ENTRY                            Queue;\r
 \r