]> git.proxmox.com Git - mirror_edk2.git/blob - QuarkPlatformPkg/Include/Guid/QuarkCapsuleGuid.h
22d455f851f8dee4a5866bc6227ec8bb8b106326
[mirror_edk2.git] / QuarkPlatformPkg / Include / Guid / QuarkCapsuleGuid.h
1 /** @file
2
3 Capsule format guid for Quark capsule image.
4
5 Copyright (c) 2013-2015 Intel Corporation.
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9 **/
10
11 #ifndef _QUARK_CAPSULE_GUID_H_
12 #define _QUARK_CAPSULE_GUID_H_
13
14 #define QUARK_CAPSULE_GUID \
15 { 0xd400d1e4, 0xa314, 0x442b, { 0x89, 0xed, 0xa9, 0x2e, 0x4c, 0x81, 0x97, 0xcb } }
16
17 #define SMI_INPUT_UPDATE_CAP 0x27
18 #define SMI_INPUT_GET_CAP 0x28
19
20 #define SMI_CAP_FUNCTION 0xEF
21
22 #pragma pack(1)
23 typedef struct {
24 UINT64 Address;
25 UINT32 BufferOffset;
26 UINT32 Size;
27 UINT32 Flags;
28 UINT32 Reserved;
29 } CAPSULE_FRAGMENT;
30
31 typedef struct {
32 UINTN CapsuleLocation; // Top of the capsule that point to structure CAPSULE_FRAGMENT
33 UINTN CapsuleSize; // Size of the capsule
34 EFI_STATUS Status; // Returned status
35 } CAPSULE_INFO_PACKET;
36
37 typedef struct {
38 UINTN BlocksCompleted; // # of blocks processed
39 UINTN TotalBlocks; // Total # of blocks to be processed
40 EFI_STATUS Status; // returned status
41 } UPDATE_STATUS_PACKET;
42 #pragma pack()
43
44 extern EFI_GUID gEfiQuarkCapsuleGuid;
45
46 #endif