mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
Use UEFI EFI_FILE_PROTOCOL to replace EFI_FILE
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9300 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b0b961c8f9
commit
c0cf06d6da
@ -504,7 +504,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemOpenVolume (
|
WinNtSimpleFileSystemOpenVolume (
|
||||||
IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *This,
|
IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *This,
|
||||||
OUT EFI_FILE **Root
|
OUT EFI_FILE_PROTOCOL **Root
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
@ -808,8 +808,8 @@ IsFileNameValid (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemOpen (
|
WinNtSimpleFileSystemOpen (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
OUT EFI_FILE **NewHandle,
|
OUT EFI_FILE_PROTOCOL **NewHandle,
|
||||||
IN CHAR16 *FileName,
|
IN CHAR16 *FileName,
|
||||||
IN UINT64 OpenMode,
|
IN UINT64 OpenMode,
|
||||||
IN UINT64 Attributes
|
IN UINT64 Attributes
|
||||||
@ -822,7 +822,7 @@ Routine Description:
|
|||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
This - A pointer to the seource file location.
|
This - A pointer to the source file location.
|
||||||
|
|
||||||
NewHandle - Pointer to storage for the new file handle.
|
NewHandle - Pointer to storage for the new file handle.
|
||||||
|
|
||||||
@ -1309,7 +1309,7 @@ Done:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemClose (
|
WinNtSimpleFileSystemClose (
|
||||||
IN EFI_FILE *This
|
IN EFI_FILE_PROTOCOL *This
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
@ -1368,7 +1368,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemDelete (
|
WinNtSimpleFileSystemDelete (
|
||||||
IN EFI_FILE *This
|
IN EFI_FILE_PROTOCOL *This
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
@ -1476,7 +1476,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemRead (
|
WinNtSimpleFileSystemRead (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
)
|
||||||
@ -1691,7 +1691,7 @@ Done:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemWrite (
|
WinNtSimpleFileSystemWrite (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
)
|
||||||
@ -1778,7 +1778,7 @@ Done:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemSetPosition (
|
WinNtSimpleFileSystemSetPosition (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
IN UINT64 Position
|
IN UINT64 Position
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
@ -1870,7 +1870,7 @@ Done:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemGetPosition (
|
WinNtSimpleFileSystemGetPosition (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
OUT UINT64 *Position
|
OUT UINT64 *Position
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
@ -2109,7 +2109,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemGetInfo (
|
WinNtSimpleFileSystemGetInfo (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
IN EFI_GUID *InformationType,
|
IN EFI_GUID *InformationType,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
@ -2290,7 +2290,7 @@ Done:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemSetInfo (
|
WinNtSimpleFileSystemSetInfo (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL*This,
|
||||||
IN EFI_GUID *InformationType,
|
IN EFI_GUID *InformationType,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
@ -2869,7 +2869,7 @@ Done:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemFlush (
|
WinNtSimpleFileSystemFlush (
|
||||||
IN EFI_FILE *This
|
IN EFI_FILE_PROTOCOL *This
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**@file
|
/**@file
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2009, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -58,7 +58,7 @@ typedef struct {
|
|||||||
UINTN Signature;
|
UINTN Signature;
|
||||||
EFI_WIN_NT_THUNK_PROTOCOL *WinNtThunk;
|
EFI_WIN_NT_THUNK_PROTOCOL *WinNtThunk;
|
||||||
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *SimpleFileSystem;
|
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *SimpleFileSystem;
|
||||||
EFI_FILE EfiFile;
|
EFI_FILE_PROTOCOL EfiFile;
|
||||||
HANDLE LHandle;
|
HANDLE LHandle;
|
||||||
HANDLE DirHandle;
|
HANDLE DirHandle;
|
||||||
BOOLEAN IsRootDirectory;
|
BOOLEAN IsRootDirectory;
|
||||||
@ -197,7 +197,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemOpenVolume (
|
WinNtSimpleFileSystemOpenVolume (
|
||||||
IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *This,
|
IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *This,
|
||||||
OUT EFI_FILE **Root
|
OUT EFI_FILE_PROTOCOL **Root
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
@ -235,8 +235,8 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemOpen (
|
WinNtSimpleFileSystemOpen (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
OUT EFI_FILE **NewHandle,
|
OUT EFI_FILE_PROTOCOL **NewHandle,
|
||||||
IN CHAR16 *FileName,
|
IN CHAR16 *FileName,
|
||||||
IN UINT64 OpenMode,
|
IN UINT64 OpenMode,
|
||||||
IN UINT64 Attributes
|
IN UINT64 Attributes
|
||||||
@ -287,7 +287,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemClose (
|
WinNtSimpleFileSystemClose (
|
||||||
IN EFI_FILE *This
|
IN EFI_FILE_PROTOCOL *This
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
@ -309,7 +309,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemDelete (
|
WinNtSimpleFileSystemDelete (
|
||||||
IN EFI_FILE *This
|
IN EFI_FILE_PROTOCOL *This
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
@ -333,7 +333,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemRead (
|
WinNtSimpleFileSystemRead (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
)
|
||||||
@ -370,7 +370,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemWrite (
|
WinNtSimpleFileSystemWrite (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
)
|
||||||
@ -413,7 +413,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemSetPosition (
|
WinNtSimpleFileSystemSetPosition (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
IN UINT64 Position
|
IN UINT64 Position
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
@ -440,7 +440,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemGetPosition (
|
WinNtSimpleFileSystemGetPosition (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
OUT UINT64 *Position
|
OUT UINT64 *Position
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
@ -467,7 +467,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemGetInfo (
|
WinNtSimpleFileSystemGetInfo (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
IN EFI_GUID *InformationType,
|
IN EFI_GUID *InformationType,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
@ -510,7 +510,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemSetInfo (
|
WinNtSimpleFileSystemSetInfo (
|
||||||
IN EFI_FILE *This,
|
IN EFI_FILE_PROTOCOL *This,
|
||||||
IN EFI_GUID *InformationType,
|
IN EFI_GUID *InformationType,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
@ -557,7 +557,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
WinNtSimpleFileSystemFlush (
|
WinNtSimpleFileSystemFlush (
|
||||||
IN EFI_FILE *This
|
IN EFI_FILE_PROTOCOL *This
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user