TianoCore EDK2 master
|
#include <PiPei.h>
#include <Ppi/MasterBootMode.h>
#include <Ppi/SdMmcHostController.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 | SD_MMC_HC_PEI_SLOT_INFO |
struct | SD_MMC_HC_PEI_BAR |
struct | SD_MMC_HC_PEI_PRIVATE_DATA |
Macros | |
#define | SD_MMC_HC_PEI_SIGNATURE SIGNATURE_32 ('S', 'D', 'M', 'C') |
#define | MAX_SD_MMC_HCS 8 |
#define | MAX_SD_MMC_SLOTS 6 |
#define | SD_MMC_HC_PEI_SLOT_OFFSET 0x40 |
#define | SD_MMC_HC_PEI_PRIVATE_DATA_FROM_THIS(a) CR (a, SD_MMC_HC_PEI_PRIVATE_DATA, SdMmcHostControllerPpi, SD_MMC_HC_PEI_SIGNATURE) |
Functions | |
EFI_STATUS EFIAPI | GetSdMmcHcMmioBar (IN EDKII_SD_MMC_HOST_CONTROLLER_PPI *This, IN UINT8 ControllerId, IN OUT UINTN **MmioBar, OUT UINT8 *BarNum) |
Copyright (c) 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SdMmcPciHcPei.h.
#define MAX_SD_MMC_HCS 8 |
Definition at line 27 of file SdMmcPciHcPei.h.
#define MAX_SD_MMC_SLOTS 6 |
Definition at line 28 of file SdMmcPciHcPei.h.
#define SD_MMC_HC_PEI_PRIVATE_DATA_FROM_THIS | ( | a | ) | CR (a, SD_MMC_HC_PEI_PRIVATE_DATA, SdMmcHostControllerPpi, SD_MMC_HC_PEI_SIGNATURE) |
Definition at line 55 of file SdMmcPciHcPei.h.
#define SD_MMC_HC_PEI_SIGNATURE SIGNATURE_32 ('S', 'D', 'M', 'C') |
Definition at line 25 of file SdMmcPciHcPei.h.
#define SD_MMC_HC_PEI_SLOT_OFFSET 0x40 |
Definition at line 33 of file SdMmcPciHcPei.h.
EFI_STATUS EFIAPI GetSdMmcHcMmioBar | ( | IN EDKII_SD_MMC_HOST_CONTROLLER_PPI * | This, |
IN UINT8 | ControllerId, | ||
IN OUT UINTN ** | MmioBar, | ||
OUT UINT8 * | BarNum | ||
) |
Get the MMIO base address of SD/MMC host controller.
[in] | This | The protocol instance pointer. |
[in] | ControllerId | The ID of the SD/MMC host controller. |
[in,out] | MmioBar | The pointer to store the array of available SD/MMC host controller slot MMIO base addresses. The entry number of the array is specified by BarNum. |
[out] | BarNum | The pointer to store the supported bar number. |
EFI_SUCCESS | The operation succeeds. |
EFI_INVALID_PARAMETER | The parameters are invalid. |
Definition at line 36 of file SdMmcPciHcPei.c.