]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/Include/EfiFlashMap.h
CorebootPayloadPkg: Use extra braces to prevent gcc compile fail
[mirror_edk2.git] / DuetPkg / Include / EfiFlashMap.h
index 8aa1b98314ee1324a3b38ce5b46a31c5e51921a4..f36ee3b76ac64ea5ec39ef3068b84fd010947f7f 100644 (file)
@@ -1,7 +1,7 @@
-/*++\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
@@ -17,12 +17,11 @@ Abstract:
 \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
@@ -59,6 +58,7 @@ typedef UINT8   EFI_FLASH_AREA_TYPE;
 // 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
@@ -121,6 +121,32 @@ typedef struct {
   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