TianoCore EDK2 master
|
#include <Base.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/SmmServicesTableLib.h>
#include <Protocol/SpiSmmConfiguration.h>
#include <Protocol/SpiSmmNorFlash.h>
#include <Protocol/SpiIo.h>
#include <IndustryStandard/SpiNorFlashJedecSfdp.h>
#include "SpiNorFlash.h"
#include "SpiNorFlashJedecSfdpInternal.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | CreateSpiNorFlashSfdpInstance (IN EFI_HANDLE SpiIoHandle) |
EFI_STATUS EFIAPI | SpiIoProtocolInstalledCallback (IN CONST EFI_GUID *Protocol, IN VOID *Interface, IN EFI_HANDLE Handle) |
EFI_STATUS | RegisterSpioProtocolNotification (VOID) |
EFI_STATUS EFIAPI | SpiNorFlashJedecSfdpSmmEntry (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
SPI NOR Flash JEDEC Serial Flash Discoverable Parameters (SFDP) SMM driver.
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SpiNorFlashJedecSfdpSmm.c.
EFI_STATUS CreateSpiNorFlashSfdpInstance | ( | IN EFI_HANDLE | SpiIoHandle | ) |
Function to create SPI_NOR_FLASH_INSTANCE for this SPI part.
[in] | SpiIoHandle | The handle with SPI I/O protocol installed. |
EFI_SUCCESS | Succeed. |
EFI_OUT_OF_RESOURCES | Not enough resource to create SPI_NOR_FLASH_INSTANCE. |
otherwise | Fail to create SPI NOR Flash SFDP Instance |
Definition at line 38 of file SpiNorFlashJedecSfdpSmm.c.
EFI_STATUS RegisterSpioProtocolNotification | ( | VOID | ) |
Register notification for the later installed SPI I/O protocol.
EFI_SUCCESS | Succeed. |
otherwise | Fail to register the notification of SPI I/O protocol installation. |
Definition at line 121 of file SpiNorFlashJedecSfdpSmm.c.
EFI_STATUS EFIAPI SpiIoProtocolInstalledCallback | ( | IN CONST EFI_GUID * | Protocol, |
IN VOID * | Interface, | ||
IN EFI_HANDLE | Handle | ||
) |
Callback function executed when the EFI_SPI_IO_PROTOCOL protocol interface is installed.
[in] | Protocol | Points to the protocol's unique identifier. |
[in] | Interface | Points to the interface instance. |
[in] | Handle | The handle on which the interface was installed. |
Definition at line 99 of file SpiNorFlashJedecSfdpSmm.c.
EFI_STATUS EFIAPI SpiNorFlashJedecSfdpSmmEntry | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Entry point of the SPI NOR Flash SFDP SMM driver.
ImageHandle | Image handle of this driver. |
SystemTable | Pointer to standard EFI system table. |
EFI_SUCCESS | Succeed. |
EFI_NOT_FOUND | No gEdk2JedecSfdpSpiSmmDriverGuid installed on system yet. |
EFI_OUT_OF_RESOURCES | Not enough resource for SPI NOR Flash JEDEC SFDP initialization. |
Otherwise | Other errors. |
Definition at line 157 of file SpiNorFlashJedecSfdpSmm.c.