TianoCore EDK2 master
Loading...
Searching...
No Matches
NorFlashInfoLib.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI NorFlashGetInfo (IN UINT8 *Id, IN OUT NOR_FLASH_INFO **FlashInfo, IN BOOLEAN AllocateForRuntime)
 
VOID EFIAPI NorFlashPrintInfo (IN NOR_FLASH_INFO *Info)
 

Variables

STATIC CONST NOR_FLASH_INFO NorFlashIds []
 

Detailed Description

Copyright (c) 2017 Marvell International Ltd. Copyright (c) 2023 StarFive, Technology Co., Ltd. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file NorFlashInfoLib.c.

Function Documentation

◆ NorFlashGetInfo()

EFI_STATUS EFIAPI NorFlashGetInfo ( IN UINT8 *  Id,
IN OUT NOR_FLASH_INFO **  FlashInfo,
IN BOOLEAN  AllocateForRuntime 
)

Return an allocated copy pool of the NOR flash information structure.

Parameters
[in]IdPointer to an array with JEDEC ID obtained from the NOR flash with READ_ID command (0x9f)
[in,out]FlashInfoPointer to NOR flash information structure
[in]AllocateForRuntimeA flag specifying a type of a copy pool allocation (TRUE for runtime, FALSE for normal)
Return values
EFI_SUCCESSOperation completed successfully
EFI_NOT_FOUNDNo matching entry in NOR ID table found
EFI_OUT_OF_RESOURCESNo pool memory available

Definition at line 162 of file NorFlashInfoLib.c.

◆ NorFlashPrintInfo()

VOID EFIAPI NorFlashPrintInfo ( IN NOR_FLASH_INFO Info)

Print NOR flash information basing on data stored in the NOR_FLASH_INFO structure.

Parameters
[in]FlashInfoPointer to NOR flash information structure

Definition at line 212 of file NorFlashInfoLib.c.

Variable Documentation

◆ NorFlashIds

STATIC CONST NOR_FLASH_INFO NorFlashIds[]

Definition at line 19 of file NorFlashInfoLib.c.