1 | /* $Id */
|
---|
2 | /** @file
|
---|
3 | * Provides a GUID and a data structure that can be used with EFI_FILE_PROTOCOL.GetInfo()
|
---|
4 | * or EFI_FILE_PROTOCOL.SetInfo() to get or set the system's volume blessed file (for booting).
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2019-2023 Oracle and/or its affiliates.
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox base platform packages, as
|
---|
11 | * available from https://www.virtualbox.org.
|
---|
12 | *
|
---|
13 | * This program is free software; you can redistribute it and/or
|
---|
14 | * modify it under the terms of the GNU General Public License
|
---|
15 | * as published by the Free Software Foundation, in version 3 of the
|
---|
16 | * License.
|
---|
17 | *
|
---|
18 | * This program is distributed in the hope that it will be useful, but
|
---|
19 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
21 | * General Public License for more details.
|
---|
22 | *
|
---|
23 | * You should have received a copy of the GNU General Public License
|
---|
24 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
25 | *
|
---|
26 | * The contents of this file may alternatively be used under the terms
|
---|
27 | * of the Common Development and Distribution License Version 1.0
|
---|
28 | * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
29 | * in the VirtualBox distribution, in which case the provisions of the
|
---|
30 | * CDDL are applicable instead of those of the GPL.
|
---|
31 | *
|
---|
32 | * You may elect to license modified versions of this file under the
|
---|
33 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
34 | *
|
---|
35 | * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
36 | */
|
---|
37 |
|
---|
38 | #ifndef __VBOX_FS_BLESSED_FILE_INFO_H__
|
---|
39 | #define __VBOX_FS_BLESSED_FILE_INFO_H__
|
---|
40 |
|
---|
41 | #define VBOX_FS_BLESSED_FILE_ID \
|
---|
42 | { \
|
---|
43 | 0xCC49FEFD, 0x41B7, 0x9823, { 0x98, 0x23, 0x0E, 0x8E, 0xBF, 0x35, 0x67, 0x7D } \
|
---|
44 | }
|
---|
45 |
|
---|
46 | typedef struct {
|
---|
47 | ///
|
---|
48 | /// The Null-terminated string that is the volume's label.
|
---|
49 | ///
|
---|
50 | CHAR16 BlessedFile[1];
|
---|
51 | } VBOX_FS_BLESSED_FILE;
|
---|
52 |
|
---|
53 | #define SIZE_OF_VBOX_FS_BLESSED_FILE \
|
---|
54 | OFFSET_OF (VBOX_FS_BLESSED_FILE, BlessedFile)
|
---|
55 |
|
---|
56 | extern EFI_GUID gVBoxFsBlessedFileInfoGuid;
|
---|
57 |
|
---|
58 | #endif
|
---|