]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Guid/FileSystemInfo.h
automagically convert ELF to PE/COFF (i386 only)
[mirror_edk2.git] / MdePkg / Include / Guid / FileSystemInfo.h
CommitLineData
878ddf1f 1/** @file\r
b32a39b3 2 FileSystemInfo guid and data structure as defined in the EFI 1.0 specification.\r
878ddf1f 3\r
4 Copyright (c) 2006, Intel Corporation \r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
13 Module Name: FileSystemInfo.h\r
14\r
15**/\r
16\r
17#ifndef __FILE_SYSTEM_INFO_H__\r
18#define __FILE_SYSTEM_INFO_H__\r
19\r
20#define EFI_FILE_SYSTEM_INFO_ID_GUID \\r
21 { \\r
22 0x9576e93, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \\r
23 }\r
24\r
25typedef struct {\r
26 UINT64 Size;\r
27 BOOLEAN ReadOnly;\r
28 UINT64 VolumeSize;\r
29 UINT64 FreeSpace;\r
30 UINT32 BlockSize;\r
31 CHAR16 VolumeLabel[1];\r
32} EFI_FILE_SYSTEM_INFO;\r
33\r
34//\r
35// The VolumeLabel field of the EFI_FILE_SYSTEM_INFO data structure is variable length.\r
36// Whenever code needs to know the size of the EFI_FILE_SYSTEM_INFO data structure, it needs\r
37// to be the size of the data structure without the VolumeLable field. The following macro\r
38// computes this size correctly no matter how big the VolumeLable array is declared.\r
39// This is required to make the EFI_FILE_SYSTEM_INFO data structure ANSI compilant.\r
40//\r
41#define SIZE_OF_EFI_FILE_SYSTEM_INFO EFI_FIELD_OFFSET (EFI_FILE_SYSTEM_INFO, VolumeLabel)\r
42\r
43extern EFI_GUID gEfiFileSystemInfoGuid;\r
44\r
45#endif\r