|
TianoCore EDK2 master
|
#include <PiDxe.h>#include <Library/BaseLib.h>#include <Library/BaseMemoryLib.h>#include <Library/DebugLib.h>#include <Library/DxeServicesLib.h>#include <Library/MemoryAllocationLib.h>#include <Library/NorFlashInfoLib.h>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 [] |
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.
| 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.
| [in] | Id | Pointer to an array with JEDEC ID obtained from the NOR flash with READ_ID command (0x9f) |
| [in,out] | FlashInfo | Pointer to NOR flash information structure |
| [in] | AllocateForRuntime | A flag specifying a type of a copy pool allocation (TRUE for runtime, FALSE for normal) |
| EFI_SUCCESS | Operation completed successfully |
| EFI_NOT_FOUND | No matching entry in NOR ID table found |
| EFI_OUT_OF_RESOURCES | No pool memory available |
Definition at line 162 of file NorFlashInfoLib.c.
| VOID EFIAPI NorFlashPrintInfo | ( | IN NOR_FLASH_INFO * | Info | ) |
Print NOR flash information basing on data stored in the NOR_FLASH_INFO structure.
| [in] | FlashInfo | Pointer to NOR flash information structure |
Definition at line 212 of file NorFlashInfoLib.c.
| STATIC CONST NOR_FLASH_INFO NorFlashIds[] |
Definition at line 19 of file NorFlashInfoLib.c.