]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Include/Library/VirtNorFlashPlatformLib.h
OvmfPkg: clone NorFlashPlatformLib into VirtNorFlashPlatformLib
[mirror_edk2.git] / OvmfPkg / Include / Library / VirtNorFlashPlatformLib.h
CommitLineData
16bf588b
AB
1/** @file\r
2\r
3 Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>\r
4\r
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7 **/\r
8\r
9#ifndef __VIRT_NOR_FLASH_PLATFORM_LIB__\r
10#define __VIRT_NOR_FLASH_PLATFORM_LIB__\r
11\r
12typedef struct {\r
13 UINTN DeviceBaseAddress; // Start address of the Device Base Address (DBA)\r
14 UINTN RegionBaseAddress; // Start address of one single region\r
15 UINTN Size;\r
16 UINTN BlockSize;\r
17} VIRT_NOR_FLASH_DESCRIPTION;\r
18\r
19EFI_STATUS\r
20VirtNorFlashPlatformInitialization (\r
21 VOID\r
22 );\r
23\r
24EFI_STATUS\r
25VirtNorFlashPlatformGetDevices (\r
26 OUT VIRT_NOR_FLASH_DESCRIPTION **NorFlashDescriptions,\r
27 OUT UINT32 *Count\r
28 );\r
29\r
30#endif /* __VIRT_NOR_FLASH_PLATFORM_LIB__ */\r