]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/VirtNorFlashPlatformLib.h
OvmfPkg: clone NorFlashPlatformLib into VirtNorFlashPlatformLib
[mirror_edk2.git] / OvmfPkg / Include / Library / VirtNorFlashPlatformLib.h
diff --git a/OvmfPkg/Include/Library/VirtNorFlashPlatformLib.h b/OvmfPkg/Include/Library/VirtNorFlashPlatformLib.h
new file mode 100644 (file)
index 0000000..8f5b5e9
--- /dev/null
@@ -0,0 +1,30 @@
+/** @file\r
+\r
+ Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>\r
+\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+ **/\r
+\r
+#ifndef __VIRT_NOR_FLASH_PLATFORM_LIB__\r
+#define __VIRT_NOR_FLASH_PLATFORM_LIB__\r
+\r
+typedef struct {\r
+  UINTN    DeviceBaseAddress;       // Start address of the Device Base Address (DBA)\r
+  UINTN    RegionBaseAddress;       // Start address of one single region\r
+  UINTN    Size;\r
+  UINTN    BlockSize;\r
+} VIRT_NOR_FLASH_DESCRIPTION;\r
+\r
+EFI_STATUS\r
+VirtNorFlashPlatformInitialization (\r
+  VOID\r
+  );\r
+\r
+EFI_STATUS\r
+VirtNorFlashPlatformGetDevices (\r
+  OUT VIRT_NOR_FLASH_DESCRIPTION  **NorFlashDescriptions,\r
+  OUT UINT32                      *Count\r
+  );\r
+\r
+#endif /* __VIRT_NOR_FLASH_PLATFORM_LIB__ */\r