]> git.proxmox.com Git - mirror_edk2.git/blob - EdkModulePkg/Include/Ppi/FlashMap.h
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@422 6f19259b...
[mirror_edk2.git] / EdkModulePkg / 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 #define PEI_FLASH_MAP_PPI_GUID \
28 { 0xf34c2fa0, 0xde88, 0x4270, {0x84, 0x14, 0x96, 0x12, 0x22, 0xf4, 0x52, 0x1c } }
29
30 typedef struct _PEI_FLASH_MAP_PPI PEI_FLASH_MAP_PPI;
31 //
32 // Functions
33 //
34 typedef
35 EFI_STATUS
36 (EFIAPI *PEI_GET_FLASH_AREA_INFO) (
37 IN EFI_PEI_SERVICES **PeiServices,
38 IN PEI_FLASH_MAP_PPI *This,
39 IN EFI_FLASH_AREA_TYPE AreaType,
40 IN EFI_GUID *AreaTypeGuid,
41 OUT UINT32 *NumEntries,
42 OUT EFI_FLASH_SUBAREA_ENTRY **Entries
43 );
44
45
46 struct _PEI_FLASH_MAP_PPI {
47 PEI_GET_FLASH_AREA_INFO GetAreaInfo;
48 };
49
50 extern EFI_GUID gPeiFlashMapPpiGuid;
51
52 #endif