summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Ppi/FirmwareVolumeInfo.h
blob: 1a7487bce06007ec2172bc66e0ff4bc69217c089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/** @file
  This file provides location and format of a firmware volume.

  Copyright (c) 2006 - 2007, Intel Corporation                                                         
  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.             

  @par Revision Reference:
  This PPI is defined in PI.
  Version 1.00

**/

#ifndef __EFI_PEI_FIRMWARE_VOLUME_INFO_H__
#define __EFI_PEI_FIRMWARE_VOLUME_INFO_H__



#define EFI_PEI_FIRMWARE_VOLUME_INFO_PPI_GUID \
{ 0x49edb1c1, 0xbf21, 0x4761, { 0xbb, 0x12, 0xeb, 0x0, 0x31, 0xaa, 0xbb, 0x39 } }

typedef struct _EFI_PEI_FIRMWARE_VOLUME_INFO_PPI  EFI_PEI_FIRMWARE_VOLUME_INFO_PPI;

/**
  @par Ppi Description:
  This PPI describes the location and format of a firmware volume. 
  The FvFormat can be EFI_FIRMWARE_FILE_SYSTEM2_GUID or the GUID for 
  a user-defined format. The  EFI_FIRMWARE_FILE_SYSTEM2_GUID is 
  the PI Firmware Volume format.

  @param  FvFormat      Unique identifier of the format of the memory-mapped firmware volume.

  @param  FvInfo        Points to a buffer which allows the EFI_PEI_FIRMWARE_VOLUME_PPI to
                        process the volume. The format of this buffer is 
                        specific to the FvFormat. For memory-mapped firmware volumes, 
                        this typically points to the first byte of the firmware volume.

  @param  FvInfoSize    Size of the data provided by FvInfo. For memory-mapped firmware volumes,
                        this is typically the size of the firmware volume.

  @param  ParentFvName  If the firmware volume originally came from a firmware file, 
                        then these point to the parent firmware volume
                        name and firmware volume file. If it did not originally come
                        from a firmware file, these should be NULL.

  @param  ParentFileName  If the firmware volume originally came from a firmware file, 
                        then these point to the parent firmware volume
                        name and firmware volume file. If it did not originally come
                        from a firmware file, these should be NULL.

**/
struct _EFI_PEI_FIRMWARE_VOLUME_INFO_PPI {
  EFI_GUID  FvFormat;
  VOID      *FvInfo;
  UINT32    FvInfoSize;
  EFI_GUID  *ParentFvName;
  EFI_GUID  *ParentFileName;
};

extern EFI_GUID gEfiPeiFirmwareVolumeInfoPpiGuid;

#endif