]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/Guid/FileInfo.h
Clean up: update "EFI" to "UEFI" if applicable.
[mirror_edk2.git] / MdePkg / Include / Guid / FileInfo.h
1 /** @file
2 SimpleFileSystem guid and data structure as defined in the UEFI 2.0 specification.
3
4 The SimpleFileSystem protocol is the programatic access to the FAT (12,16,32)
5 file system specified in UEFI 2.0. It can also be used to abstract any
6 file system other than FAT.
7
8 UEFI 2.0 can boot from any valid EFI image contained in a SimpleFileSystem
9
10 Copyright (c) 2006, Intel Corporation
11 All rights reserved. This program and the accompanying materials
12 are licensed and made available under the terms and conditions of the BSD License
13 which accompanies this distribution. The full text of the license may be found at
14 http://opensource.org/licenses/bsd-license.php
15
16 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
17 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18
19 **/
20
21 #ifndef __FILE_INFO_H__
22 #define __FILE_INFO_H__
23
24 #define EFI_FILE_INFO_ID \
25 { \
26 0x9576e92, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
27 }
28
29 typedef struct {
30 UINT64 Size;
31 UINT64 FileSize;
32 UINT64 PhysicalSize;
33 EFI_TIME CreateTime;
34 EFI_TIME LastAccessTime;
35 EFI_TIME ModificationTime;
36 UINT64 Attribute;
37 CHAR16 FileName[1];
38 } EFI_FILE_INFO;
39
40 //
41 // The FileName field of the EFI_FILE_INFO data structure is variable length.
42 // Whenever code needs to know the size of the EFI_FILE_INFO data structure, it needs to
43 // be the size of the data structure without the FileName field. The following macro
44 // computes this size correctly no matter how big the FileName array is declared.
45 // This is required to make the EFI_FILE_INFO data structure ANSI compilant.
46 //
47 #define SIZE_OF_EFI_FILE_INFO EFI_FIELD_OFFSET (EFI_FILE_INFO, FileName)
48
49 extern EFI_GUID gEfiFileInfoGuid;
50
51 #endif