REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409 This commit will add the AHCI mode ATA device support in the PEI phase. More specifically, the newly add AhciPei driver will consume the ATA AHCI host controller PPI for ATA controllers working under AHCI code within the system. And then produces the below PPIs for each controller: EDKII PEI ATA PassThru PPI Storage Security Command PPI Also, the driver will consume the S3StorageDeviceInitList LockBox in S3 phase. The purpose is to perform an on-demand (partial) ATA device enumeration/initialization on each controller to benefit the S3 resume performance. The implementation of this driver is currently based on the below specifications: Serial ATA Revision 2.6 Serial ATA Advanced Host Controller Interface (AHCI) 1.3.1 AT Attachment with Packet Interface - 6 (ATA/ATAPI-6) Cc: Jian J Wang <jian.j.wang@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
75 lines
2.1 KiB
INI
75 lines
2.1 KiB
INI
## @file
|
|
# The AhciPei driver is used to manage ATA hard disk device working under AHCI
|
|
# mode at PEI phase.
|
|
#
|
|
# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# This program and the accompanying materials
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
#
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = AhciPei
|
|
MODULE_UNI_FILE = AhciPei.uni
|
|
FILE_GUID = 79E5CA15-7A2D-4F37-A63B-D1C7BBCA47AD
|
|
MODULE_TYPE = PEIM
|
|
VERSION_STRING = 1.0
|
|
ENTRY_POINT = AtaAhciPeimEntry
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 EBC
|
|
#
|
|
|
|
[Sources]
|
|
AhciPei.c
|
|
AhciPei.h
|
|
AhciPeiPassThru.c
|
|
AhciPeiPassThru.h
|
|
AhciPeiS3.c
|
|
AhciPeiStorageSecurity.c
|
|
AhciPeiStorageSecurity.h
|
|
AhciMode.c
|
|
DevicePath.c
|
|
DmaMem.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
[LibraryClasses]
|
|
DebugLib
|
|
PeiServicesLib
|
|
MemoryAllocationLib
|
|
BaseMemoryLib
|
|
IoLib
|
|
TimerLib
|
|
LockBoxLib
|
|
PeimEntryPoint
|
|
|
|
[Ppis]
|
|
gEdkiiPeiAtaAhciHostControllerPpiGuid ## CONSUMES
|
|
gEdkiiIoMmuPpiGuid ## CONSUMES
|
|
gEfiEndOfPeiSignalPpiGuid ## CONSUMES
|
|
gEdkiiPeiAtaPassThruPpiGuid ## SOMETIMES_PRODUCES
|
|
gEdkiiPeiStorageSecurityCommandPpiGuid ## SOMETIMES_PRODUCES
|
|
|
|
[Guids]
|
|
gS3StorageDeviceInitListGuid ## SOMETIMES_CONSUMES ## UNDEFINED
|
|
|
|
[Depex]
|
|
gEfiPeiMemoryDiscoveredPpiGuid AND
|
|
gEfiPeiMasterBootModePpiGuid AND
|
|
gEdkiiPeiAtaAhciHostControllerPpiGuid
|
|
|
|
[UserExtensions.TianoCore."ExtraFiles"]
|
|
AhciPeiExtra.uni
|