]>
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 | |
7 | This program and the accompanying materials\r | |
8 | are licensed and made available under the terms and conditions of the BSD License\r | |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT 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 | |
29 | typedef 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 | |
37 | typedef 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 | |
43 | typedef 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 | |
50 | extern EFI_GUID gEfiQuarkCapsuleGuid;\r | |
51 | \r | |
52 | #endif\r |