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