]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Include/Ppi/FlashMap.h
Porting WinNtFwhPei and WinNtFlashMapPei to produce FvHob.
[mirror_edk2.git] / MdeModulePkg / Include / Ppi / FlashMap.h
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 FlashMap.h
15
16 Abstract:
17
18 FlashMap PPI defined in Tiano
19
20 This code abstracts FlashMap access
21
22 --*/
23
24 #ifndef _PEI_FLASH_MAP_PPI_H_
25 #define _PEI_FLASH_MAP_PPI_H_
26
27 #include <common/FlashMap.h>
28
29 #define PEI_FLASH_MAP_PPI_GUID \
30 { 0xf34c2fa0, 0xde88, 0x4270, {0x84, 0x14, 0x96, 0x12, 0x22, 0xf4, 0x52, 0x1c } }
31
32 typedef struct _PEI_FLASH_MAP_PPI PEI_FLASH_MAP_PPI;
33 //
34 // Functions
35 //
36 typedef
37 EFI_STATUS
38 (EFIAPI *PEI_GET_FLASH_AREA_INFO) (
39 IN EFI_PEI_SERVICES **PeiServices,
40 IN PEI_FLASH_MAP_PPI *This,
41 IN EFI_FLASH_AREA_TYPE AreaType,
42 IN EFI_GUID *AreaTypeGuid,
43 OUT UINT32 *NumEntries,
44 OUT EFI_FLASH_SUBAREA_ENTRY **Entries
45 );
46
47
48 struct _PEI_FLASH_MAP_PPI {
49 PEI_GET_FLASH_AREA_INFO GetAreaInfo;
50 };
51
52 extern EFI_GUID gPeiFlashMapPpiGuid;
53
54 #endif