mirror of https://github.com/acidanthera/audk.git
OvmfPkg: clone NorFlashPlatformLib into VirtNorFlashPlatformLib
Create a new library class in Ovmf that duplicates the existing NorFlashPlatformLib, but which will be tied to the VirtNorFlashDxe driver that will be introduced in a subsequent patch. This allows us to retire the original from ArmPlatformPkg. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
This commit is contained in:
parent
115cebbe4d
commit
16bf588b60
|
@ -0,0 +1,30 @@
|
|||
/** @file
|
||||
|
||||
Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
|
||||
|
||||
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__ */
|
|
@ -101,6 +101,10 @@
|
|||
# transports.
|
||||
VirtioMmioDeviceLib|Include/Library/VirtioMmioDeviceLib.h
|
||||
|
||||
## @libraryclass Provides a Nor flash interface.
|
||||
#
|
||||
VirtNorFlashPlatformLib|Include/Library/VirtNorFlashPlatformLib.h
|
||||
|
||||
## @libraryclass Invoke Xen hypercalls
|
||||
#
|
||||
XenHypercallLib|Include/Library/XenHypercallLib.h
|
||||
|
|
Loading…
Reference in New Issue