TianoCore EDK2 master
|
#include <Base.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Protocol/SpiConfiguration.h>
#include <Protocol/SpiNorFlash.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) |
VOID EFIAPI | SpiIoProtocolInstalledCallback (IN EFI_EVENT Event, OUT VOID *Context) |
EFI_STATUS | RegisterSpioProtocolNotification (VOID) |
EFI_STATUS EFIAPI | SpiNorFlashJedecSfdpDxeEntry (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
SPI NOR Flash JEDEC Serial Flash Discoverable Parameters (SFDP) DXE driver.
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SpiNorFlashJedecSfdpDxe.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 39 of file SpiNorFlashJedecSfdpDxe.c.
EFI_STATUS RegisterSpioProtocolNotification | ( | VOID | ) |
Register for the later installed SPI I/O protocol notification.
EFI_SUCCESS | Succeed. |
otherwise | Fail to register SPI I/O protocol installed notification. |
Definition at line 134 of file SpiNorFlashJedecSfdpDxe.c.
Callback function executed when the EFI_SPI_IO_PROTOCOL protocol interface is installed.
[in] | Event | Event whose notification function is being invoked. |
[out] | Context | Pointer to SPI I/O protocol GUID. |
Definition at line 97 of file SpiNorFlashJedecSfdpDxe.c.
EFI_STATUS EFIAPI SpiNorFlashJedecSfdpDxeEntry | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Entry point of the Macronix SPI NOR Flash 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 183 of file SpiNorFlashJedecSfdpDxe.c.