]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
f57387d5 HT |
3 | Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | FileSystemInfo.h\r | |
15 | \r | |
16 | Abstract:\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 | |
7ccf38a3 | 28 | 0x9576e93, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} \\r |
3eb9473e | 29 | }\r |
30 | \r | |
31 | typedef 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 | |
49 | extern EFI_GUID gEfiFileSystemInfoGuid;\r | |
50 | \r | |
51 | #endif\r |