]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/Include/EfiFlashMap.h
Remove svn:executable on *.c, *.h, *.asm, *.S, *.inf and *.asl*
[mirror_edk2.git] / DuetPkg / Include / EfiFlashMap.h
index 5dfad52205f6bda96abc5344e4fb7969c5c48980..5f8ade70ddcb4569e43e413209e3550735c88f8e 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2004 - 2007, Intel Corporation                                                         \r
+Copyright (c) 2004 - 2010, Intel Corporation                                                         \r
 All rights reserved. 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
@@ -22,7 +22,6 @@ Abstract:
 #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