]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Efi/Protocol/FileInfo/FileInfo.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Efi / Protocol / FileInfo / FileInfo.h
CommitLineData
3eb9473e 1/*++\r
2\r
f57387d5
HT
3Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 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 FileInfo.c\r
15\r
16Abstract:\r
17\r
18 SimpleFileSystem protocol as defined in the EFI 1.0 specification.\r
19\r
20 The SimpleFileSystem protocol is the programatic access to the FAT (12,16,32) \r
21 file system specified in EFI 1.0. It can also be used to abstract any \r
22 file system other than FAT.\r
23\r
24 EFI 1.0 can boot from any valid EFI image contained in a SimpleFileSystem\r
25 \r
26--*/\r
27\r
28#ifndef _FILE_INFO_H_\r
29#define _FILE_INFO_H_\r
30\r
31#define EFI_FILE_INFO_ID \\r
32 { \\r
7ccf38a3 33 0x9576e92, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} \\r
3eb9473e 34 }\r
35\r
36typedef struct {\r
37 UINT64 Size;\r
38 UINT64 FileSize;\r
39 UINT64 PhysicalSize;\r
40 EFI_TIME CreateTime;\r
41 EFI_TIME LastAccessTime;\r
42 EFI_TIME ModificationTime;\r
43 UINT64 Attribute;\r
44 CHAR16 FileName[1];\r
45} EFI_FILE_INFO;\r
46\r
47//\r
48// The FileName field of the EFI_FILE_INFO data structure is variable length.\r
49// Whenever code needs to know the size of the EFI_FILE_INFO data structure, it needs to\r
50// be the size of the data structure without the FileName field. The following macro\r
51// computes this size correctly no matter how big the FileName array is declared.\r
52// This is required to make the EFI_FILE_INFO data structure ANSI compilant.\r
53//\r
54#define SIZE_OF_EFI_FILE_INFO EFI_FIELD_OFFSET (EFI_FILE_INFO, FileName)\r
55\r
56extern EFI_GUID gEfiFileInfoGuid;\r
57\r
58#endif\r