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

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]
 

Detailed Description

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.

Macro Definition Documentation

◆ MAX_FLASH_BANKS

#define MAX_FLASH_BANKS   4

Definition at line 19 of file FdtNorFlashQemuLib.c.

◆ QEMU_NOR_BLOCK_SIZE

#define QEMU_NOR_BLOCK_SIZE   SIZE_256KB

Definition at line 18 of file FdtNorFlashQemuLib.c.

Function Documentation

◆ VirtNorFlashPlatformGetDevices()

EFI_STATUS VirtNorFlashPlatformGetDevices ( OUT VIRT_NOR_FLASH_DESCRIPTION **  NorFlashDescriptions,
OUT UINT32 *  Count 
)

Return the Flash devices on the platform.

Parameters
[out]NorFlashDescriptionsPointer to the Flash device description.
[out]CountNumber of Flash devices.
Return values
EFI_SUCCESSSuccess.
EFI_NOT_FOUNDFlash device not found.

Definition at line 32 of file FdtNorFlashQemuLib.c.

◆ VirtNorFlashPlatformInitialization()

EFI_STATUS VirtNorFlashPlatformInitialization ( VOID  )

This function performs platform specific actions to initialise the NOR flash, if required.

Return values
EFI_SUCCESSSuccess.

Definition at line 24 of file FdtNorFlashQemuLib.c.

Variable Documentation

◆ mNorFlashDevices

STATIC VIRT_NOR_FLASH_DESCRIPTION mNorFlashDevices[MAX_FLASH_BANKS]

Definition at line 21 of file FdtNorFlashQemuLib.c.