TianoCore EDK2 master
|
#include "UfsPciHcPei.h"
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | GetUfsHcMmioBar (IN EDKII_UFS_HOST_CONTROLLER_PPI *This, IN UINT8 ControllerId, OUT UINTN *MmioBar) |
EFI_STATUS EFIAPI | InitializeUfsHcPeim (IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices) |
Variables | |
EDKII_UFS_HOST_CONTROLLER_PPI | mUfsHostControllerPpi = { GetUfsHcMmioBar } |
EFI_PEI_PPI_DESCRIPTOR | mPpiList |
UfsPciHcPei driver is used to provide platform-dependent info, mainly UFS host controller MMIO base, to upper layer UFS drivers.
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UfsPciHcPei.c.
EFI_STATUS EFIAPI GetUfsHcMmioBar | ( | IN EDKII_UFS_HOST_CONTROLLER_PPI * | This, |
IN UINT8 | ControllerId, | ||
OUT UINTN * | MmioBar | ||
) |
Get the MMIO base address of UFS host controller.
[in] | This | The protocol instance pointer. |
[in] | ControllerId | The ID of the UFS host controller. |
[out] | MmioBar | Pointer to the UFS host controller MMIO base address. |
EFI_SUCCESS | The operation succeeds. |
EFI_INVALID_PARAMETER | The parameters are invalid. |
Definition at line 33 of file UfsPciHcPei.c.
EFI_STATUS EFIAPI InitializeUfsHcPeim | ( | IN EFI_PEI_FILE_HANDLE | FileHandle, |
IN CONST EFI_PEI_SERVICES ** | PeiServices | ||
) |
The user code starts with this function.
FileHandle | Handle of the file being invoked. |
PeiServices | Describes the list of possible PEI Services. |
EFI_SUCCESS | The driver is successfully initialized. |
Others | Can't initialize the driver. |
We do not export this in S3 boot path, because it is only for recovery.
Install Ufs Host Controller PPI
Definition at line 68 of file UfsPciHcPei.c.
EFI_PEI_PPI_DESCRIPTOR mPpiList |
Definition at line 14 of file UfsPciHcPei.c.
EDKII_UFS_HOST_CONTROLLER_PPI mUfsHostControllerPpi = { GetUfsHcMmioBar } |
Definition at line 12 of file UfsPciHcPei.c.