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