Warning: This file is not a C or C++ file. It does not have highlighting.

1//===-- Definition of EFI_CAPSULE type ------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIBC_TYPES_EFI_CAPSULE_H
10#define LLVM_LIBC_TYPES_EFI_CAPSULE_H
11
12#include "../llvm-libc-macros/stdint-macros.h"
13#include "EFI_GUID.h"
14
15typedef struct {
16 EFI_GUID CapsuleGuid;
17 uint32_t HeaderSize;
18 uint32_t Flags;
19 uint32_t CapsuleImageSize;
20} EFI_CAPSULE_HEADER;
21
22#define CAPSULE_FLAGS_PERSIST_ACROSS_RESET 0x00010000
23#define CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE 0x00020000
24#define CAPSULE_FLAGS_INITIATE_RESET 0x00040000
25
26#endif // LLVM_LIBC_TYPES_EFI_CAPSULE_H
27

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of libc/include/llvm-libc-types/EFI_CAPSULE.h