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