-#/** @file\r
-# Component name for module UsbMassStorage\r
+## @file\r
+# USB Mass Storage Driver that manages USB mass storage devices and produces Block I/O Protocol.\r
#\r
-# Copyright (c) 2006, Intel Corporation. All right reserved.\r
+# The USB mass storage class is specified in two layers: the bottom layer\r
+# is the transportation protocol. The top layer is the command set.\r
+# The transportation layer provides the transportation of the command, data and result.\r
+# The command set defines the command, data and result.\r
+# The Bulk-Only-Transport and Control/Bulk/Interrupt transport are two transportation protocol.\r
+# USB mass storage class adopts various industrial standard as its command set.\r
+# This module refers to following specifications:\r
+# 1. USB Mass Storage Specification for Bootability, Revision 1.0\r
+# 2. USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport, Revision 1.1\r
+# 3. USB Mass Storage Class Bulk-Only Transport, Revision 1.0.\r
+# 4. UEFI Specification, v2.1\r
#\r
-# All rights reserved. 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
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\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
+##\r
\r
-################################################################################\r
-#\r
-# Defines Section - statements that will be processed to create a Makefile.\r
-#\r
-################################################################################\r
[Defines]\r
INF_VERSION = 0x00010005\r
BASE_NAME = UsbMassStorageDxe\r
+ MODULE_UNI_FILE = UsbMassStorageDxe.uni\r
FILE_GUID = 9FB4B4A7-42C0-4bcd-8540-9BCC6711F83E\r
- MODULE_TYPE = DXE_DRIVER\r
+ MODULE_TYPE = UEFI_DRIVER\r
VERSION_STRING = 1.0\r
- EDK_RELEASE_VERSION = 0x00020000\r
- EFI_SPECIFICATION_VERSION = 0x00020000\r
-\r
ENTRY_POINT = USBMassStorageEntryPoint\r
\r
#\r
# The following information is for reference only and not required by the build tools.\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
-#\r
-\r
-################################################################################\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
#\r
-# Sources Section - list of files that are required for the build to succeed.\r
+# DRIVER_BINDING = gUSBMassDriverBinding\r
+# COMPONENT_NAME = gUsbMassStorageComponentName\r
+# COMPONENT_NAME2 = gUsbMassStorageComponentName2\r
#\r
-################################################################################\r
\r
-[Sources.common]\r
+[Sources]\r
UsbMassBoot.h\r
UsbMassImpl.h\r
UsbMassBot.h\r
UsbMassCbi.h\r
UsbMass.h\r
UsbMassCbi.c\r
-\r
-################################################################################\r
-#\r
-# Package Dependency Section - list of Package files that are required for\r
-# this module.\r
-#\r
-################################################################################\r
+ UsbMassDiskInfo.h\r
+ UsbMassDiskInfo.c\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
\r
-################################################################################\r
-#\r
-# Library Class Section - list of Library Classes that are required for\r
-# this module.\r
-#\r
-################################################################################\r
-\r
[LibraryClasses]\r
+ BaseLib\r
MemoryAllocationLib\r
UefiLib\r
UefiBootServicesTableLib\r
UefiDriverEntryPoint\r
BaseMemoryLib\r
DebugLib\r
+ DevicePathLib\r
\r
\r
-################################################################################\r
-#\r
-# Protocol C Name Section - list of Protocol and Protocol Notify C Names\r
-# that this module uses or produces.\r
-#\r
-################################################################################\r
-\r
[Protocols]\r
- gEfiUsbIoProtocolGuid # PROTOCOL ALWAYS_CONSUMED\r
- gEfiBlockIoProtocolGuid # PROTOCOL ALWAYS_CONSUMED\r
+ gEfiUsbIoProtocolGuid ## TO_START\r
+ gEfiDevicePathProtocolGuid ## TO_START\r
+ gEfiBlockIoProtocolGuid ## BY_START\r
+ gEfiDiskInfoProtocolGuid ## BY_START\r
+\r
+# [Event]\r
+# EVENT_TYPE_RELATIVE_TIMER ## CONSUMES\r
+#\r
\r
+[UserExtensions.TianoCore."ExtraFiles"]\r
+ UsbMassStorageDxeExtra.uni\r