-Copyright (c) 2005 - 2007, Intel Corporation\r
-All rights reserved. This program and the accompanying materials are licensed and made available\r
+Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
under the terms and conditions of the BSD License which accompanies this\r
distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
((FAT_DIRECTORY_ENTRY *) Entry)->FileName[0] = EMPTY_ENTRY_MARK;\r
((FAT_DIRECTORY_ENTRY *) Entry)->Attributes = 0;\r
return EFI_SUCCESS;\r
}\r
\r
BufferSize = sizeof (FAT_DIRECTORY_ENTRY);\r
((FAT_DIRECTORY_ENTRY *) Entry)->FileName[0] = EMPTY_ENTRY_MARK;\r
((FAT_DIRECTORY_ENTRY *) Entry)->Attributes = 0;\r
return EFI_SUCCESS;\r
}\r
\r
BufferSize = sizeof (FAT_DIRECTORY_ENTRY);\r
- return FatAccessOFile (Parent, IoMode, Position, &BufferSize, Entry);\r
+ return FatAccessOFile (Parent, IoMode, Position, &BufferSize, Entry, NULL);\r
- Status = FatAccessEntry (OFile, WRITE_DATA, EntryPos, &DirEnt->Entry);\r
+ Status = FatAccessEntry (OFile, WriteData, EntryPos, &DirEnt->Entry);\r
// Write LFN directory entry\r
//\r
SetMem (LfnBuffer, sizeof (CHAR16) * LFN_CHAR_TOTAL * EntryCount, 0xff);\r
// Write LFN directory entry\r
//\r
SetMem (LfnBuffer, sizeof (CHAR16) * LFN_CHAR_TOTAL * EntryCount, 0xff);\r
- Status = FatAccessEntry (OFile, WRITE_DATA, EntryPos, &LfnEntry);\r
+ Status = FatAccessEntry (OFile, WriteData, EntryPos, &LfnEntry);\r
- Status = FatAccessEntry (Parent, READ_DATA, EntryPos, &LfnEntry);\r
+ Status = FatAccessEntry (Parent, ReadData, EntryPos, &LfnEntry);\r
if (EFI_ERROR (Status) ||\r
LfnEntry.Attributes != FAT_ATTRIBUTE_LFN ||\r
LfnEntry.MustBeZero != 0 ||\r
if (EFI_ERROR (Status) ||\r
LfnEntry.Attributes != FAT_ATTRIBUTE_LFN ||\r
LfnEntry.MustBeZero != 0 ||\r
// Fail to get the long file name from long file name entry,\r
// get the file name from short name\r
//\r
// Fail to get the long file name from long file name entry,\r
// get the file name from short name\r
//\r
- Status = FatAccessEntry (OFile, READ_DATA, ODir->CurrentEndPos, &Entry);\r
+ Status = FatAccessEntry (OFile, ReadData, ODir->CurrentEndPos, &Entry);\r
// Although FAT spec states this field is always 0 for FAT12 & FAT16, some applications\r
// might use it for some special usage, it is safer to zero it in memory for FAT12 & FAT16.\r
//\r
// Although FAT spec states this field is always 0 for FAT12 & FAT16, some applications\r
// might use it for some special usage, it is safer to zero it in memory for FAT12 & FAT16.\r
//\r
- Status = FatAccessEntry (Root, READ_DATA, EntryPos, Entry);\r
+ Status = FatAccessEntry (Root, ReadData, EntryPos, Entry);\r
FileNameLen = StrLen (FileName);\r
if (FileNameLen == 0) {\r
return EFI_INVALID_PARAMETER;\r
FileNameLen = StrLen (FileName);\r
if (FileNameLen == 0) {\r
return EFI_INVALID_PARAMETER;\r