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