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