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