summaryrefslogtreecommitdiff
path: root/OvmfPkg/Include/Library/VirtNorFlashPlatformLib.h
blob: 8f5b5e972d261ae236496d3cd877d9c4a47e5780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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__ */