Ronak Kanabar | 1ae366f | 2023-06-07 01:21:56 +0530 | [diff] [blame^] | 1 | /** @file |
| 2 | Provides a GUID and a data structure that can be used with EFI_FILE_PROTOCOL.GetInfo() |
| 3 | or EFI_FILE_PROTOCOL.SetInfo() to get or set the system's volume label. |
| 4 | This GUID is defined in UEFI specification. |
| 5 | |
| 6 | Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> |
| 7 | SPDX-License-Identifier: BSD-2-Clause-Patent |
| 8 | |
| 9 | **/ |
| 10 | |
| 11 | #ifndef __FILE_SYSTEM_VOLUME_LABEL_INFO_H__ |
| 12 | #define __FILE_SYSTEM_VOLUME_LABEL_INFO_H__ |
| 13 | |
| 14 | #define EFI_FILE_SYSTEM_VOLUME_LABEL_ID \ |
| 15 | { \ |
| 16 | 0xDB47D7D3, 0xFE81, 0x11d3, {0x9A, 0x35, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D } \ |
| 17 | } |
| 18 | |
| 19 | typedef struct { |
| 20 | /// |
| 21 | /// The Null-terminated string that is the volume's label. |
| 22 | /// |
| 23 | CHAR16 VolumeLabel[1]; |
| 24 | } EFI_FILE_SYSTEM_VOLUME_LABEL; |
| 25 | |
| 26 | #define SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL \ |
| 27 | OFFSET_OF (EFI_FILE_SYSTEM_VOLUME_LABEL, VolumeLabel) |
| 28 | |
| 29 | extern EFI_GUID gEfiFileSystemVolumeLabelInfoIdGuid; |
| 30 | |
| 31 | #endif |