TianoCore EDK2 master
Loading...
Searching...
No Matches
SpiBusDxe.c File Reference
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Protocol/SpiConfiguration.h>
#include <Protocol/SpiHc.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 DXE driver

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

Definition in file SpiBusDxe.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_ERRORSpiPeripheral is NULL.
EFI_NOT_FOUNDFail to locate SpiHcProtocol or SpiIoConfigurationProtocol
EFI_OUT_OF_RESOURCESFailed to allocate SpiIoChip

Definition at line 32 of file SpiBusDxe.c.