Home | History | Annotate | Download | only in Common
      1 /** @file
      2   Defines data structure that is the headers found at the runtime
      3   updatable firmware volumes, such as the FileSystemGuid of the
      4   working block, the header structure of the variable block, FTW
      5   working block, or event log block.
      6 
      7   Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
      8 
      9   This program and the accompanying materials are licensed and made available
     10   under the terms and conditions of the BSD License which accompanies this
     11   distribution.  The full text of the license may be found at
     12     http://opensource.org/licenses/bsd-license.php
     13 
     14   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     15   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     16 
     17 **/
     18 
     19 #ifndef __EFI_WORKING_BLOCK_HEADER_H__
     20 #define __EFI_WORKING_BLOCK_HEADER_H__
     21 
     22 //
     23 // EFI Fault tolerant working block header
     24 // The header is immediately followed by the write queue.
     25 //
     26 typedef struct {
     27   EFI_GUID  Signature;
     28   UINT32    Crc;
     29   UINT8     WorkingBlockValid : 1;
     30   UINT8     WorkingBlockInvalid : 1;
     31 #define WORKING_BLOCK_VALID   0x1
     32 #define WORKING_BLOCK_INVALID 0x2
     33   UINT8     Reserved : 6;
     34   UINT8     Reserved3[3];
     35   UINT64    WriteQueueSize;
     36   //
     37   // UINT8                WriteQueue[WriteQueueSize];
     38   //
     39 } EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER;
     40 
     41 #endif
     42