]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Include/Library/Esrt.h
06977b640aae17a81e580522201c3010553cc4d4
[mirror_edk2.git] / Vlv2TbltDevicePkg / Include / Library / Esrt.h
1 /*++
2
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
4
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13
14
15 Module Name:
16
17 Esrt.h
18
19 Abstract:
20
21 --*/
22
23 #ifndef _DFU_ESRT_H_
24 #define _DFU_ESRT_H_
25
26 typedef struct {
27 EFI_GUID FwClass;
28 UINT32 FwType;
29 UINT32 FwVersion;
30 UINT32 FwLstCompatVersion;
31 UINT32 CapsuleFlags;
32 UINT32 LastAttemptVersion;
33 UINT32 LastAttemptStatus;
34 } FW_RES_ENTRY;
35
36 typedef struct {
37 UINT32 NumEntries;
38 FW_RES_ENTRY FwEntries[256];
39 } FW_RES_ENTRY_LIST;
40
41
42 typedef struct {
43 UINT32 FwResourceCount;
44 UINT32 FwResourceMax;
45 UINT64 FwResourceVersion;
46 } EFI_SYSTEM_RESOURCE_TABLE;
47
48
49 typedef
50 EFI_STATUS
51 (EFIAPI *ESRT_POPULATE_TABLE) (
52 );
53
54 typedef
55 EFI_STATUS
56 (EFIAPI *ESRT_UPDATE_TABLE_ENTRY_BY_GUID) (
57 IN EFI_GUID FwEntryGuid,
58 IN FW_RES_ENTRY *FwEntry
59 );
60
61 typedef
62 EFI_STATUS
63 (EFIAPI *ESRT_GET_FW_ENTRY_BY_GUID) (
64 IN EFI_GUID FwEntryGuid,
65 OUT FW_RES_ENTRY *FwEntry
66 );
67
68
69 #pragma pack()
70
71 typedef struct _ESRT_OPERATION_PROTOCOL {
72 ESRT_POPULATE_TABLE EsrtPopulateTable;
73 ESRT_UPDATE_TABLE_ENTRY_BY_GUID EsrtUpdateTableEntryByGuid;
74 ESRT_GET_FW_ENTRY_BY_GUID EsrtGetFwEntryByGuid;
75 } ESRT_OPERATION_PROTOCOL;
76
77 extern EFI_GUID gEfiEsrtOperationProtocolGuid;
78
79 #endif