TianoCore EDK2 master
|
#include <PiPei.h>
#include <Ppi/MasterBootMode.h>
#include <Ppi/UfsHostController.h>
#include <IndustryStandard/Pci.h>
#include <Library/DebugLib.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/PciLib.h>
#include <Library/PeiServicesLib.h>
#include <Library/MemoryAllocationLib.h>
Go to the source code of this file.
Data Structures | |
struct | UFS_HC_PEI_PRIVATE_DATA |
Macros | |
#define | UFS_HC_PEI_SIGNATURE SIGNATURE_32 ('U', 'F', 'S', 'P') |
#define | MAX_UFS_HCS 8 |
#define | UFS_HC_PEI_PRIVATE_DATA_FROM_THIS(a) CR (a, UFS_HC_PEI_PRIVATE_DATA, UfsHostControllerPpi, UFS_HC_PEI_SIGNATURE) |
Functions | |
EFI_STATUS EFIAPI | GetUfsHcMmioBar (IN EDKII_UFS_HOST_CONTROLLER_PPI *This, IN UINT8 ControllerId, OUT UINTN *MmioBar) |
Copyright (c) 2014, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UfsPciHcPei.h.
#define MAX_UFS_HCS 8 |
Definition at line 25 of file UfsPciHcPei.h.
#define UFS_HC_PEI_PRIVATE_DATA_FROM_THIS | ( | a | ) | CR (a, UFS_HC_PEI_PRIVATE_DATA, UfsHostControllerPpi, UFS_HC_PEI_SIGNATURE) |
Definition at line 35 of file UfsPciHcPei.h.
#define UFS_HC_PEI_SIGNATURE SIGNATURE_32 ('U', 'F', 'S', 'P') |
Definition at line 24 of file UfsPciHcPei.h.
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.