TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/VirtNorFlashPlatformLib.h>
#include <Protocol/FdtClient.h>
#include <stdbool.h>
Go to the source code of this file.
Macros | |
#define | QEMU_NOR_BLOCK_SIZE SIZE_256KB |
#define | MAX_FLASH_BANKS 4 |
Functions | |
EFI_STATUS | VirtNorFlashPlatformInitialization (VOID) |
EFI_STATUS | VirtNorFlashPlatformGetDevices (OUT VIRT_NOR_FLASH_DESCRIPTION **NorFlashDescriptions, OUT UINT32 *Count) |
Variables | |
STATIC VIRT_NOR_FLASH_DESCRIPTION | mNorFlashDevices [MAX_FLASH_BANKS] |
Copyright (c) 2014-2018, Linaro Ltd. All rights reserved.
Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FdtNorFlashQemuLib.c.
#define MAX_FLASH_BANKS 4 |
Definition at line 19 of file FdtNorFlashQemuLib.c.
#define QEMU_NOR_BLOCK_SIZE SIZE_256KB |
Definition at line 18 of file FdtNorFlashQemuLib.c.
EFI_STATUS VirtNorFlashPlatformGetDevices | ( | OUT VIRT_NOR_FLASH_DESCRIPTION ** | NorFlashDescriptions, |
OUT UINT32 * | Count | ||
) |
Return the Flash devices on the platform.
[out] | NorFlashDescriptions | Pointer to the Flash device description. |
[out] | Count | Number of Flash devices. |
EFI_SUCCESS | Success. |
EFI_NOT_FOUND | Flash device not found. |
Definition at line 32 of file FdtNorFlashQemuLib.c.
EFI_STATUS VirtNorFlashPlatformInitialization | ( | VOID | ) |
This function performs platform specific actions to initialise the NOR flash, if required.
EFI_SUCCESS | Success. |
Definition at line 24 of file FdtNorFlashQemuLib.c.
STATIC VIRT_NOR_FLASH_DESCRIPTION mNorFlashDevices[MAX_FLASH_BANKS] |
Definition at line 21 of file FdtNorFlashQemuLib.c.