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
#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
#include <Library/UefiRuntimeServicesTableLib.h>\r
\r
#include "SdBlockIo.h"\r
+#include "SdDiskInfo.h"\r
+\r
//\r
// Global Variables\r
//\r
#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
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