-/*++\r
+/** @file\r
\r
-Copyright (c) 2004 - 2007, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
+Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
http://opensource.org/licenses/bsd-license.php \r
\r
Defines for the EFI Flash Map functionality\r
\r
---*/\r
+**/\r
\r
#ifndef _EFI_FLASHMAP_H_\r
#define _EFI_FLASHMAP_H_\r
\r
-\r
//\r
// Definition for flash map GUIDed HOBs\r
//\r
// An individual sub-area Entry.\r
// A single flash area may consist of more than one sub-area.\r
//\r
+/**\r
typedef struct {\r
EFI_FLASH_AREA_ATTRIBUTES Attributes;\r
UINT32 Reserved;\r
UINT8 Reserved[3];\r
EFI_GUID AreaTypeGuid;\r
} EFI_FLASH_AREA_DATA;\r
+**/\r
+\r
+typedef struct {\r
+ EFI_FLASH_AREA_ATTRIBUTES Attributes;\r
+ UINT32 Reserved;\r
+ EFI_PHYSICAL_ADDRESS Base;\r
+ EFI_PHYSICAL_ADDRESS Length;\r
+ EFI_GUID FileSystem;\r
+} EFI_FLASH_SUBAREA_ENTRY;\r
+\r
+typedef struct {\r
+ UINT8 Reserved[3];\r
+ EFI_FLASH_AREA_TYPE AreaType;\r
+ EFI_GUID AreaTypeGuid;\r
+ UINT32 NumberOfEntries;\r
+ EFI_FLASH_SUBAREA_ENTRY Entries[1];\r
+ //\r
+ // Extended Hob data.\r
+ //\r
+ // VolumeId and FilePath indicating a unique file.\r
+ //\r
+ UINT32 VolumeId;\r
+ CHAR16 FilePath[258];\r
+ UINT32 ActuralSize;\r
+ UINT32 Offset;\r
+} EFI_FLASH_MAP_FS_ENTRY_DATA;\r
\r
#pragma pack()\r
\r