TianoCore EDK2 master
Loading...
Searching...
No Matches
SpiBusSmm.c File Reference
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/MmServicesTableLib.h>
#include <Protocol/SpiSmmConfiguration.h>
#include <Protocol/SpiSmmHc.h>
#include <Protocol/SpiIo.h>
#include "SpiBus.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI SpiBusEntry (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

SPI bus SMM driver

Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SpiBusSmm.c.

Function Documentation

◆ SpiBusEntry()

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

Entry point of the Spi Bus layer

Parameters
[in]ImageHandleImage handle of this driver.
[in]SystemTablePointer to standard EFI system table.
Return values
EFI_SUCCESSSucceed.
EFI_DEVICE_ERRORFail to install EFI_SPI_HC_PROTOCOL protocol.
EFI_NOT_FOUNDfail to locate SpiHcProtocol or SpiIoConfigurationProtocol
EFI_OUT_OF_RESOURCESFailed to allocate SpiIoChip

Definition at line 32 of file SpiBusSmm.c.