X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=OvmfPkg%2FInclude%2FLibrary%2FVirtNorFlashPlatformLib.h;fp=OvmfPkg%2FInclude%2FLibrary%2FVirtNorFlashPlatformLib.h;h=8f5b5e972d261ae236496d3cd877d9c4a47e5780;hp=0000000000000000000000000000000000000000;hb=16bf588b604a9f190accb71ada715b81756c94e2;hpb=115cebbe4d7541c795b4f9baefc38f9a1733b7f6 diff --git a/OvmfPkg/Include/Library/VirtNorFlashPlatformLib.h b/OvmfPkg/Include/Library/VirtNorFlashPlatformLib.h new file mode 100644 index 0000000000..8f5b5e972d --- /dev/null +++ b/OvmfPkg/Include/Library/VirtNorFlashPlatformLib.h @@ -0,0 +1,30 @@ +/** @file + + Copyright (c) 2011-2012, ARM Ltd. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + + **/ + +#ifndef __VIRT_NOR_FLASH_PLATFORM_LIB__ +#define __VIRT_NOR_FLASH_PLATFORM_LIB__ + +typedef struct { + UINTN DeviceBaseAddress; // Start address of the Device Base Address (DBA) + UINTN RegionBaseAddress; // Start address of one single region + UINTN Size; + UINTN BlockSize; +} VIRT_NOR_FLASH_DESCRIPTION; + +EFI_STATUS +VirtNorFlashPlatformInitialization ( + VOID + ); + +EFI_STATUS +VirtNorFlashPlatformGetDevices ( + OUT VIRT_NOR_FLASH_DESCRIPTION **NorFlashDescriptions, + OUT UINT32 *Count + ); + +#endif /* __VIRT_NOR_FLASH_PLATFORM_LIB__ */