2008-04-09 09:07:50 +02:00
|
|
|
/** @file
|
2007-07-05 17:27:43 +02:00
|
|
|
|
2008-04-09 09:07:50 +02:00
|
|
|
FlashMap PPI abstracts access to FlashMap information.
|
|
|
|
|
|
|
|
Copyright (c) 2006 - 2008, Intel Corporation
|
2007-07-05 17:27:43 +02:00
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
2008-04-09 09:07:50 +02:00
|
|
|
**/
|
2007-07-05 17:27:43 +02:00
|
|
|
|
|
|
|
#ifndef _PEI_FLASH_MAP_PPI_H_
|
|
|
|
#define _PEI_FLASH_MAP_PPI_H_
|
|
|
|
|
2007-07-24 12:52:02 +02:00
|
|
|
#include <Guid/FlashMapHob.h>
|
2007-07-05 17:27:43 +02:00
|
|
|
|
|
|
|
#define PEI_FLASH_MAP_PPI_GUID \
|
|
|
|
{ 0xf34c2fa0, 0xde88, 0x4270, {0x84, 0x14, 0x96, 0x12, 0x22, 0xf4, 0x52, 0x1c } }
|
|
|
|
|
|
|
|
typedef struct _PEI_FLASH_MAP_PPI PEI_FLASH_MAP_PPI;
|
2008-04-09 09:07:50 +02:00
|
|
|
|
2007-07-05 17:27:43 +02:00
|
|
|
//
|
|
|
|
// Functions
|
|
|
|
//
|
2008-04-09 09:07:50 +02:00
|
|
|
/**
|
|
|
|
Get flash region information.
|
|
|
|
|
|
|
|
@param PeiServices An indirect pointer to the PEI Services Table published by the PEI Foundation.
|
|
|
|
@param This Pointer to the FlashMap PPI instance
|
|
|
|
@param AreaType Flash Area Type
|
|
|
|
@param AreaTypeGuid Pointer to Guid for Flash Area Type
|
|
|
|
@param NumEntries Pointer to the number of entries for the total flash area.
|
|
|
|
@param Entries Pointer to the entry list.
|
|
|
|
|
|
|
|
@retval EFI_SUCESS Get flash area information successfully.
|
|
|
|
@retval EFI_NOT_FOUND No flash area information is found.
|
|
|
|
**/
|
2007-07-05 17:27:43 +02:00
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-07-31 09:09:47 +02:00
|
|
|
(EFIAPI *PEI_GET_FLASH_AREA_INFO)(
|
2007-07-05 17:27:43 +02:00
|
|
|
IN EFI_PEI_SERVICES **PeiServices,
|
2008-07-08 15:29:42 +02:00
|
|
|
IN PEI_FLASH_MAP_PPI *This,
|
2007-07-05 17:27:43 +02:00
|
|
|
IN EFI_FLASH_AREA_TYPE AreaType,
|
|
|
|
IN EFI_GUID *AreaTypeGuid,
|
|
|
|
OUT UINT32 *NumEntries,
|
|
|
|
OUT EFI_FLASH_SUBAREA_ENTRY **Entries
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
struct _PEI_FLASH_MAP_PPI {
|
|
|
|
PEI_GET_FLASH_AREA_INFO GetAreaInfo;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern EFI_GUID gPeiFlashMapPpiGuid;
|
|
|
|
|
|
|
|
#endif
|