TianoCore EDK2 master
Loading...
Searching...
No Matches
Mmc.c File Reference

Go to the source code of this file.

Functions

VOID InitializeMmcHostPool (VOID)
 
VOID InsertMmcHost (IN MMC_HOST_INSTANCE *MmcHostInstance)
 
VOID RemoveMmcHost (IN MMC_HOST_INSTANCE *MmcHostInstance)
 
MMC_HOST_INSTANCECreateMmcHostInstance (IN EFI_MMC_HOST_PROTOCOL *MmcHost)
 
EFI_STATUS DestroyMmcHostInstance (IN MMC_HOST_INSTANCE *MmcHostInstance)
 
EFI_STATUS EFIAPI MmcDriverBindingSupported (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
 
EFI_STATUS EFIAPI MmcDriverBindingStart (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
 
EFI_STATUS EFIAPI MmcDriverBindingStop (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
 
VOID EFIAPI CheckCardsCallback (IN EFI_EVENT Event, IN VOID *Context)
 
EFI_STATUS EFIAPI MmcDxeInitialize (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

EFI_BLOCK_IO_MEDIA mMmcMediaTemplate
 
LIST_ENTRY mMmcHostPool
 
EFI_EVENT gCheckCardsEvent
 
EFI_DRIVER_BINDING_PROTOCOL gMmcDriverBinding
 

Detailed Description

Main file of the MMC Dxe driver. The driver entrypoint is defined into this file.

Copyright (c) 2011-2013, ARM Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Mmc.c.

Function Documentation

◆ CheckCardsCallback()

VOID EFIAPI CheckCardsCallback ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Definition at line 360 of file Mmc.c.

◆ CreateMmcHostInstance()

MMC_HOST_INSTANCE * CreateMmcHostInstance ( IN EFI_MMC_HOST_PROTOCOL MmcHost)

Definition at line 80 of file Mmc.c.

◆ DestroyMmcHostInstance()

EFI_STATUS DestroyMmcHostInstance ( IN MMC_HOST_INSTANCE MmcHostInstance)

Definition at line 153 of file Mmc.c.

◆ InitializeMmcHostPool()

VOID InitializeMmcHostPool ( VOID  )

Initialize the MMC Host Pool to support multiple MMC devices

Definition at line 50 of file Mmc.c.

◆ InsertMmcHost()

VOID InsertMmcHost ( IN MMC_HOST_INSTANCE MmcHostInstance)

Insert a new Mmc Host controller to the pool

Definition at line 61 of file Mmc.c.

◆ MmcDriverBindingStart()

EFI_STATUS EFIAPI MmcDriverBindingStart ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Definition at line 260 of file Mmc.c.

◆ MmcDriverBindingStop()

EFI_STATUS EFIAPI MmcDriverBindingStop ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN UINTN  NumberOfChildren,
IN EFI_HANDLE ChildHandleBuffer 
)

Definition at line 321 of file Mmc.c.

◆ MmcDriverBindingSupported()

EFI_STATUS EFIAPI MmcDriverBindingSupported ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

This function checks if the controller implement the Mmc Host and the Device Path Protocols

Definition at line 189 of file Mmc.c.

◆ MmcDxeInitialize()

EFI_STATUS EFIAPI MmcDxeInitialize ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Definition at line 413 of file Mmc.c.

◆ RemoveMmcHost()

VOID RemoveMmcHost ( IN MMC_HOST_INSTANCE MmcHostInstance)

Definition at line 72 of file Mmc.c.

Variable Documentation

◆ gCheckCardsEvent

EFI_EVENT gCheckCardsEvent

Event triggered by the timer to check if any cards have been removed or if new ones have been plugged in

Definition at line 44 of file Mmc.c.

◆ gMmcDriverBinding

EFI_DRIVER_BINDING_PROTOCOL gMmcDriverBinding
Initial value:
= {
MmcDriverBindingStart,
MmcDriverBindingStop,
0xa,
}
#define NULL
Definition: Base.h:319
EFI_STATUS EFIAPI MmcDriverBindingSupported(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
Definition: Mmc.c:189

Definition at line 399 of file Mmc.c.

◆ mMmcHostPool

LIST_ENTRY mMmcHostPool

Definition at line 37 of file Mmc.c.

◆ mMmcMediaTemplate

EFI_BLOCK_IO_MEDIA mMmcMediaTemplate
Initial value:
= {
SIGNATURE_32 ('m', 'm', 'c', 'o'),
TRUE,
512,
4,
0,
0
}
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307
#define SIGNATURE_32(A, B, C, D)
Definition: Base.h:1310

Definition at line 20 of file Mmc.c.