mirror of https://github.com/acidanthera/audk.git
Use UEFI EFI_FILE_PROTOCOL to replace EFI_FILE
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9301 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c0cf06d6da
commit
509dfd2172
|
@ -457,7 +457,7 @@ EFI_STATUS
|
|||
EFIAPI
|
||||
UnixSimpleFileSystemOpenVolume (
|
||||
IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *This,
|
||||
OUT EFI_FILE **Root
|
||||
OUT EFI_FILE_PROTOCOL **Root
|
||||
)
|
||||
/*++
|
||||
|
||||
|
@ -578,8 +578,8 @@ Done:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemOpen (
|
||||
IN EFI_FILE *This,
|
||||
OUT EFI_FILE **NewHandle,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
OUT EFI_FILE_PROTOCOL **NewHandle,
|
||||
IN CHAR16 *FileName,
|
||||
IN UINT64 OpenMode,
|
||||
IN UINT64 Attributes
|
||||
|
@ -630,7 +630,7 @@ Returns:
|
|||
// TODO: EFI_INVALID_PARAMETER - add return value to function comment
|
||||
// TODO: EFI_INVALID_PARAMETER - add return value to function comment
|
||||
{
|
||||
EFI_FILE *Root;
|
||||
EFI_FILE_PROTOCOL *Root;
|
||||
UNIX_EFI_FILE_PRIVATE *PrivateFile;
|
||||
UNIX_EFI_FILE_PRIVATE *NewPrivateFile;
|
||||
UNIX_SIMPLE_FILE_SYSTEM_PRIVATE *PrivateRoot;
|
||||
|
@ -963,7 +963,7 @@ Done: ;
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemClose (
|
||||
IN EFI_FILE *This
|
||||
IN EFI_FILE_PROTOCOL *This
|
||||
)
|
||||
/*++
|
||||
|
||||
|
@ -1017,7 +1017,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemDelete (
|
||||
IN EFI_FILE *This
|
||||
IN EFI_FILE_PROTOCOL *This
|
||||
)
|
||||
/*++
|
||||
|
||||
|
@ -1221,7 +1221,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemRead (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
IN OUT UINTN *BufferSize,
|
||||
OUT VOID *Buffer
|
||||
)
|
||||
|
@ -1357,7 +1357,7 @@ Done:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemWrite (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
IN OUT UINTN *BufferSize,
|
||||
IN VOID *Buffer
|
||||
)
|
||||
|
@ -1445,7 +1445,7 @@ Done:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemSetPosition (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
IN UINT64 Position
|
||||
)
|
||||
/*++
|
||||
|
@ -1512,7 +1512,7 @@ Done:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemGetPosition (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
OUT UINT64 *Position
|
||||
)
|
||||
/*++
|
||||
|
@ -1562,7 +1562,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemGetInfo (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
IN EFI_GUID *InformationType,
|
||||
IN OUT UINTN *BufferSize,
|
||||
OUT VOID *Buffer
|
||||
|
@ -1671,7 +1671,7 @@ Done:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemSetInfo (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL*This,
|
||||
IN EFI_GUID *InformationType,
|
||||
IN UINTN BufferSize,
|
||||
IN VOID *Buffer
|
||||
|
@ -2117,7 +2117,7 @@ Done:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemFlush (
|
||||
IN EFI_FILE *This
|
||||
IN EFI_FILE_PROTOCOL *This
|
||||
)
|
||||
/*++
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*++
|
||||
|
||||
Copyright (c) 2006 - 2008, Intel Corporation
|
||||
Copyright (c) 2006 - 2009, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -67,7 +67,7 @@ typedef struct {
|
|||
UINTN Signature;
|
||||
EFI_UNIX_THUNK_PROTOCOL *UnixThunk;
|
||||
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *SimpleFileSystem;
|
||||
EFI_FILE EfiFile;
|
||||
EFI_FILE_PROTOCOL EfiFile;
|
||||
INTN fd;
|
||||
DIR *Dir;
|
||||
BOOLEAN IsRootDirectory;
|
||||
|
@ -203,7 +203,7 @@ EFI_STATUS
|
|||
EFIAPI
|
||||
UnixSimpleFileSystemOpenVolume (
|
||||
IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *This,
|
||||
OUT EFI_FILE **Root
|
||||
OUT EFI_FILE_PROTOCOL **Root
|
||||
)
|
||||
/*++
|
||||
|
||||
|
@ -241,8 +241,8 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemOpen (
|
||||
IN EFI_FILE *This,
|
||||
OUT EFI_FILE **NewHandle,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
OUT EFI_FILE_PROTOCOL **NewHandle,
|
||||
IN CHAR16 *FileName,
|
||||
IN UINT64 OpenMode,
|
||||
IN UINT64 Attributes
|
||||
|
@ -293,7 +293,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemClose (
|
||||
IN EFI_FILE *This
|
||||
IN EFI_FILE_PROTOCOL *This
|
||||
)
|
||||
/*++
|
||||
|
||||
|
@ -315,7 +315,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemDelete (
|
||||
IN EFI_FILE *This
|
||||
IN EFI_FILE_PROTOCOL *This
|
||||
)
|
||||
/*++
|
||||
|
||||
|
@ -339,7 +339,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemRead (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
IN OUT UINTN *BufferSize,
|
||||
OUT VOID *Buffer
|
||||
)
|
||||
|
@ -376,7 +376,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemWrite (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
IN OUT UINTN *BufferSize,
|
||||
IN VOID *Buffer
|
||||
)
|
||||
|
@ -419,7 +419,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemSetPosition (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
IN UINT64 Position
|
||||
)
|
||||
/*++
|
||||
|
@ -446,7 +446,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemGetPosition (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
OUT UINT64 *Position
|
||||
)
|
||||
/*++
|
||||
|
@ -473,7 +473,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemGetInfo (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
IN EFI_GUID *InformationType,
|
||||
IN OUT UINTN *BufferSize,
|
||||
OUT VOID *Buffer
|
||||
|
@ -516,7 +516,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemSetInfo (
|
||||
IN EFI_FILE *This,
|
||||
IN EFI_FILE_PROTOCOL *This,
|
||||
IN EFI_GUID *InformationType,
|
||||
IN UINTN BufferSize,
|
||||
IN VOID *Buffer
|
||||
|
@ -563,7 +563,7 @@ Returns:
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
UnixSimpleFileSystemFlush (
|
||||
IN EFI_FILE *This
|
||||
IN EFI_FILE_PROTOCOL *This
|
||||
)
|
||||
/*++
|
||||
|
||||
|
|
Loading…
Reference in New Issue