REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4100 ScsiDiskDxe driver updates ControllerNameTable with common string "SCSI Disk Device" for all SCSI disks. Due to this, when multiple SCSI disk devices connected, facing difficulty in identifying correct SCSI disk device. As per SCSI spec, standard Inquiry Data is having the fields to know Vendor and Product information. Updated "ControllerNameTable" with Vendor and Product information. So that, device specific name can be retrieved using ComponentName protocol. Cc: Vasudevan Sambandan <vasudevans@ami.com> Cc: Sundaresan Selvaraj <sundaresans@ami.com> Signed-off-by: Cheripally Gopi <gopic@ami.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
74 lines
2.3 KiB
INI
74 lines
2.3 KiB
INI
## @file
|
|
# The Scsi Disk driver is used to retrieve the media info in the attached SCSI disk.
|
|
# It detects the SCSI disk media and installs Block I/O and Block I/O2 Protocol on
|
|
# the device handle.
|
|
#
|
|
# Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
|
|
# Copyright (c) 1985 - 2022, American Megatrends International LLC.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = ScsiDisk
|
|
MODULE_UNI_FILE = ScsiDisk.uni
|
|
FILE_GUID = 0A66E322-3740-4cce-AD62-BD172CECCA35
|
|
MODULE_TYPE = UEFI_DRIVER
|
|
VERSION_STRING = 1.0
|
|
|
|
ENTRY_POINT = InitializeScsiDisk
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 EBC
|
|
#
|
|
# DRIVER_BINDING = gScsiDiskDriverBinding
|
|
# COMPONENT_NAME = gScsiDiskComponentName
|
|
# COMPONENT_NAME2 = gScsiDiskComponentName2
|
|
#
|
|
|
|
[Sources]
|
|
ComponentName.c
|
|
ScsiDisk.c
|
|
ScsiDisk.h
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
|
|
|
|
[LibraryClasses]
|
|
UefiBootServicesTableLib
|
|
UefiScsiLib
|
|
BaseMemoryLib
|
|
MemoryAllocationLib
|
|
UefiLib
|
|
UefiDriverEntryPoint
|
|
DebugLib
|
|
DevicePathLib
|
|
PrintLib
|
|
|
|
[Protocols]
|
|
gEfiDiskInfoProtocolGuid ## BY_START
|
|
gEfiBlockIoProtocolGuid ## BY_START
|
|
gEfiBlockIo2ProtocolGuid ## BY_START
|
|
gEfiEraseBlockProtocolGuid ## BY_START
|
|
gEfiStorageSecurityCommandProtocolGuid ## BY_START
|
|
gEfiScsiIoProtocolGuid ## TO_START
|
|
gEfiScsiPassThruProtocolGuid ## TO_START
|
|
gEfiExtScsiPassThruProtocolGuid ## TO_START
|
|
|
|
[Guids]
|
|
gEfiDiskInfoScsiInterfaceGuid ## SOMETIMES_PRODUCES ## UNDEFINED
|
|
gEfiDiskInfoIdeInterfaceGuid ## SOMETIMES_PRODUCES ## UNDEFINED
|
|
gEfiDiskInfoAhciInterfaceGuid ## SOMETIMES_PRODUCES ## UNDEFINED
|
|
gEfiDiskInfoUfsInterfaceGuid ## SOMETIMES_PRODUCES ## UNDEFINED
|
|
|
|
# [Event]
|
|
# EVENT_TYPE_RELATIVE_TIMER ## CONSUMES
|
|
#
|
|
|
|
[UserExtensions.TianoCore."ExtraFiles"]
|
|
ScsiDiskExtra.uni
|