TianoCore EDK2 master
Loading...
Searching...
No Matches
SdMmcPciHcPei.h File Reference

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)
 

Detailed Description

Copyright (c) 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SdMmcPciHcPei.h.

Macro Definition Documentation

◆ MAX_SD_MMC_HCS

#define MAX_SD_MMC_HCS   8

Definition at line 27 of file SdMmcPciHcPei.h.

◆ MAX_SD_MMC_SLOTS

#define MAX_SD_MMC_SLOTS   6

Definition at line 28 of file SdMmcPciHcPei.h.

◆ SD_MMC_HC_PEI_PRIVATE_DATA_FROM_THIS

#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.

◆ SD_MMC_HC_PEI_SIGNATURE

#define SD_MMC_HC_PEI_SIGNATURE   SIGNATURE_32 ('S', 'D', 'M', 'C')

Definition at line 25 of file SdMmcPciHcPei.h.

◆ SD_MMC_HC_PEI_SLOT_OFFSET

#define SD_MMC_HC_PEI_SLOT_OFFSET   0x40

Definition at line 33 of file SdMmcPciHcPei.h.

Function Documentation

◆ GetSdMmcHcMmioBar()

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.

Parameters
[in]ThisThe protocol instance pointer.
[in]ControllerIdThe ID of the SD/MMC host controller.
[in,out]MmioBarThe 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]BarNumThe pointer to store the supported bar number.
Return values
EFI_SUCCESSThe operation succeeds.
EFI_INVALID_PARAMETERThe parameters are invalid.

Definition at line 36 of file SdMmcPciHcPei.c.