TianoCore EDK2 master
|
#include "AhciPei.h"
#include <Ppi/PciDevice.h>
#include <Library/DevicePathLib.h>
#include <IndustryStandard/Pci.h>
Go to the source code of this file.
Functions | |
VOID | AhciFreeDmaResource (IN PEI_AHCI_CONTROLLER_PRIVATE_DATA *Private) |
EFI_STATUS EFIAPI | AhciPeimEndOfPei (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi) |
EFI_STATUS | AtaAhciInitPrivateData (IN UINTN MmioBase, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN UINTN DevicePathLength) |
EFI_STATUS | AtaAhciInitPrivateDataFromHostControllerPpi (IN EDKII_ATA_AHCI_HOST_CONTROLLER_PPI *AhciHcPpi) |
EFI_STATUS EFIAPI | AtaAhciHostControllerPpiInstallationCallback (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi) |
EFI_STATUS | AtaAhciInitPrivateDataFromPciDevice (EDKII_PCI_DEVICE_PPI *PciDevice) |
EFI_STATUS EFIAPI | AtaAhciPciDevicePpiInstallationCallback (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi) |
EFI_STATUS EFIAPI | AtaAhciPeimEntry (IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices) |
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.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file AhciPei.c.
VOID AhciFreeDmaResource | ( | IN PEI_AHCI_CONTROLLER_PRIVATE_DATA * | Private | ) |
EFI_STATUS EFIAPI AhciPeimEndOfPei | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN EFI_PEI_NOTIFY_DESCRIPTOR * | NotifyDescriptor, | ||
IN VOID * | Ppi | ||
) |
One notified function to cleanup the allocated DMA buffers at EndOfPei.
[in] | PeiServices | Pointer to PEI Services Table. |
[in] | NotifyDescriptor | Pointer to the descriptor for the Notification event that caused this function to execute. |
[in] | Ppi | Pointer to the PPI data associated with this function. |
EFI_SUCCESS | The function completes successfully |
EFI_STATUS EFIAPI AtaAhciHostControllerPpiInstallationCallback | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN EFI_PEI_NOTIFY_DESCRIPTOR * | NotifyDescriptor, | ||
IN VOID * | Ppi | ||
) |
Callback for EDKII_ATA_AHCI_HOST_CONTROLLER_PPI installation.
[in] | PeiServices | Pointer to PEI Services Table. |
[in] | NotifyDescriptor | Pointer to the descriptor for the Notification event that caused this function to execute. |
[in] | Ppi | Pointer to the PPI data associated with this function. |
EFI_SUCCESS | The function completes successfully |
Others | Cannot initialize AHCI controller from given EDKII_ATA_AHCI_HOST_CONTROLLER_PPI |
EFI_STATUS AtaAhciInitPrivateData | ( | IN UINTN | MmioBase, |
IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath, | ||
IN UINTN | DevicePathLength | ||
) |
Initialize and install PrivateData PPIs.
[in] | MmioBase | MMIO base address of specific AHCI controller |
[in] | DevicePath | A pointer to the EFI_DEVICE_PATH_PROTOCOL structure. |
[in] | DevicePathLength | Length of the device path. |
EFI_SUCCESS | AHCI controller initialized and PPIs installed |
others | Failed to initialize AHCI controller |
EFI_STATUS AtaAhciInitPrivateDataFromHostControllerPpi | ( | IN EDKII_ATA_AHCI_HOST_CONTROLLER_PPI * | AhciHcPpi | ) |
EFI_STATUS AtaAhciInitPrivateDataFromPciDevice | ( | EDKII_PCI_DEVICE_PPI * | PciDevice | ) |
EFI_STATUS EFIAPI AtaAhciPciDevicePpiInstallationCallback | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN EFI_PEI_NOTIFY_DESCRIPTOR * | NotifyDescriptor, | ||
IN VOID * | Ppi | ||
) |
Callback for EDKII_PCI_DEVICE_PPI installation.
[in] | PeiServices | Pointer to PEI Services Table. |
[in] | NotifyDescriptor | Pointer to the descriptor for the Notification event that caused this function to execute. |
[in] | Ppi | Pointer to the PPI data associated with this function. |
EFI_SUCCESS | The function completes successfully |
Others | Cannot initialize AHCI controller from given PCI_DEVICE_PPI |
EFI_STATUS EFIAPI AtaAhciPeimEntry | ( | IN EFI_PEI_FILE_HANDLE | FileHandle, |
IN CONST EFI_PEI_SERVICES ** | PeiServices | ||
) |
EFI_PEI_PPI_DESCRIPTOR mAhciAtaPassThruPpiListTemplate |
EFI_PEI_PPI_DESCRIPTOR mAhciBlkIo2PpiListTemplate |
EFI_PEI_PPI_DESCRIPTOR mAhciBlkIoPpiListTemplate |
EFI_PEI_NOTIFY_DESCRIPTOR mAhciEndOfPeiNotifyListTemplate |
EFI_PEI_PPI_DESCRIPTOR mAhciStorageSecurityPpiListTemplate |
EFI_PEI_NOTIFY_DESCRIPTOR mAtaAhciHostControllerNotify |
EFI_PEI_NOTIFY_DESCRIPTOR mPciDevicePpiNotify |