]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkPlatformPkg/Include/Guid/QuarkCapsuleGuid.h
QuarkPlatformPkg: Add new package for Galileo boards
[mirror_edk2.git] / QuarkPlatformPkg / Include / Guid / QuarkCapsuleGuid.h
CommitLineData
b303605e
MK
1/** @file\r
2\r
3Capsule format guid for Quark capsule image.\r
4\r
5Copyright (c) 2013-2015 Intel Corporation.\r
6\r
7This program and the accompanying materials\r
8are licensed and made available under the terms and conditions of the BSD License\r
9which accompanies this distribution. The full text of the license may be found at\r
10http://opensource.org/licenses/bsd-license.php\r
11\r
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
15**/\r
16\r
17#ifndef _QUARK_CAPSULE_GUID_H_\r
18#define _QUARK_CAPSULE_GUID_H_\r
19\r
20#define QUARK_CAPSULE_GUID \\r
21 { 0xd400d1e4, 0xa314, 0x442b, { 0x89, 0xed, 0xa9, 0x2e, 0x4c, 0x81, 0x97, 0xcb } }\r
22\r
23#define SMI_INPUT_UPDATE_CAP 0x27\r
24#define SMI_INPUT_GET_CAP 0x28\r
25\r
26#define SMI_CAP_FUNCTION 0xEF\r
27\r
28#pragma pack(1)\r
29typedef struct {\r
30 UINT64 Address;\r
31 UINT32 BufferOffset;\r
32 UINT32 Size;\r
33 UINT32 Flags;\r
34 UINT32 Reserved;\r
35} CAPSULE_FRAGMENT;\r
36\r
37typedef struct {\r
38 UINTN CapsuleLocation; // Top of the capsule that point to structure CAPSULE_FRAGMENT\r
39 UINTN CapsuleSize; // Size of the capsule\r
40 EFI_STATUS Status; // Returned status\r
41} CAPSULE_INFO_PACKET;\r
42\r
43typedef struct {\r
44 UINTN BlocksCompleted; // # of blocks processed\r
45 UINTN TotalBlocks; // Total # of blocks to be processed\r
46 EFI_STATUS Status; // returned status\r
47} UPDATE_STATUS_PACKET;\r
48#pragma pack()\r
49\r
50extern EFI_GUID gEfiQuarkCapsuleGuid;\r
51\r
52#endif\r