VirtualBox

source: vbox/trunk/include/iprt/formats/efi-common.h@ 98103

Last change on this file since 98103 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1/* $Id: efi-common.h 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * IPRT, EFI common definitions.
4 */
5
6/*
7 * Copyright (C) 2021-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * The contents of this file may alternatively be used under the terms
26 * of the Common Development and Distribution License Version 1.0
27 * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
28 * in the VirtualBox distribution, in which case the provisions of the
29 * CDDL are applicable instead of those of the GPL.
30 *
31 * You may elect to license modified versions of this file under the
32 * terms and conditions of either the GPL or the CDDL or both.
33 *
34 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
35 */
36
37#ifndef IPRT_INCLUDED_formats_efi_common_h
38#define IPRT_INCLUDED_formats_efi_common_h
39#ifndef RT_WITHOUT_PRAGMA_ONCE
40# pragma once
41#endif
42
43#include <iprt/types.h>
44#include <iprt/assertcompile.h>
45
46/**
47 * EFI GUID.
48 */
49typedef struct EFI_GUID
50{
51 uint32_t u32Data1;
52 uint16_t u16Data2;
53 uint16_t u16Data3;
54 uint8_t abData4[8];
55} EFI_GUID;
56AssertCompileSize(EFI_GUID, 16);
57/** Pointer to an EFI GUID. */
58typedef EFI_GUID *PEFI_GUID;
59/** Pointer to a const EFI GUID. */
60typedef const EFI_GUID *PCEFI_GUID;
61
62
63/** A Null GUID. */
64#define EFI_NULL_GUID { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 }}
65/** Global variable GUID. */
66#define EFI_GLOBAL_VARIABLE_GUID \
67 { 0x8be4df61, 0x93ca, 0x11d2, { 0xaa, 0x0d, 0x00, 0xe0, 0x98, 0x03, 0x2b, 0x8c }}
68/** SecureBootEnable variable GUID. */
69#define EFI_SECURE_BOOT_ENABLE_DISABLE_GUID \
70 { 0xf0a30bc7, 0xaf08, 0x4556, { 0x99, 0xc4, 0x0, 0x10, 0x9, 0xc9, 0x3a, 0x44 } }
71
72
73/**
74 * EFI time value.
75 */
76typedef struct EFI_TIME
77{
78 uint16_t u16Year;
79 uint8_t u8Month;
80 uint8_t u8Day;
81 uint8_t u8Hour;
82 uint8_t u8Minute;
83 uint8_t u8Second;
84 uint8_t bPad0;
85 uint32_t u32Nanosecond;
86 int16_t iTimezone;
87 uint8_t u8Daylight;
88 uint8_t bPad1;
89} EFI_TIME;
90AssertCompileSize(EFI_TIME, 16);
91/** Pointer to an EFI time abstraction. */
92typedef EFI_TIME *PEFI_TIME;
93/** Pointer to a const EFI time abstraction. */
94typedef const EFI_TIME *PCEFI_TIME;
95
96#define EFI_TIME_TIMEZONE_UNSPECIFIED INT16_C(0x07ff)
97
98#define EFI_TIME_DAYLIGHT_ADJUST RT_BIT(0)
99#define EFI_TIME_DAYLIGHT_INDST RT_BIT(1)
100
101#endif /* !IPRT_INCLUDED_formats_efi_common_h */
102
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette