TianoCore EDK2 master
Loading...
Searching...
No Matches
FvbServiceSmm.c File Reference
#include <PiSmm.h>
#include <Library/SmmServicesTableLib.h>
#include "FvbSmmCommon.h"
#include "FvbService.h"

Go to the source code of this file.

Functions

EFI_STATUS InstallFvbProtocol (IN EFI_FW_VOL_INSTANCE *FwhInstance, IN UINTN InstanceNum)
 
EFI_STATUS EFIAPI FvbSmmInitialize (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

SMM Firmware Volume Block Driver.

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

Definition in file FvbServiceSmm.c.

Function Documentation

◆ FvbSmmInitialize()

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

The driver entry point for SMM Firmware Volume Block Driver.

The function does the necessary initialization work Firmware Volume Block Driver.

Parameters
[in]ImageHandleThe firmware allocated handle for the UEFI image.
[in]SystemTableA pointer to the EFI system table.
Return values
EFI_SUCCESSThis funtion always return EFI_SUCCESS. It will ASSERT on errors.

Definition at line 131 of file FvbServiceSmm.c.

◆ InstallFvbProtocol()

EFI_STATUS InstallFvbProtocol ( IN EFI_FW_VOL_INSTANCE FwhInstance,
IN UINTN  InstanceNum 
)

The function installs EFI_SMM_FIRMWARE_VOLUME_BLOCK protocol for each FV in the system.

Parameters
[in]FwhInstanceThe pointer to a FW volume instance structure, which contains the information about one FV.
[in]InstanceNumThe instance number which can be used as a ID to locate this FwhInstance in other functions.
Return values
EFI_SUCESSInstalled successfully.
ElseDid not install successfully.

Definition at line 28 of file FvbServiceSmm.c.