FileInfo.h revision c2f83f0ae172410cbd6d2ebf73dd776a0c2cd6e0
1/** @file 2 SimpleFileSystem guid and data structure as defined in the EFI 1.0 specification. 3 4 The SimpleFileSystem protocol is the programatic access to the FAT (12,16,32) 5 file system specified in EFI 1.0. It can also be used to abstract any 6 file system other than FAT. 7 8 EFI 1.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 Module Name: FileInfo.c 20 21**/ 22 23#ifndef __FILE_INFO_H__ 24#define __FILE_INFO_H__ 25 26#define EFI_FILE_INFO_ID \ 27 { \ 28 0x9576e92, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \ 29 } 30 31typedef struct { 32 UINT64 Size; 33 UINT64 FileSize; 34 UINT64 PhysicalSize; 35 EFI_TIME CreateTime; 36 EFI_TIME LastAccessTime; 37 EFI_TIME ModificationTime; 38 UINT64 Attribute; 39 CHAR16 FileName[1]; 40} EFI_FILE_INFO; 41 42// 43// The FileName field of the EFI_FILE_INFO data structure is variable length. 44// Whenever code needs to know the size of the EFI_FILE_INFO data structure, it needs to 45// be the size of the data structure without the FileName field. The following macro 46// computes this size correctly no matter how big the FileName array is declared. 47// This is required to make the EFI_FILE_INFO data structure ANSI compilant. 48// 49#define SIZE_OF_EFI_FILE_INFO EFI_FIELD_OFFSET (EFI_FILE_INFO, FileName) 50 51extern EFI_GUID gEfiFileInfoGuid; 52 53#endif 54