blob: 1f181ed5f9f1f8a5c6c2cf1161130720e179bae8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
//===-- Classes to capture properites of UEFI applications ------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_CONFIG_UEFI_APP_H
#define LLVM_LIBC_CONFIG_UEFI_APP_H
#include "hdr/stdint_proxy.h"
#include "include/llvm-libc-types/EFI_HANDLE.h"
#include "include/llvm-libc-types/EFI_SYSTEM_TABLE.h"
#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/architectures.h"
namespace LIBC_NAMESPACE_DECL {
// Data structure which captures properties of a UEFI application.
struct AppProperties {
// UEFI system table
EFI_SYSTEM_TABLE *system_table;
// UEFI image handle
EFI_HANDLE image_handle;
};
[[gnu::weak]] extern AppProperties app;
} // namespace LIBC_NAMESPACE_DECL
#endif // LLVM_LIBC_CONFIG_UEFI_APP_H
|