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