34 lines · c
1//===-- Classes to capture properites of UEFI applications ------*- C++ -*-===//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_CONFIG_UEFI_APP_H10#define LLVM_LIBC_CONFIG_UEFI_APP_H11 12#include "hdr/stdint_proxy.h"13#include "include/llvm-libc-types/EFI_HANDLE.h"14#include "include/llvm-libc-types/EFI_SYSTEM_TABLE.h"15#include "src/__support/macros/config.h"16#include "src/__support/macros/properties/architectures.h"17 18namespace LIBC_NAMESPACE_DECL {19 20// Data structure which captures properties of a UEFI application.21struct AppProperties {22 // UEFI system table23 EFI_SYSTEM_TABLE *system_table;24 25 // UEFI image handle26 EFI_HANDLE image_handle;27};28 29[[gnu::weak]] extern AppProperties app;30 31} // namespace LIBC_NAMESPACE_DECL32 33#endif // LLVM_LIBC_CONFIG_UEFI_APP_H34